[osg-users] makeLookAt and Oculus rift quaternion question

Björn Blissing bjorn.blissing at vti.se
Sat Apr 18 16:26:42 PDT 2015


Hi João,

I don't exactly get what you are trying to do. Are you aware that there already is a library for using the Oculus Rift with OSG?

http://github.com/bjornblissing/osgoculusviewer

If you just want to see how the Oculus Rift orientation quaternions are convertet into osg quaternions look at this line of code:
http://github.com/bjornblissing/osgoculusviewer/blob/7e95f33e8f2dcee7552e27b17d20b9584e18673d/src/oculusdevice.cpp#L285

Hope that helps a bit!

Regards
Björn

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63468#63468








More information about the osg-users mailing list