PDA

View Full Version : Particle Generators for animated textures?


picklebro
April 5th, 2005, 04:29 AM
Here's something I thought up last night and simply haven't had a chance to try - if anyone does or has tried it, I'd be interested in knowing your results (any code, too if you have any).

Official particle editing info here: http://deng.sourceforge.net/cgi-bin/view.pl/Editing/Generator

I got to thinking - you can use textures for particles and you can specify particle size - I wonder then if you could create animation sequences and use a particle generator to say animate a wall that has guts on it in doom or a demon face on a wall....anyone have any thoughts or experience trying it?

picklebro
April 5th, 2005, 11:12 PM
can someone post some code of a working particle generator that uses external file textures as particles so I can look at them? I know you have to use a particlexx filename - I just dont seem to be able to get it working.

THanks!

DaniJ
April 6th, 2005, 07:38 AM
For the MegaSphere from jDRP 1.1
Generator {
State = "MEGA"
Flags = blend | spawn | static | modelonly
Distance = 1536
Speed = 1.4
Vector { 10 10 10 }
Speed Rnd = 1.2
Center { 0 0 20 }
Spawn age = -1
Max age = -1
Particles = 80
Spawn rate = .3
Spawn rnd = 1
Min spawn radius = 13
Spawn radius = 13
Vector rnd = 10
Force radius = 14
Force = 0.06
Force axis { 0 0 4.5 }
Stage { Type = tex28 Flags = bright | force Radius = 0 Color { 1 1 1 0 } Tics = 100 Rnd = .5 Force { 0 0 -.05 } Resistance = .2 }
Stage { Type = tex28 Flags = bright | force Radius = 1 Color { 1 1 .8 .25} Tics = 4 Force { 0 0 .001 } Resistance = .2 }
Stage { Type = tex28 Flags = bright | force Radius = 1 Color { 1 1 .8 .5} Tics = 4 Force { 0 0 .18 } Resistance = .2 }
Stage { Type = tex28 Flags = bright | force Radius = 5 Color { 1 1 .9 1} Tics = 15 Rnd = .1 Force { 0 0 .18 } Resistance = .2 }
Stage { Type = tex28 Flags = bright | force Radius = 1.5 Color { 1 1 .8 .05} Tics = 60 Force { 0 0 .22 } Resistance = .3 }
Stage { Type = point Flags = bright | force Radius = .01 Color { .5 .5 .4 .001} Tics = 1 Force { 0 0 .22 } Resistance = .8 }
Stage { Type = point }
}

And then make sure you've got a texture in Data/jDoom/Textures/ called Particle28.pcx Other formats can be used of course (see the Doomsday readme for info on file formats) (btw I'll add the file format info to the wiki).
Hope that helps.

picklebro
April 6th, 2005, 05:21 PM
Thanks for the info! Will this work for flat generators?

AIso there a way to make it spawn a whole flat texture at a time? For instance, so I could use it to create animation sequences out of an entire 64x64 texture by playing them one at a time if I chose to? What settings would I need to tweak?

If I get a chance to check it out before you post I'll post my findings here - but at the moment I don't have anything to try it on.