I have been exploring the coordinate system used in q3, and so far this is what i get…, but i think it’s really strange!
To start the camera at the place we desire, i must convert the coordinates like this:
ok, now if i wanna mark a ligh effect, at the light coordinates marked in the entity light, i should do the same conversion, right? wrong! If i convert the ligth coordinates like the above, it will not be in the correct place…, so to convert the light i have to do like this:
light.x = light.x;
light.y = light.z;
light.z = -light.y;
Why ? why are they using diferent coordinates systems ? This is a problem, for example if i try to the get the distance from the player to the light source…, i must convert the coordinates again to the original coordinate system…
Is all this wrong, or is there something that i don’t see ?