robertosfield wrote:
> Hi Bjorn,
> 
> The orientation of the view would normally come under the View::getCamera()'s 
> ViewMatrix, usually it's the job of the CameraManipulators to do this, so you 
> could implement the local offsets using a custom CameraManipulator written 
> specifically for the OcculusRift.
> 
> 
> Alternatively you could you track the view matrix offset and apply this to 
> the left/right slave camera view offsets, so that it automatically gets 
> handled regardless of the the CameraManipulator applied to the viewer.
> 
> 
> Does this make sense?
> Robert.
> 


Hi Robert,

I was also thinking about a special CameraManipulator for the Rift. The 
drawback with making a special manipulator would be that the simple solution of 
just applying a ViewConfig would be lost. Since you will have to apply a view 
config and then apply a special view manipulator. I kind of like the idea of 
letting the user choose what type of camera manipulator they want and still 
getting the Rift orientations. 

So with this in mind I am thinking about your second suggestion; to track the 
view matrix offset and correspondingly update the slave view offsets. Which was 
pretty much my original idea. 

But this gives rise to some almost philosophical questions, some of the 
standard manipulators would work well with Rift Orientation changes overloaded 
such as "DriveManipulator", "FlightManipulator". Others are more questionable 
such as "OrbitManipulator" and "TrackBallManipulator". And then there are 
manipulators which would become very weird with Rift Orientation stacked such 
as "FirstPersonManipulator". Although this would be up to each developer to try 
what works for them.

So my idea was to follow you second suggestion to track the main camera view 
matrix. But I am not sure how to best do this. Should I connect a callback to 
the main camera inside the configure method in my ViewConfig class? Or are 
there simpler ways to do this?

Regards
Björn

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to