PDA

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



grodslukaren
05-24-2001, 12:35 PM
Hi,
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...

Thanks!!

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

grodslukaren
05-26-2001, 08: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?? ; )

/grodslukaren

RandyU
05-26-2001, 11: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.