Tremulous Forum

Media => Mapping Center => Topic started by: MrFish on July 08, 2010, 04:04:21 pm

Title: Perfect Fire :)
Post by: MrFish on July 08, 2010, 04:04:21 pm
Finding fire animations on the internet is a pain in the ass. Especially since most of them are gifs or jpgs with no alpha layer. Here is a standalone fire particle system that requires no downloads or arrangements. Since the shaders come from the data.pk3 all you need is to copy, paste, edit. Enjoy :)

(http://img52.imageshack.us/img52/4373/perfectfire.png)

Code: [Select]
smallfire
{
ejector
{
particle
{
shader sync flame3 flame4 flame5 flame6 flame7 flame8 flame9 flame10 flame11 flame12 flame13 flame14 flame15 flame16 flame17 flame18 flame19 flame20 flame21 flame22 flame23 flame24 flame25
//These are already in the data pk3

displacement 0 0 0 ~5
// edit the last number for a wider base radius

velocityType      static
velocityDir       linear
velocityMagnitude 50~25
velocity          0 0 1 ~5
//Initial velocity is moving up with small random velocity in other directions

accelerationType      static
accelerationDir       linear
accelerationMagnitude 50~25
acceleration          0 0 1 ~5
//Accelerate up with small random acceleration in other directions

radius 0 15 5
alpha  0 1 0.0
rotation 0 ~360 -
bounce 0.0

lifeTime 500
    }

count infinite
delay 0
period 25 - 0
//Decrease or increase this number to make the flame thicker or thinner (respectively)
        //A wider base will probably need a thicker flame
}
}

Demo: http://www.mediafire.com/?zjqwdgozynm
(requires tremfusion i think)
Title: Re: Perfect Fire :)
Post by: amz181 on July 08, 2010, 04:52:06 pm
how to use for noobs please.
Title: Re: Perfect Fire :)
Post by: Odin on July 08, 2010, 06:45:28 pm
FINALLY... I always wanted to add a fire somewhere in a map that didn't look like total ass.
Title: Re: Perfect Fire :)
Post by: MrFish on July 08, 2010, 07:03:28 pm
amz:

1. Create a misc_particle system
2. give the psName parameter smallfire
3. create a <yourmap>.particle file (like the shader file) in you scripts folder with this in it
4. compile and run :)
Title: Re: Perfect Fire :)
Post by: Odin on July 08, 2010, 07:18:02 pm
How is this on performance? Also, a video of it in action would be nice too.
Title: Re: Perfect Fire :)
Post by: amz181 on July 08, 2010, 07:22:02 pm
thanks fish. My comp in its infinite wisdom does not have a scripts folder (well it does but its completely hidden) and i cannot create one.

Could someone possibly create a map.pk3 and upload it?
Title: Re: Perfect Fire :)
Post by: MrFish on July 08, 2010, 07:35:15 pm
Performance is fine for me. I'm running a dual core laptop with an absolutely terrible video card. I don't see any performance lags.

amz, using windows? Just type '/scripts/' into the file browsing address bar. Not sure how hiddens files work on windows anymore. With linux a '.' (dot) precedes all hidden files.

You don't need a map.pk3. type /devmap <yourmapname> in the tremulous console (press tilda "~") console and it will pull the .bsp up from out of your maps folder.
Title: Re: Perfect Fire :)
Post by: MrFish on July 08, 2010, 07:48:39 pm
Here is the demo:
http://www.mediafire.com/?zjqwdgozynm

If there is anyway I can make it a standard video file I will.
Title: Re: Perfect Fire :)
Post by: Asvarox on July 08, 2010, 08:08:52 pm
Playback the demo, type /video [filename], wait until the end of the demo (or stop the record by /stopvideo) and enjoy your extremly fat video file :) (placed in tremulous/videos).

Im pretty sure you cant playback demos of maps you don't have.
Title: Re: Perfect Fire :)
Post by: DraZiLoX on July 08, 2010, 09:21:26 pm
Yeah, how we can watch that demo without map. Demo is wayy diffrent than video. I belive it just loads models. Other data cames from base folder. So if you take demo. And put mode that make luciballs green, they are green in demo.
Title: Re: Perfect Fire :)
Post by: MrFish on July 08, 2010, 10:05:50 pm
Playback the demo, type /video [filename], wait until the end of the demo (or stop the record by /stopvideo) and enjoy your extremly fat video file :) (placed in tremulous/videos).

Im pretty sure you cant playback demos of maps you don't have.

I'll do that later then. It's off to work for now
Title: Re: Perfect Fire :)
Post by: gimhael on July 09, 2010, 06:21:29 am
You don't need a map, just install the particle system in your scripts folder, /devmap some map and type /testPS smallfire to see the effect.
Title: Re: Perfect Fire :)
Post by: MrFish on July 09, 2010, 08:21:27 am
Ok do that, I'd rather not upload the 255mgb .avi file :P
Title: Re: Perfect Fire :)
Post by: Kiwi on July 29, 2010, 06:32:51 am
Does this fire not give off any light?  If it doesn't is there a way to make a light source flicker, so it looks like its coming from this fire?

Thanks,
Kiwi
Title: Re: Perfect Fire :)
Post by: commander scrooge on August 08, 2010, 09:12:08 pm
Flickering effects generally mean lag, and there also seems to be some conspiracy of weather or not Q3 has flickering light effects.  The flames appear to be from the famous flamethrower.  Observing the code (unless he added some trickery in) the light does not come from the flames but from a light source placed in the map.
Title: Re: Perfect Fire :)
Post by: Kiwi on August 08, 2010, 11:08:47 pm
Ok thanks.  That's what I'll do then :)