Jump to content
  • Advertisement
Sign in to follow this  
jianghongbo

About Coordinate Transform?

This topic is 5161 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

I want to convert bsp file(quake3) coordinate to Direct3d(left hand) coordinate. what should I do? vertex coordinate, face's normal? vertex normal?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
If what you're saying is that you want to convert from left hand to right hand coordinate systems then you'll need to negate the x component of the positions and normals in the model for it to come out the same. If you don't then you'll get the model mirrored in the z axis.

Share this post


Link to post
Share on other sites
What coordinate system does QuakeIII use? Here is a diagram of 2 popular coordinate systems (DirectX uses left-handed):



If Q3 uses a right-handed system, you simply need to invert the Z values (multiply them by -1).

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!