View Full Version : finding a position in a figure...

05-24-2001, 11:35 AM
Im quiet new to OpenGL. I wonder if there is a easy way to figure out the coordinates within a figure, if I make a click with the mouse in the figure. Lets say Id like to paint a sphere...


05-25-2001, 03:24 AM
by figure do you mean your window? or something within the window?

05-26-2001, 07:12 AM
I want to insert a figure of a head in my OpenGL window and I`d like to paint on this head. Say I`d like to add a intensity map over the figure of the head... and also be able to add points to the figure of the head...

get it?? ; )


05-26-2001, 10:26 AM
You can do it using selection buffer.
But you have to assign names to each polygon.
If "head" is round, it can be done using simple math. OpenGL can give you a world coordinates of point under cursor.