Tremulous Forum
Media => Mapping Center => Topic started 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)
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)
-
how to use for noobs please.
-
FINALLY... I always wanted to add a fire somewhere in a map that didn't look like total ass.
-
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 :)
-
How is this on performance? Also, a video of it in action would be nice too.
-
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?
-
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.
-
Here is the demo:
http://www.mediafire.com/?zjqwdgozynm
If there is anyway I can make it a standard video file I will.
-
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.
-
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.
-
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
-
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.
-
Ok do that, I'd rather not upload the 255mgb .avi file :P
-
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
-
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.
-
Ok thanks. That's what I'll do then :)