allegro5 icon indicating copy to clipboard operation
allegro5 copied to clipboard

3D Coordinate System?

Open wini3d opened this issue 3 years ago • 3 comments

just curious and would like to know if the 3D coordinate system is left or right hand?

wini3d avatar Jul 02 '21 03:07 wini3d

The default coordinate system is right handed (x-right, y-down, z into the screen).

SiegeLord avatar Jul 06 '21 02:07 SiegeLord

Is switching to DirectX all I have to do if I want a left-handed coordinate system?

ReiquelApplegate avatar Feb 18 '24 18:02 ReiquelApplegate

The coordinate system is governed by the camera matrix used. I'm guessing you pass in the appropriate up vector to al_build_camera_transform, and then negate the x-axis via al_scale_transform_3d.

SiegeLord avatar Feb 18 '24 19:02 SiegeLord