[osg-users] Oculus DK2 and intersections
Robert Osfield
robert.osfield at gmail.com
Mon Aug 3 10:13:09 PDT 2015
Hi Maxim,
On 3 August 2015 at 15:02, Maxim Kuzmin <maxrider at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150803/380d9f74/attachment-0003.htm>
More information about the osg-users
mailing list