Sign in to follow this  
kgstation

Need help!How to customize a projection plain?

Recommended Posts

Tordin    625
Are you refering to an orthogonal projection matrix?

[url]http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.directx.matrix.ortholh(v=vs.80).aspx[/url]
there you can find out how to do it with xna aswell as the formula for it.

[code]
2/width 0 0 0
0 2/height 0 0
0 0 1/(zfarPlane-znearPlane) 0
0 0 znearPlane/(znearPlane-zfarPlane) 1
[/Code] Edited by Tordin

Share this post


Link to post
Share on other sites
kgstation    205
[quote name='Tordin' timestamp='1354704073' post='5007349']
Are you refering to an orthogonal projection matrix?

[url="http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.directx.matrix.ortholh(v=vs.80).aspx"]http://msdn.microsof...h(v=vs.80).aspx[/url]
there you can find out how to do it with xna aswell as the formula for it.

[code]
2/width           0         0                    0
0          2/height       0                    0
0          0         1/(zfarPlane-znearPlane)           0
0          0         znearPlane/(znearPlane-zfarPlane)  1
[/Code]
[/quote]

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this