Hi Jean-Francois,

Particle systems on moving models need to keep the emitters attached
to subgraph below any transforms that are moving/placing them and the
ParticleSystem itself attach to the root of the scene graph to make
sure that it's placed correctly.  See the osgparticleeffects example
to see how it handles moving models.

Robert.

On Tue, Aug 3, 2010 at 1:50 PM, Jean-Francois Severe <[email protected]> wrote:
> Hi,
> I'm trying to add some particle effects in my project. I took the spaceship 
> model shipped with osg, when I load it in a viewer it works fine. When I load 
> the same model in my project, the hull of the ship appears, but not the 
> particle effect.
> I'm using SDL as a window, and my code is derived from the SDL viewer. Camera 
> is moved manually, so there is no camera manipulator. There is also no event 
> handler.
> I tried giving viewer::frame() the frametime, but that didn't fix it.
> My project is over 4000 lines of code, and I have no idea where the bug may 
> lie, so excuse me for not posting the code. I'm just wondering if some of you 
> could give me pointers as to what may be wrong, so I can find the relevant 
> part myself.
>
> Thank you for any help you can provide with that little info. I'll gladly 
> supply parts of the code that seem relevant, I just can't figure out what is.
>
> rewpparo
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=30491#30491
>
>
>
>
>
> _______________________________________________
> 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