Here's my flattener that wipes out static transforms and duplicates subgraphs as necessary. If you have a model with a lot of static transforms, this may make it run faster at the cost of a lot more memory. My models got about a 25% framerate improvement.
This works with some pretty complex models that I have tried it on, but I'd be surprised if I thought of every possible corner case. I hope other people can try it out. Sorry I didn't include a demo application, but that stuff is all secret and stuff. It's a simple visitor so it's easy to add to existing code. Before it gets rolled into Optimizer it will need a better name, and there might be ways to have better code reuse (some of the functions are quite similar right now). -- Terry Welsh - mogumbo 'at' gmail.com www.reallyslick.com | www.mogumbo.com
FlattenVisitor.tar.gz
Description: GNU Zip compressed data
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
