Hi Sergio, I noticed a similar issue when porting to OSG2.6. I think the issue is in the optimizer. Are you optimizing your scene? If not, read no further.
For some reason the FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS flag messes up transform nodes in loaded models (particularly OpenFlight models). I solved the issue by simply turning that flag off: osgUtil::Optimizer optimizer; ... optimizer.optimize(node, osgUtil::Optimizer::ALL_OPTIMIZATIONS ^ osgUtil::Optimizer:: FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS); Hope This Helps, Justin -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Robert Osfield Sent: Tuesday, January 13, 2009 10:56 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Particle effects and transforms Hi Sergio, Could you try the SVN or 2.7.8 dev version of the OSG as this has a fix to osgParticle. Robert. On Tue, Jan 13, 2009 at 2:56 PM, Sergio Casas Yrurzum <[email protected]> wrote: > Hi everyone. > > > > I am working on a project that uses osgParticle::SmokeEffect and I have > experienced a rare issue. > > > > Using OSG 2.4 I can add a node of type osgParticle::SmokeEffect to the > graph, and I can put it under a PositionAttitudeTransform (or > MatrixTransform). As expected, when the transform moves, the smoke effect > moves along with it. > > > > The problem is that I need to update to OSG 2.6, and if I compile the same > code with OSG 2.6, the smoke effect DOES NOT MOVE along with the transform, > and stays at (0,0,0). > > > > ¿What has changed from OSG 2.4 to OSG 2.6 regarding particle systems so that > their behavior changes? > > ¿Am I doing something wrong or missing something? If so, why does it work > perfectly on OSG 2.4 and not on OSG 2.6??? > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

