Re: [osg-users] Some Code

2008-01-16 Thread Robert Osfield
Hi GuiYe, All the cull settings that you've being doing with SceneView in 1.2 can now be done directly with osg::Camera as it subclasses from osg::CullSettings. For the most part you just need to rewrite the code to do stuff like: viewer.getCamera()->setComputeNearFarMode(..); Robert. 2008/

Re: [osg-users] Some Code

2008-01-16 Thread GuiYe
  Hello,robert!   I use the code to load the nodes from the commandline arguments. Just like these(a example of osgWater today I receive): #include "WaterPlane.h" #include #include #include #include #include #include #include #include #include #include #include #include #incl

Re: [osg-users] Some Code

2008-01-16 Thread Robert Osfield
2008/1/16 GuiYe <[EMAIL PROTECTED]>: > > > > Hello,robert! > I want to use the code: > > > >osgProducer::Viewer::SceneHandlerList::iterator sh_it = > > viewer.getSceneHandlerList().begin(); > >osgProducer::OsgSceneHandler* sh =sh_it->get(); > > > to load the nodes from the commandline

Re: [osg-users] Some Code

2008-01-16 Thread GuiYe
Hello,robert! I want to use the code: >osgProducer::Viewer::SceneHandlerList::iterator sh_it = > viewer.getSceneHandlerList().begin(); >osgProducer::OsgSceneHandler* sh =sh_it->get(); to load the nodes from the commandline arguments.   What should I do ?      Thank you~~~

Re: [osg-users] Some Code

2008-01-16 Thread Robert Osfield
Hi GuiYei, The osgViewer doesn't have an OsgSceneHandler and their isn't an equivalent. Perhaps you could provide a bit of information about what you were doing with the OsgSceneHandler then we might be able to suggest how to replace this code. Robert. 2008/1/16 GuiYe <[EMAIL PROTECTED]>: > >

[osg-users] Some Code

2008-01-16 Thread GuiYe
  Hello~~   I once wrote some in OpenSceneGraph1.2.Now I use OpenSceneGraph2.2,I want to rewrite it.But I can't find some functions to replace some code: osgProducer::Viewer::SceneHandlerList::iterator sh_it = viewer.getSceneHandlerList().begin(); osgProducer::OsgSceneHandler* sh