Scrive Marcus Lindblom <[EMAIL PROTECTED]>: > Antonio Bleile wrote: > > Hi, > > > > I was thinking of how it would be possible to detect > > a change of the scene geometry efficiently. The > > background is that I want to re-render the shadow > > texture only when the scene has changed (geo > > rotation, add/removed children, change in material > > transparency etc). The only non-reliable solution > > I've come to was using the volume of the scene but > > that doesn't always work for obvious reasons. Is > > there anything smarter I can do (perhaps traversing > > the tree collecting transformations/etc and run an MD5 > > checksum on that data???). > > > > Any suggestions appreciated! > > Inspecting the change list seems like the easy way, if it's possible and > fits your application.
That's interesting! The problem is that I don't really know how to interpret the change list. When I call Thread::getCurrent()->getChangeList()->dump(); I get some interesting output, e.g. the from/to/up changes of the camera. But I need to know which object has changed, and as far as I can see the changelist holds just the field containers, not the nodeptr's to which the fields belong? In case the camera has been rotated I don't need to update the shadows, so a binary test on the changelist empty state wouldn't be sufficient... :( Regards, Toni ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
