From: Dimi (christop++at++fhw.gr)
Date: 12/12/2001 05:45:30
Hi,
I am facing currently the problem of how to get a 3D vector into my 3D
world from the mouse position(x,y) on the window.
I would like when a mouse button is pressed to compute this vector based
on where my mouse is, and perform an intersection
test to see if anything was hit. Like shooting a ray from your mouse
into the world and see if anything was hit.
In OpenGL I use the gluUnproject(...) function. Is there any other
similar function which I can use in Performer
which has the same function.
I have found that I could use the pfChannel::pick(...) function but
since it only handles intersection tests with ALL the scene
graph it does not suit. I would like to be able to seletively perform
intersection tests with arbitrary subgraphs.
Hope you can help me.
Thanks in advance
This archive was generated by hypermail 2b29 : Wed Dec 12 2001 - 05:27:27 PST