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.


#Actuallucky6969b

Posted 10 December 2012 - 02:33 AM

Initially, I wanted to calculate the View and Projection Matrices out the inverse transpose matrices of the camera given by the GraphicsWindow interface provided by max. Since there is no handy ways to extract all cameras within a "active" viewport using GraphicsWindow with maxsdk and therefore very inconvenient to extract them one by one, I have decided to work it out myself by standard way, that is thru ip->GetObjectTM. What do I need? An eye position, target position and rotation, what else do I need?
And what is the formula?

1) calculate 3ds max (right handed ) view and projection matrix
2) convert these matrices to D3D
Thanks
Jack

#2lucky6969b

Posted 10 December 2012 - 01:27 AM

Initially, I wanted to calculate the View and Projection Matrices out the inverse transpose matrices of the camera given by the GraphicsWindow interface provided by max. Since there is no handy ways to extract all "active" cameras within a "active" viewport using GraphicsWindow with maxsdk and therefore very inconvenient to extract them one by one, I have decided to work it out myself by standard way, that is thru ip->GetObjectTM. What do I need? An eye position, target position and rotation, what else do I need?
And what is the formula?

1) calculate 3ds max (right handed ) view and projection matrix
2) convert these matrices to D3D
Thanks
Jack

#1lucky6969b

Posted 10 December 2012 - 01:21 AM

Initially, I wanted to calculate the View and Projection Matrices out the inverse transpose matrices of the camera given by the GraphicsWindow interface provided by max. Since there is no handy ways to extract all "active" cameras within a "active" viewport using GraphicsWindow with maxsdk and therefore very inconvenient to extract them one by one, I have decided to work it out myself by standard way, that is thru ip->GetObjectTM. What do I need? An eye position, target position and rotation, what else do I need?
And what is the formula?
Thanks
Jack

PARTNERS