Yes sorry I should have mentioned that... I am using 2.8.2.

 

 

cheers !

 

 

bill

 

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of Jolley,
Thomas P
Sent: October-05-09 12:42 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] MatrixTransform and particle system

 

Hi Bill,

 

What version of osg are you using?

 

----

Tom Jolley

 

         

        
________________________________


        From: [email protected]
[mailto:[email protected]] On Behalf Of
Poirier, Guillaume
        Sent: Monday, October 05, 2009 11:18 AM
        To: OpenSceneGraph Users
        Subject: [osg-users] MatrixTransform and particle system

        I am trying to apply a transform to a particle system like this:

         

        _transform = new osg::MatrixTransform;

        _transform->setMatrix(osg::Matrix::rotate(fromDir, toDir));

        _geode = new osg::Geode;

        _geode->addDrawable(particleSystem.get());

        _transform->addChild(_geode.get());

        addChild(_transform.get());

         

        Unfortunately adding the transform does not transform my
particles... However if I add another geode like this before the
previous code:

         

        osg::ref_ptr<osg::Geode> pDummy = new osg::Geode;

        pDummy->addDrawable(particleSystem.get());

        addChild(pDummy.get());

         

        Then I have one set of transformed particles and one set of
untransformed ones. Probably I am missing something simple here ? Anyone
has a suggestion ?

         

         

        cheers !

         

         

        bill

         

         

         

         

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to