• Create Account

#Actualkgs

Posted 05 December 2012 - 06:12 AM

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

#2kgs

Posted 05 December 2012 - 06:10 AM

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 = x plain

#1kgs

Posted 05 December 2012 - 06:08 AM

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!!

PARTNERS