Hi,
Maybe the ReadNodeFileCallback can help you.
It is used by the DatabasePager, so you can manage what is done for each
readNodeFile call.
Or maybe making your own node node as PagedLOD which load the file only
when requested...
Or playing with UpdateCallback...
Sorry this is not a real answer but maybe it can help you.
Regards,
Vincent.
Le 06/05/2011 09:45, Gianni Ambrosio a écrit :
Hi All,
I implemented a class that embeds an osg::Group. The real graphics for my
object is loaded from a file with a readNodeFile() call and the resulting node
is set as child of the osg:Group. Now I would like the readNodeFile() is called
just when it is needed, that means when the viewer shows the object.
Is there something ready in the osg libs to do so?
Regards
Gianni
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=39073#39073
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org