Hi Robert,
Hmmm... maybe a warning of some sort on Optimizer::StateVisitor (and near the Optimizer
enum?). Why do you think of: "Warning: StateVisitor only processes objects with
STATIC data variance. You may use StaticObjectDetectionVisitor / STATIC_OBJECT_DETECTION
for default-initialized graphs (ie. UNSPECIFIED data variance)."?
--
Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/
Le Thu, 28 Mar 2013 09:40:48 +0100, Robert Osfield <[email protected]> a
écrit:
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
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org