Hi,

this patch adds a method 
[code]
void setTextureTileRange(int sTile, int tTile, int startTile, int endTile);
[/code]
to the clas osgParticle::Particle.

Also some small changes to how start and end of tile range are saved internally.
With this method, users can create multiple different animated particles from a 
single texture. sTile and tTile give the horizontal and vertical number of 
tiles in the texture, startTile gives the index of the first tile to use for 
this particle (starts with 0) and endTile gives the last index. 

See this thread for discussion:
http://forum.openscenegraph.org/viewtopic.php?p=15705#15705

This is starting to get fun! Can't wait to do some awesome 'splosions!

Cheers,
Martin

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15706#15706





_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to