Hi Maxim,

On 3 August 2015 at 15:02, Maxim Kuzmin <maxri...@mail.ru> wrote:

> For the first time, I would like to use mouse. It will be represented as
> it is - as cursor.


When you using a mouse the mouse coordinates need to mapped from the
distortion correction coordinates back into eye coordinates and then into
world coordinates to be able to the intersection.

In the svn/trunk and OSG-3.4 branch of the OSG there is support in
osgViewer for remapping coordinates when the viewer has slave Camera's that
do distortion correction via texture coordinates, however, if the shader is
doing the distortion correction or if the distortion correction Camera is
placed in the scene graph this remapping can't be done, so you'll have to
come up with a mechanism yourself.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to