anthony
05-10-2002, 04:24 AM
I am trying to rotate a billboard (with a bitmap loaded onto it).
Tfe billboard is drawn at the origin facing up the z- axis. The drawing is translated into the correct position on screen and then glRotate() function rotates it round to the correct orientation, so that it faces the correct direction, (The direction so that it can be seen by the user)
However, once this is accomplished I need to be able to rotate it, in it's own axis, so that it seems to be stationary just rotating about its centre.
I have tried to rotate it at the origin before drawing it, and i have also tried to rotate it about the vector orthognal to it, facing the user position. Both attemps, see the billboards completely dissapearing.
please help
thanks
Anthony
e-mail anthony.moss@baesystems.com
Tfe billboard is drawn at the origin facing up the z- axis. The drawing is translated into the correct position on screen and then glRotate() function rotates it round to the correct orientation, so that it faces the correct direction, (The direction so that it can be seen by the user)
However, once this is accomplished I need to be able to rotate it, in it's own axis, so that it seems to be stationary just rotating about its centre.
I have tried to rotate it at the origin before drawing it, and i have also tried to rotate it about the vector orthognal to it, facing the user position. Both attemps, see the billboards completely dissapearing.
please help
thanks
Anthony
e-mail anthony.moss@baesystems.com