HI Renl iwei,

Have a look at the osgparticleeffects example, it has a specific code path
for when a particle effect is attached to a moving object.

Robert.

2009/4/19 renlw <[email protected]>

>  Hi,
>     I add a FireEffect into scene under a MatrixTransform node, and 
> setUseLocalParticleSystem(false)
> to let its father's matrix applied to the effect, code like this:
>         osgParticle::FireEffect* fire = new
> osgParticle::FireEffect(osg::Vec3d(0,0,0), 10.f);
>         fire->setUseLocalParticleSystem(false);
>         root->addChild(fire);         // root is a MatrixTransform
>     But i cant find the fire in the scene then[image: 难过 图释]
>    Could anybody be so pleased to show me the reason.
>
> -renliwei
>
> _______________________________________________
> 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

Reply via email to