Re: [osg-users] osgViewer::Viewer and getSceneView

2007-10-16 Thread Robert Osfield
Hi Pasquale, The osg::Camera inherits from osg::CullSetting which is where the setNearFarRatio() method is implemented so do: viewer-getCamera()-setNearFarRatio(..) Robert. On 10/10/07, Pasquale Tricarico [EMAIL PROTECTED] wrote: Hi, I'm updating a project to OSG-2.2, after several months

[osg-users] osgViewer::Viewer and getSceneView

2007-10-10 Thread Pasquale Tricarico
Hi, I'm updating a project to OSG-2.2, after several months (~6) of interrupted development, and I'm facing a problem. Before I based my code on the QT viewer example, with: class ViewerQT : public osgViewer::Viewer, public GraphicsWindowQT {...} and I could do: ViewerQT * viewerWindow = new

Re: [osg-users] osgViewer::Viewer and getSceneView

2007-10-10 Thread David Callu
Hi Pasquale now you need to use the osgViewer::Viewer which derive from osgViewer::View which derive from osg::View You have access to - the scene graph by osgViewer::View::GetScene() - the camera by osgViewer::View::GetCamera() ... osgUtil::SceneView is use internally by