[osg-users] How to use CameraView
Hi, I need to change the FOV for the two slave cameras that I have and I have figured out that I need to use the CameraView class but I cannot figure out how to use it. Could I get some help please. Thank you! Cheers, Robert -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41679#41679 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to use CameraView
Hi Robert, On Wed, Jul 27, 2011 at 8:21 PM, Robert Kern wrote: > I need to change the FOV for the two slave cameras that I have and I have > figured out that I need to use the CameraView class but I cannot figure out > how to use it. Could I get some help please. CameraView is a scene graph Node placed in the scene to allow nodes to control the camera position - such having a camera move from scene vantage point to vantage point with these places in the scene being serialized along with the scene graph. This is very specialist node though, very few application will ever need to use it, and you certainly wouldn't need to use just change the FOV of a slave Camera. How you should change the FOV for your slave Camera depends upon what you are doing - it might be simply that you'd change the projection offset matrix assign to each slave, or it might be that you just need to change the FOV of the view's master Camera. You've not said anything about what you are trying to achieve with your application, and what you are using slave Camera's for, why you need to change their FOV. Without further information we can't really provide any specific recomandations. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to use CameraView
I just need to change the fov to match the specs of the HMD I am using for a virtual reality application. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41689#41689 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to use CameraView
On 07/27/2011 06:01 PM, Robert Kern wrote: I just need to change the fov to match the specs of the HMD I am using for a virtual reality application. All you should need to do is call setProjectionMatrixAsPerspective() on each camera. The FOV you know, the aspect you can compute from the HMD's resolution (horizontal/vertical). --"J" ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to use CameraView
On 07/27/2011 06:17 PM, Jason Daly wrote: On 07/27/2011 06:01 PM, Robert Kern wrote: I just need to change the fov to match the specs of the HMD I am using for a virtual reality application. All you should need to do is call setProjectionMatrixAsPerspective() on each camera. The FOV you know, the aspect you can compute from the HMD's resolution (horizontal/vertical). I should emphasize that the FOV passed to that method should be the vertical FOV. --"J" ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org