Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Need help!How to customize a projection plain?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 kgs   Members   -  Reputation: 205

Like
0Likes
Like

Posted 05 December 2012 - 01:56 AM

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?
My english is very poor!

Sponsor:

#2 Tordin   Members   -  Reputation: 604

Like
0Likes
Like

Posted 05 December 2012 - 04:41 AM

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, 05 December 2012 - 04:42 AM.

"There will be major features. none to be thought of yet"

#3 kgs   Members   -  Reputation: 205

Like
0Likes
Like

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!!means the projection is not parallel with z = ? plain
My english is very poor!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS