BSP tree y and z switched?
just a little question are the y and z coordiantes in bsp trees already switched?
in radiant and worldcraft y= into the screen x to the right and z upwards
so i wonder whethere they are already switched in bsp trees cause that plays an important role concerning collision detection and other movement things
Nothing to do with BSPs - just depends on the preference of the company or people that wrote the game in question.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
they just use right-handed coordinate system. use the same coordinate system for all of your code, and you''ll be ok.
the point is that if you are making your own BSP tree the coordinates will be in whatever orientation you want them to be. and it will be consistent with your game.
if, and only if, you are reading in someone elses BSP file format or copying their code, do you then have to worry about flipping coordinates. but as posted above, if you do have to flip that''s the easiest of all possible things.
-me
if, and only if, you are reading in someone elses BSP file format or copying their code, do you then have to worry about flipping coordinates. but as posted above, if you do have to flip that''s the easiest of all possible things.
-me
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement