Author Topic: Perfect Fire :)  (Read 6257 times)

MrFish

  • Posts: 201
  • Turrets: +16/-500
Perfect Fire :)
« 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 :)



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)
« Last Edit: July 08, 2010, 07:48:16 pm by MrFish »

amz181

  • Posts: 919
  • Turrets: +64/-93
Re: Perfect Fire :)
« Reply #1 on: July 08, 2010, 04:52:06 pm »
how to use for noobs please.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Re: Perfect Fire :)
« Reply #2 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.

MrFish

  • Posts: 201
  • Turrets: +16/-500
Re: Perfect Fire :)
« Reply #3 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 :)

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Re: Perfect Fire :)
« Reply #4 on: July 08, 2010, 07:18:02 pm »
How is this on performance? Also, a video of it in action would be nice too.

amz181

  • Posts: 919
  • Turrets: +64/-93
Re: Perfect Fire :)
« Reply #5 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?

MrFish

  • Posts: 201
  • Turrets: +16/-500
Re: Perfect Fire :)
« Reply #6 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.

MrFish

  • Posts: 201
  • Turrets: +16/-500
Re: Perfect Fire :)
« Reply #7 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.

Asvarox

  • Posts: 573
  • Turrets: +41/-35
Re: Perfect Fire :)
« Reply #8 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.
I MINE FULL WEREWOLFES
NOT SUCH HIPPIE THINGS  >:(

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: Perfect Fire :)
« Reply #9 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.

MrFish

  • Posts: 201
  • Turrets: +16/-500
Re: Perfect Fire :)
« Reply #10 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

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Perfect Fire :)
« Reply #11 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.

MrFish

  • Posts: 201
  • Turrets: +16/-500
Re: Perfect Fire :)
« Reply #12 on: July 09, 2010, 08:21:27 am »
Ok do that, I'd rather not upload the 255mgb .avi file :P

Kiwi

  • Posts: 859
  • Turrets: +29/-9
Re: Perfect Fire :)
« Reply #13 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

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Re: Perfect Fire :)
« Reply #14 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.
Pathbot every thing you need here

Kiwi

  • Posts: 859
  • Turrets: +29/-9
Re: Perfect Fire :)
« Reply #15 on: August 08, 2010, 11:08:47 pm »
Ok thanks.  That's what I'll do then :)