Hi James,
The ParticleSystem is derived from osg::Drawable and
ParticleSystemUpdater is derived from osg::Node.
How are you creating the graph with particles? If you are using clone
you may have trouble with ParticleSystemUpdater (see my recent
submission). Also, if you don't clone ParticleSystems and get the links
between ModularEmitter, Geode, and ParticleSystemUpdater correct you may
get "ghost" particles.
________________________________
From: James Killian [mailto:[email protected]]
Sorry that we are so late to chime in on this thread, but I'd
like to post a response to the content presented here in hopes to help
others, and perhaps fix code as well.
Rick is the original author of the client particle system code
we use for our game. I have passed this thread to him and here is his
response:
Rick:
As for the particle system structure, mine is arranged like the
last one on that email you showed me:
Group--+
|
+--MatrixTransform 1--+
| |
| +--Geode of main Body
| |
| +--Modular Emitter
|
+--Geode for particles
|
+--ParticleSystemUpdater
Except I think he had a typo. The ParticleSystemUpdater, if I
understand it correctly, is a Drawable, so it is actually a child of the
Geode. The one that I have is a ParticleSystem. Perhaps I am wrong and
the PartilceSystemUpdater is something else. Anyway, mine looks like
this right now:
Group--+
|
+--MatrixTransform 1--+
| |
| +--Geode of main Body
| |
| +--ParticleEffect (Modular
Emitter?)
|
+--Geode for particles--+
|
+--ParticleSystem
(ParticleSystemUpdater?)
So perhaps there is something else to look at here. We could
also just make the little fix you found for the time being and be done
with it. Perhaps we should shoot off an email in response and ask the
question of the OSG community?
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org