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
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
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
3 matches
Mail list logo