Turning particle emitter on and off

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
cinek
Posts: 13
Joined: Sat Aug 07, 2004 3:00 pm
Location: Poland

Turning particle emitter on and off

Post by cinek »

Is it possible? I couldn't find anything that would do this in the API docs (maybe I haven't been looking hard enough?).

I want to make a rocket engine "trail", but only when the player is pressing the accelerate button, when he stops pressing it I want the fire to fade out (so deleteing the ParticleSystem isn't a solution).

I've also drawn a conclusion, after skimming the forums, that it's not possible to rotate and translate the emitter without also translating and rotating all the particles (ie. the whole trail rotates with my starship). Is such a feature being planned (I don't need special effects yet) or will I have to tweak the engine myself? (shouldn't be that hard I guess)
Cinek
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Maybe you could set the particle size to 0 with setParticleSize() method ???
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Atlantis

Post by Atlantis »

Create your own.. Should be that hard to port this over to be compatible with irrlicht. Will give you much more control over the particles.. And have different systems.. Like snow, Exhaust, Explosions, ect..

Part 1 of a 5 part particle engine tutorial.
http://articles.thewavelength.net/166/

It was designed for Half-Life but shouldn't be hard to port.. In fact i'm porting it right now for my game.. Will give you a lot of control over your particles..
Guest

Re: Turning particle emitter on and off

Post by Guest »

cinek wrote: I've also drawn a conclusion, after skimming the forums, that it's not possible to rotate and translate the emitter without also translating and rotating all the particles (ie. the whole trail rotates with my starship). Is such a feature being planned (I don't need special effects yet) or will I have to tweak the engine myself? (shouldn't be that hard I guess)
check out [urlhttp://www.irrlichtnx.mmdevel.de/]IrrlichtNX[/url]. it is a copy off irrlicht 0.6 that has fixes and improvements to it. it has that particle thing either fixed or being looked at for a start.

i haven't used it myself but it sounds good. once irr' 0.7 is released niko, the irr' author, will move the storage of his work over there as well i beleive. that should allow him to focus on the big vision work and allow others to add any smaller fixes or improvements as required.
blayde
Posts: 45
Joined: Fri Jul 16, 2004 12:49 pm
Contact:

Post by blayde »

blast and darnation, that last post was me :
IrrlichtNX
cinek
Posts: 13
Joined: Sat Aug 07, 2004 3:00 pm
Location: Poland

Post by cinek »

Thanks for answers.

Once I have the base of my test-game working, I'll try to extend Irrlichts or write my own particle system it (or use IrrlichtNX, if their particles are working by then).
Cinek
Atlantis

Post by Atlantis »

I almost got it working with irrlicht.
When I get it working if you want it I'll send it to you..

I'll include a few particle effects.. I'll include an explosion and sparks..
You can make your own by inhertiting from the base particle effect class..

Give me a few hours and I should have it all working.
cinek
Posts: 13
Joined: Sat Aug 07, 2004 3:00 pm
Location: Poland

Post by cinek »

I'm interested :)

I guess more people are, it would be great if you could put in somewhere on the web.
Cinek
Atlantis

Post by Atlantis »

Yah its turning out rather nice this system.. In a bit i'll post some screenshots of it..

The screenshots will consist of an explosion a kinda spewing thing.. and some sparks with gravity..

Oh and this particle system isn't limited to 2d graphics ( billboards ).

You can attach a model to particles as well.
Atlantis

Post by Atlantis »

Here is a preview.. The engine framework I still don't have done.. But that is with the begining stages of the particle engine..

These particles arn't affected by the emitters location.. Meaning if you move the emitter all the old particles won't move.. they are under the affect of there own velocity and forces.. The particles are emitted in the direction the particle system specifies.. ( You can change the direction at any time, for example on a ship alter the direction to the back vector of the ship and you get exhaust )

Image

The particles are so smooth moving.. I have total control over them I can make them do what ever I want.. I should have it finished soon then i'll release.
Atlantis

Post by Atlantis »

Simple Explosion.. Just a quick burst of particles flying our from center..

Like I said this explosion is simple. You could add forces wind and every to it..

Image

I'll tweak it a bit then release the particle engine.
Atlantis

Post by Atlantis »

Ok i'll post the particle engine.. But i'm not going to include my premade effects.. Seeing as they are crap I hate physics... So you will have to make the effects.. Just inherit from ParticleSystem and make your own systems..

If you need help making a system just ask..

Also for you cinek you can add a simple pause and resume functions to your system, Only spew new particles if its not paused.. Sound like what you want.

Hehe basically you have control to every single particle by itself.. And the whole emitter...

If you want it email me...
cdbarrett03@yahoo.com

Cause I don't have any space to upload it to for you guys to download..

And here is another screenshot..
Image
blayde
Posts: 45
Joined: Fri Jul 16, 2004 12:49 pm
Contact:

Post by blayde »

50free.com

the are f**king fantastic.

anternatly i'll be happy to host it myself, mail me list_lfaATyahooDOTcom.

you might want to consider contru\ibuting that code to irrlichtNX, i think they'd appriciate it.
Guest

Post by Guest »

Yah but theyd have to completly rewrite the particle code to implement this.
But I will.

By request I'll include a few sample systems..

and I checked 50 free.. They don't let you just have file storage.. you must have a site. :(
Atlantis
Posts: 8
Joined: Thu Aug 12, 2004 6:31 am
Location: Florida

Post by Atlantis »

Here you go..

I have this place but it sucks.. I mean really sucks.. Only 5mb of bandwidth per day.. But its only place I found for file storage and is free..

http://home.ripway.com/2004-8/157329/Particles.zip

To see the effect in action run particles.exe and walk backwards a little bit..

Then you will see a particle burst every 3 seconds.. Not much but is a simple effect so you can see how to make more.

Now its 4:30am here so good night...

EDIT:
A Screenshot of the particle engine in my game..
This is a simple explosion system I made for the particle engine.
Image
-Atlantis

Well Then we'll just have to get to know each other.. Me umm I like uh, farris wheels and college football, anything that goes faster than 200 miles per hour. Mjr. John Sheppard ( Stargate: Atlantis )
Post Reply