Re: [osg-users] lazy readNodeFile

2011-05-06 Thread Gianni Ambrosio
I gave a look at PagedLOD and ProxyNode classes and the second one seems what I need. But unfortunately I don't understand the logic behind the loading. Moreover even if I set LoadingExternalReferenceMode the to LOAD_IMMEDIATELY the file is not really loaded "immediately". Which are the events t

Re: [osg-users] lazy readNodeFile

2011-05-06 Thread Torben Dannhauer
Hi, maybe also ProxyNode is what you need.. Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=39077#39077 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.opens

Re: [osg-users] lazy readNodeFile

2011-05-06 Thread Gianni Ambrosio
Thanks Vincent for the fast reply. I give a look at what you suggested. Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=39076#39076 ___ osg-users mailing list osg-users@lists.openscenegraph.or

Re: [osg-users] lazy readNodeFile

2011-05-06 Thread Vincent Bourdier
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 a

[osg-users] lazy readNodeFile

2011-05-06 Thread Gianni Ambrosio
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 show