[osg-users] Stopping a particle system after a set number ofparticles

Kim C Bale K.Bale at hull.ac.uk
Tue Mar 11 05:16:38 PDT 2008


Thanks for your prompt reply.
 
But after a bit more digging I found emitter->setLifeTime( dbl ) which is what I was after.
 
Regards,
 
Kim.
 
 

________________________________

From: osg-users-bounces at lists.openscenegraph.org on behalf of Vincent Bourdier
Sent: Tue 11/03/2008 12:08
To: OpenSceneGraph Users
Subject: Re: [osg-users] Stopping a particle system after a set number ofparticles


Hi,

I think it doesn't exist yet... (perhaps I make a mistake writing this)...
But counting time left before stoping the particlesystem is not very difficult... just make a time difference and switch off your particleSystem (or remove it) from the graph...

Vincent.


2008/3/11, Kim C Bale <K.Bale at hull.ac.uk>: 

	Is there a function to stop an osgParticle system from releasing particles after a certain number or particles have been fired or perhaps a certain amount of time has passed without creating a custom class?
	
	Leafing through the doc referance I can't seem to find a method that has a similar function. Just wondering as I don't want to start coding one up if it's already there.
	
	Cheers,
	
	
	Kim.
	
	*****************************************************************************************
	To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html
	*****************************************************************************************
	_______________________________________________
	osg-users mailing list
	osg-users at lists.openscenegraph.org
	http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
	
	
	


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5330 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080311/6351c2e8/attachment.bin 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080311/6351c2e8/attachment.asc 


More information about the osg-users mailing list