Jump to content
  • Advertisement
Sign in to follow this  
Bitem2k

Using 3D Studio Max Camera positions in DirectX

This topic is 4768 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi does anyone know how i could go about using a cameras location in 3dsmax for setting up my camera in c# dx9? I know that i have to convert the coordinate system but i just cant get my head round it! thanks

Share this post


Link to post
Share on other sites
Advertisement
swap y and z of the position. If you need rotations they will need to be converted as well.

Share this post


Link to post
Share on other sites
Hi thanks for your quick reply.

I have done what you recommended, here are some screen shots of the results.

Here is what the scene and the camera look like in Perspective view in max viewport:


Here is the view from the camera when rendered in max:


Straight after hard coding the values into my program without reversing them as you said:


Here is the result of swapping the y and z values:


As you can see this is not working correctly! Any ideas?

(In case pictures dont load)

Here is what the scene and the camera look like in Perspective view in max viewport:

Here is the view from the camera when rendered in max:

Straight after hard coding the values into my program without reversing them as you said:

Here is the result of swapping the y and z values:

Share this post


Link to post
Share on other sites
Sorry Sorted it out! i was just being stupid and had applied a transformation matrix somewhere else in the code! sorry and thanks for your help! the reverse y z thing worked a treat.

Share this post


Link to post
Share on other sites
did you swap the mesh as well? just asking, because the camera seems to be ok. Your up vector is (0,1,0) and the mesh is upsidedown..

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!