Jump to content
  • Advertisement
Sign in to follow this  

projection transformation

This topic is 2824 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey!

I'm drawing some objects on the screen in perspective projection. Now i'd like to transform perspective projection to ortho projection in few steps so it would look like a smooth transition from one projection to the other. How would i acomplish this?

Share this post


Link to post
Share on other sites
Advertisement
I don't know. But my guess is that interpolating between the perspective and orthogonal matrices would be the solution if there was one.

Share this post


Link to post
Share on other sites
I guess you could use a perspective with an angle that gets closer and closer to zero, and then switch to orthographic. This might cause some problems though, like clipping planes because the camera is far away from the screen plane, so you should just try it out to see if it works. Otherwise, the matrix interpolation would probably work, if you understand the equations necessary for both perspective and orthographic and their similarities. Then you would be able to calculate everything in between.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!