Hi Sukender, On 28 March 2013 07:48, Sukender <[email protected]> wrote: > Well, the behavior actually surprised me (I had to step-by-step debug to > discover why I had so many StateSets after an optimization). This is why I > asked. However, if this is normal, then maybe we could just add a tiny > comment somewhere, to avoid loosing hours as I did? > > As a side note, I'd like to mention that most elements I read (using > ReaderWriters in the distribution) are used directly, and thus have > UNSPECIFIED data variance.
A loader won't typically know what the user wants to do with the data so UNSPECIFIED is the best default. The STATIC_OBJECT_DETECTION pass is done by the Optimizer by default to compensate for this. The StaticObjectDetectionVisitor does have a doxygen comment explaining what it does, but doesn't mention why it's important. What are you thinking of in terms of documentation that would help you? Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
