# 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.

## 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 on other sites
Are you refering to an orthogonal projection matrix?

http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.directx.matrix.ortholh(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  Edited by Tordin

##### Share on other sites

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

1. 1
2. 2
3. 3
Rutin
22
4. 4
5. 5

• 13
• 19
• 14
• 9
• 9
• ### Forum Statistics

• Total Topics
632936
• Total Posts
3009311
• ### Who's Online (See full list)

There are no registered users currently online

×