[osg-users] Problem with Optimizer - FLATTEN_STATIC_TRANSFORMS

Robert Osfield robert.osfield at gmail.com
Sun Sep 14 09:20:54 PDT 2008

Hi Brian,

Normally isOperationPermissibleForObject(&geode) would return true.
It's applied as well as users might want to make a particle Geode as
one that you don't change, and changing it's drawable is certainly
changing it so is sensible to check.

I haven't gone through the code recently so can't comment on
specifics, just trying to clarify some of the things you've raised.
What you are seeing might be a clue to the source of the problem, is
just a red herring.


On Sun, Sep 14, 2008 at 4:14 PM, Brian <osgscene at gmail.com> wrote:
> Sorry I don't understand what you are saying.
> When I change this
> if((geometry)&&isOperationPermissibleForObject(&geode)&&(isOperationPermissibleForObject(geometry)))
> to this
> if((geometry)&&(isOperationPermissibleForObject(geometry)))
> It fixes my problem, but I don't want to break the code for someone else.  I
> don't understand why the the function
> isOperationPermissableForObject(&geode) needs to be checked since we are
> cloning the vertexarray not the geode.
> Brian
> On Sun, Sep 14, 2008 at 10:45 AM, Robert Osfield <robert.osfield at gmail.com>
> wrote:
>> Hi Brian,
>> The isOperatoinPermissible() methods are part of mechinism that allows
>> users to control which objects in the scene graph are optimized - for
>> instance if they want to disable the optimization of particular nodes,
>> geometry.  The usage outlined looks reasonable w.r.t usage is
>> OperationPermissable.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list