View Full Version : How can I draw a circle on an existing object's surface?

12-04-2000, 01:25 AM
I have drawn a skull on the screen and now i want to draw a circle on its surface when i click the left button. The centre is the mouse location. I want the circle to rotate together when the skull is rotating. How can i do it?

I use glReadPixels() to get the z value of the mouse location, then I use gluUnProject() to get the XYZ-object space coordinate of the centre. but how can i know on which plane the circle should be drawn?