Last 5.3 release ever available: PHP 5.3.29 - 5.3 now EOL


(PHP 4)

swf_perspective Define a perspective projection transformation


void swf_perspective ( double $fovy , double $aspect , double $near , double $far )

The swf_perspective() function defines a perspective projection transformation. The fovy parameter is field-of-view angle in the y direction. The aspect parameter should be set to the aspect ratio of the viewport that is being drawn onto. The near parameter is the near clipping plane and the far parameter is the far clipping plane.


Various distortion artifacts may appear when performing a perspective projection, this is because Flash players only have a two dimensional matrix. Some are not to pretty.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top