Hi, I'm trying to work out how to combine particles with different textures. I want to create a fire particle system where I can dynamically change the amount of fire-, smoke- and spark-particles. I haven't found a good way to do this yet.
My first idea was to overlay multiple particle systems. This has the problem that the particles of the different kinds start z-fighting. Depending on camera position, different kinds of particle are rendered on top. My second thought was to create a single particle system that has emitters for the different particles. I can add multiple emitters to a particle system with different particle prototypes. I can only assign one single texture to a particle system. This would be OK if I could specify different texture coordinates for the different particle prototypes. There is the method in the particle class "setTextureTile" that I can use to let a single particle loop through the tiles of a texture during its lifetime. But there is no way to set a start and end tile, so the particle always loops through all tiles. Is there something I don't see? Or is there currently no way to add differently textured particles to a single particle system? If there is none, the easiest way to change this would be to add a setStartTile and setEndTile method to the particle class so that I can assign different tile segments to different particles. Thank you! Cheers, Martin ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15697#15697 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

