Advertisement

ARGH! Trigonometric problems....

Started by October 17, 2000 05:27 PM
2 comments, last by mckracken 24 years, 1 month ago
I need some help on how to make a polygon always face the camera... I''m using glLookAt function for the camera movement... All the data I have is the position of the camera and the position of the polygon.. I made some calcs to rotate the polygon like using the ArcTangent of the difference of the position of the camera and the position of the polygon and then rotate the polygon using the result of the calc... but it works sometimes, not always... In some positions, it does some strange things... well.. if you could help me, please, answer me... Thanks... and see ya soon...
=====================================Regards,Juan Pablo (McKrackeN) Bettini Psychoban Official Site:http://www.psychoban.comPsychoban on iTunes App Store:http://itunes.apple.com/us/app/psychoban/id378692853?mt=8
Dude, check out the tutorials, sprites always face the camera and there''s a tutorial on sprites.
Advertisement
It''s the moving bitmaps in space one, or whatever it''s called... Uses stars in it as the bitmap...

S.
Don''t use ArcTans. Go here, http://nate.scuzzy.net/docs/billboard.html, its a really easy way to billboard faces.

Nate Miller
http://nate.scuzzy.net

This topic is closed to new replies.

Advertisement