Re: [osg-users] Oculus+OSG

2015-09-04 Thread Christian Buchner
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

[osg-users] Verify hardware instancing capabilities

2015-09-04 Thread Mateusz Janiak
Hi, I was going through forum but could not find an answer for a simple question - how to detect if current system/graphic card supports hardware instancing? I want to know this to provide a proper factory for scene objects to provide maximum performance (HW if possible, software otherwise).

Re: [osg-users] Verify hardware instancing capabilities

2015-09-04 Thread Robert Osfield
Hi Mateusz, You need a valid graphics context to be able to test whether an extension is supported or not. One easy way to ensure this is to do the test in aRealizeOperation. Have a look at the osgvolume example to see how one tests for graphics capabilities. Robert. On 4 September 2015 at

[osg-users] Visual Studio 2013 and OSG Header Files

2015-09-04 Thread sam
Hey All, This isn't directly related to OSG but hopefully someone has the quick fix for this. How do I get visual studio intellisense to pick up the OSG header files and treat them as hpp files. Currently they are just treated as plain text. Thanks, Sam

Re: [osg-users] Visual Studio 2013 and OSG Header Files

2015-09-04 Thread Chris Hanson
http://trac.openscenegraph.org/projects/osg//wiki/Support/FAQ#WhatcanIdotomakemyeditorrecognizeOSGheadersasCfiles On Fri, Sep 4, 2015 at 2:47 PM, sam wrote: > Hey All, > > This isn't directly related to OSG but hopefully someone has the quick fix > for this. How do I get

Re: [osg-users] Problem converting yaw,pitch,roll to quaternion

2015-09-04 Thread michael kapelko
Hi. I use the following function to convert from degrees to quaternions: Vec4 degreeToQuaternion(const Vec3 ) throw (){osg::Quat q; q.makeRotate(osg::DegreesToRadians(degree.x), osg::Vec3(1, 0, 0), osg::DegreesToRadians(degree.y), osg::Vec3(0, 1, 0),

Re: [osg-users] Visual Studio 2013 and OSG Header Files

2015-09-04 Thread Sam Brkopac
Thank you, Chris. > On Sep 4, 2015, at 13:50, Chris Hanson wrote: > > http://trac.openscenegraph.org/projects/osg//wiki/Support/FAQ#WhatcanIdotomakemyeditorrecognizeOSGheadersasCfiles > >> On Fri, Sep 4, 2015 at 2:47 PM, sam wrote: >> Hey All, >> >>