Hi Björn, let me use this thread to suggest a new feature. I would like the positional tracking of the osgoculusviewer to be optional, possibly by calling a member function oculusDevice->setPositionTracking(false);
If you remember my use case, there is a camera strapped to a person's head, which already tracks the head position. Superimposing an external tracking would cause some issues. In the 0.5.0.1 version of the osgoculus viewer I've already added a switch to disable the tracking, but it seems I will have to repeat it for the current 0.7.0.0 enabled version (the master branch) Also, somewhat off-topic: I may have found an alternative to the DK2 head set by using an iphone 6 and Google Cardboard like devices, such as the Zeiss VR One. Combine this with the duet display driver (duetdisplay.com) and you can use this iphone-based headset with sufficiently low latency at 60 FPS while using the PC for rendering the graphics. As I need no positional tracking from the phone fed back from the PC, this will work for me. Christian 2015-09-02 22:27 GMT+02:00 Björn Blissing <[email protected]>: > > cbuchner1 wrote: > > Trying to build the current osgoculus master branch against Oculus SDK > 0.7.0.0 using OSG 3.2.1 > > > > > > the following code from oculusdevice.cpp is making trouble. For OSG 3.2 > the variable "ctx" is undefined. > > > > void OculusTextureBuffer::setRenderSurface(const osg::State& state) > > { > > #if(OSG_VERSION_GREATER_OR_EQUAL(3, 4, 0)) > > const osg::GLExtensions* fbo_ext = state.get<osg::GLExtensions>(); > > #else > > const osg::FBOExtensions* fbo_ext = > osg::FBOExtensions::instance(ctx, true); > > #endif > > ... > > > > void OculusDepthBuffer::setRenderSurface(const osg::State& state) > > { > > #if(OSG_VERSION_GREATER_OR_EQUAL(3, 4, 0)) > > const osg::GLExtensions* fbo_ext = state.get<osg::GLExtensions>(); > > #else > > const osg::FBOExtensions* fbo_ext = > osg::FBOExtensions::instance(ctx, true); > > #endif > > ... > > > > > > cbuchner1 wrote: > > A followup: inserting the following line into both #else branches fixes > it > > > > const unsigned int ctx = state.getContextID(); > > > > > Ah, the woes of trying to have support for multiple OSG version at the > same time. I did some refactoring yesterday and this bug obviously slipped > through without being tested. Sorry about that. > > Another user already submitted a pull request with a fix, which is merged. > > Best regards > Björn > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=65002#65002 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

