About Coordinate Transform?

Started by
1 comment, last by circlesoft 19 years, 7 months ago
I want to convert bsp file(quake3) coordinate to Direct3d(left hand) coordinate. what should I do? vertex coordinate, face's normal? vertex normal?
Advertisement
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.
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).
Dustin Franklin ( circlesoft :: KBase :: Mystic GD :: ApolloNL )

This topic is closed to new replies.

Advertisement