Archived

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

Basiror

BSP tree y and z switched?

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
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
quote:
Original post by niyaw
why not just render entire world righthanded?


nah worldcraft editors swap the x y values as well when they import the map files

and the normals are screwed up when you use righthanded#

i got it working though

Share this post


Link to post
Share on other sites