Re: [osg-users] Loading of osga models dynamically?

2009-04-06 Thread Akilan
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

Re: [osg-users] Loading of osga models dynamically?

2009-04-06 Thread Robert Osfield
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

Re: [osg-users] Loading of osga models dynamically?

2009-04-03 Thread Robert Osfield
HI Akilan, The .osga files are a distraction for this topic, it actually relates to any file format that the OSG might load. The OSG supports multi-threaded database paging using the osgDB::DatabaePager could with osg::PagedLOD / osg::ProxyNode. For you purposes you'll want to use