Original Post
🔒 Locked
CreatePerspectiveFieldOfView implementation
Advertisement
Here's a C# call of it:
And here's the documentation for it from msdn
http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.matrix.createperspectivefieldofview.aspx
Not sure if this was what you were looking for, but I hope it helps =]
projectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45.0f)And here's the documentation for it from msdn
http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.matrix.createperspectivefieldofview.aspx
Not sure if this was what you were looking for, but I hope it helps =]
This information can be found in the native documentation for this function:
http://msdn.microsoft.com/en-us/library/bb205350(VS.85).aspx
Here's the relevant section:
http://msdn.microsoft.com/en-us/library/bb205350(VS.85).aspx
Here's the relevant section:
xScale 0 0 00 yScale 0 00 0 zf/(zf-zn) 10 0 -zn*zf/(zf-zn) 0where:yScale = cot(fovY/2)xScale = yScale / aspect ratio
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement