Jump to content
  • Advertisement
Sign in to follow this  
kgstation

Need help!How to customize a projection plain?

This topic is 2143 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

Normally we just projection objects to z = X plain!
And now I want to projection an object to z = x + 1 plain.
How should I setup my projection matrix?

Share this post


Link to post
Share on other sites
Advertisement

Are you refering to an orthogonal projection matrix?

http://msdn.microsof...h(v=vs.80).aspx
there you can find out how to do it with xna aswell as the formula for it.


2/width           0         0                    0
0          2/height       0                    0
0          0         1/(zfarPlane-znearPlane)           0
0          0         znearPlane/(znearPlane-zfarPlane)  1



sorry for my mistake,not z = 1,x = 1 plain, but z = x + 1 plain!!means the projection is not parallel with z = ? plain

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!