Under OS X, I can not see my units although I can select them.
I suppose bad values for X/Y/Z axis.
Where can I start from to check those values ?
Units position
Units position
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Units use 2 VECTOR for position and orientation: Pos and Angle
It uses Euler angles (yes very basic but very convenient with OpenGL way of doing rotations), so Angle.x is how much it turns around X axis, etc... WARNING: Internal angles are in degrees !!! TA angles are in 64K format and trigonometric functions work with radians (we have conversion constants RAD2DEG, DEG2RAD, TA2RAD, TA2DEG, ...).
The selection mechanism uses the angles from the UNIT object, so if you can select units then the angles aren't aberrant (ie NaN). I think it has probably something to do with OpenGL state at drawing time.
PS: I am back home tonight, I'll be able to work on that soon
It uses Euler angles (yes very basic but very convenient with OpenGL way of doing rotations), so Angle.x is how much it turns around X axis, etc... WARNING: Internal angles are in degrees !!! TA angles are in 64K format and trigonometric functions work with radians (we have conversion constants RAD2DEG, DEG2RAD, TA2RAD, TA2DEG, ...).
The selection mechanism uses the angles from the UNIT object, so if you can select units then the angles aren't aberrant (ie NaN). I think it has probably something to do with OpenGL state at drawing time.
PS: I am back home tonight, I'll be able to work on that soon
=>;-D Penguin Powered
Actually it seems that the problem comes from angles, as we can see on those screenshots :
http://ftn.shikami.org/misc/ta3d/bugs/angle1.jpg
http://ftn.shikami.org/misc/ta3d/bugs/angle2.jpg
http://ftn.shikami.org/misc/ta3d/bugs/angle3.jpg
(Metallo are on the same line than the factory, near the radar, not near the sea)
http://ftn.shikami.org/misc/ta3d/bugs/angle1.jpg
http://ftn.shikami.org/misc/ta3d/bugs/angle2.jpg
http://ftn.shikami.org/misc/ta3d/bugs/angle3.jpg
(Metallo are on the same line than the factory, near the radar, not near the sea)
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
Who is online
Users browsing this forum: No registered users and 55 guests