Hi there,

I am using a PagedLOD data generated by osgdem. there is a requirement that 
after a new file is loaded, i must post RTT texture for that node. so i write a 
UpdateCallback and hooked it on the root node.In that UpdateCallback, i use a 
NodeVisitor to collect a list of  node which are loaded after last time. and 
then apply RTT texture for them. However this solution always break the 
application and the error message from Visual Studio seems that some iterator 
is invalid after my operation.
so I add a button to the UI and move all the code except the invocation of 
traverse in that UpdateCallback to the slot of this button . then it works. i 
can see those texture now. However, this way is not automatic.
so, could some one give me some help on this issue?
could i update the scene in a UpdateCallback? I test this by writing a 
UpdateCallback to add cow.osg to the scene continually, it works.

Regards,

abe.zhu
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to