[osg-users] Optimizer options oddity

Paul Martz pmartz at skew-matrix.com
Mon Jul 28 06:31:44 PDT 2008


The code in Optimizer.cpp makes this look like a bug. If the two were
intended to be synonymous, I'd expect they would share the same code. They
don't. I'm betting FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS is
supposed to be 0x10000.
   -Paul

 

  _____  

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Paul Martz
Sent: Sunday, July 27, 2008 2:57 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] Optimizer options oddity


Hi Glenn - I haven't looked at the code, but I see this in the ChangeLog:
 

2008-06-20 13:16 +0000 [r8474] robert:
* From Terry Welsh, new flatten static transforms visitor that
duplicates subgraphs that are shared beneath differnt static
transforms From Robert Osfield, made a range of changes to
Terry's visitor integrating it into osgUtil::Optimizer and
changing the code to use a style more like the rest of the OSG.

 
Maybe Terry can shed some light on this, or you could search osg-users for
the week leading up to this change to see if anything was said about it. Or
we can put this on a list of things for Robert to check before tagging 2.6.
   -Paul
 

  _____  

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Glenn
Waldron
Sent: Saturday, July 26, 2008 6:48 PM
To: OpenSceneGraph Users
Subject: [osg-users] Optimizer options oddity


I noticed that two of the OptimizerOptions values, COPY_SHARED_NODES and
FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS, have the same enum
value (0x100). Is this intentional? This is in 2.6 RC1.

Glenn

-- 
Glenn Waldron : Pelican Mapping : http://pelicanmapping.com :
+1.703.652.4791


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080728/20f218ae/attachment-0003.htm>


More information about the osg-users mailing list