Hi Aklin, You post just confuses me, there really isn't enough context to what you are doing to really know what is going on, and the the code itself just looks odd, for instance the self reference line:
pLOD->setRange(child_no,pLOD-> > > getMinRange(child_no),pLOD->getMaxRange(child_no)); Really don't know what you expect to be happening here. I kinda get the feeling that you need learn a bit more about the concept LODs as much as the OSG API. Robert. On Mon, Apr 6, 2009 at 12:41 PM, Akilan <akilan.thangam...@gmail.com> wrote: > Hi > > I got some idea from the previous reply and did something in my > application. But I am not sure that the my following code is doing dynamic > loading, > > //On reading each node(osga file) > osg::Node *node=osgDB::readNodeFile(argv[i]); > osg::PagedLOD *pLOD=findPLOD(node); > int child_no=pLOD->getChildIndex(); > > pLOD->setRange(child_no,pLOD->getMinRange(child_no),pLOD->getMaxRange(child_no)); > group->addChild(node); > ... > ... > viewer.setSceneData(group.get()); > viewer.run(); > > If ur answer is redundant, pls execuse and get me cleared. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=9788#9788 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org