About Coordinate Transform?
I want to convert bsp file(quake3) coordinate to Direct3d(left hand) coordinate. what should I do? vertex coordinate, face's normal? vertex normal?
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).
If Q3 uses a right-handed system, you simply need to invert the Z values (multiply them by -1).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement