Hi everyone,

I' ve been trying to get object picking using the mouse (and later using a 3D 
mouse equivalent) in a HORIZONTAL_SPLIT stereo mode setting. 

My initial code was using the osgPick methods ...resulting as you might imagine 
to completely wrong x coordinates and it took me ages to figure out it was the 
stereo projection messing it up. The problem is that apart from the viewport 
being double the horizontal size of what is actual rendered for each eye, there 
is also the eye separation offset that complicates things even more. I am 
considering 2 options to fix this:

1. Create a new mono view that is half the horizontal size of the stereo view 
and use it to pick the object. However this view should be renderless. How can 
this be done?

2. Take the double viewport width and the half eye (eye separation is total 
distance between eyes) separation values into account and rewrite the matrix 
transformations from screen to world coords. 

Has anyone done something like this before that can point me to the right 
direction? Code snippets will be most welcome  :) 

... 

Thank you!

Cheers,
Thanos

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27755#27755





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to