Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Basiror

BSP tree y and z switched?

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

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

Share this post


Link to post
Share on other sites
Advertisement
they just use right-handed coordinate system. use the same coordinate system for all of your code, and you''ll be ok.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
ok thx guys the y<->s swap was correct but i had to invert the z axis after the swap in order to get it working

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!