[osg-users] osgoculus viewer picking

Björn Blissing bjorn.blissing at vti.se
Wed Nov 8 07:07:29 PST 2017

Hi Michael,

The OsgOculusViewer only renders to textures. What you see on your normal monitor is mirrored through the facilities provided by the Oculus SDK. I really do not know how mouse events are propagated through this window back to the osg application.

The second assumption your code makes is that it assumes that there is a valid camera connected to the view. OsgOculusViewer uses a master-slave configuration, where the master view do not contain a valid camera object. Instead it is the slave cameras that is responsible for all rendering. 

A more esoteric question is: Do you really want mouse picking abilities when you are using a HMD? Shouldn't you be using the Oculus Touch capabilities for object picking inside VR instead?


Read this topic online here:

More information about the osg-users mailing list