Hi Neil,

The issue here is that you probably have both the emitter of the particle system transforms as well as the paricle system itself, this ends up creating a double transform on the file particles.

The way to set it up is have the emiter attached to the shower head, but have the particle system attached above this, such as the root node of the scene graph.  The osgparticleeffect example has code and discussion of how to set this up.

Another route might be to implement the shower using shaders.   The is what I did for snow and rain preciptitation effects.  shader based particle systems scale much better than CPU based ones.  The bulk of the particle system code in osgParticle is CPU based, while only the new PreciptiationEffect is GPU/GLSL based.  

The Precipitation code isn't quite flexible enough for your needs, design for wide area effects, such as rain or snow covering a whole region rather than locallised coming out of nozzel, but the basics with be the same for what you need.  However, if a CPU based particle system provides enough peformance then just stick with it.

Robert.

On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
Hi All,

I'm experimenting with the particle system node, attempting to create a shower effect to add to a shower head model. The showerhead model is loaded at the origin, and rotated and translated into the correct position relative to the other components for the shower.

In order to setup the particle system, I disabled the transformation on the showerhead, and created the particle system in the right position relative to the origin of the showerhead.

Now, what I'd like to do is make the particle system a child of the showerhead, and enable the transformation matrix so that the showerhead, and shower effect particl system, appear in the correct position, with water flowing out of the showerhead, and acting under gravity. The issue, however, is that when the transformation is applied, the partle system appears somewhere other than where the shower head is, with a rotation on it, and the water stretching the bounds of physics by heading off horizontally.

If any of this makes sense, has anyone played with the particle system enough to tell me where I might be messing up ?

Thanks in advance

Neil.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to