ROQ flame video shader and candle models.


(RayBan) #1

There is the problem of the stock wilsflame shader not animating
proper ( it halts or doesnt animate at all ), this is an old problem of
something to do with broken code ( or something silimilar ) but
i have made a work-around for this by creating a roq video flame shader.

there are 4 candles in this pk3 that use this flame shader, with different
flicker effect rates on the candle wax.

this shader can also be used for any standard flame effect,
( the flame on the wall torch for example was made with
brushes/nodraw and the roq shader applied to one face )
as in the flame_test map included.

if you want your fire to work constantly on servers then this is a good
workaround for it.

pk3 file here,

EDIT: added rapidshare link for those who have trouble with mediafire.
http://www.mediafire.com/?do4m1o4l10x
http://rapidshare.com/files/52857660/roq_flame_test.pk3.html

wolfmap.de mirror added thanks to Berzerkr.
http://www.wolfmap.de/details.php?file_id=2292

there is a test bsp and map in this pk3 named flame_test

EDIT:: FLAME_TEST2

new slightly higher poly md3 candle models, using a new candle flame
shader giving a more realistic look. the candle_flame video was made with
blender3d, using a blend file from Nathan Dunlap with new animations by
me. the new flame_test2.pk3 includes all the original files of the 1st,
except altered textures ( i needed a dark wick… ) but the new ones
should be compatible still with the original models. readme.txt is in the pk3,
and should explain the changes as well as the location/names of the new
md3’s.

link for flame_test2.pk3
http://rapidshare.com/files/53041358/flame_test2.pk3.html


(stephanbay) #2

timed perfectly for my map. thanks a lot RayBan, your mods rocks.


(stephanbay) #3

mirrored here :

http://et.phaclan.com/Betas/roq_flame_test.pk3


(]UBC[ McNite) #4

Check out Warbell for a working candle shader. On some servers or with certain client settings the flame is not animated though, but its not the shaders fault.


(RayBan) #5

its the animmap that fails on servers, due to some bug in the engine code
so ive read, if a server reboots i find the animating textures work proper…
but much later on things like fire animmaps are plain frozen.

i have not seen a video freeze yet, so this is a good work around for it,
and its a small video file ( 140k ) so it’s not much headroom used up.

also the candle models in this pk3 have lighting effects on the candle like
the doom3 candles, so they offer more visual impact. the one thing i dont
like is using the same flame video for them… since thats more of a larger
fire, if i can find some decent candle flame image sequences then i will
make a new flame shader for them, plus new models.


(RayBan) #6

BUMP

created new md3 models and a new roq video candle flame shader, update
is in the 1st post.


(Tyrlop) #7

WOW the new one looks better then the old :slight_smile: thank you! i think im going to use this in my map maybe


(89blitz) #8

the new one is very well built good job rayban :beer:


(stephanbay) #9

I was wondering if those roq animations are FPS killers or not?
This candle model is too true to be in a game :lol:


(carnage) #10

wow thats some improvement rayban nice work those old candles have been around since the rtcw days nice to see someone finally updating them


(RayBan) #11

@stephanbay,
the candles will use one instance of the flame video, no matter how many
candles you use so the overhead for that is next to nothing, as for the fps…
it is a video, so there is some power from the pc to run it, however in a world
of faster pc’s nowadays, the fps hit is negligable.

try loading a dozen or more of the candle model into a test map and check
your fps, you wont hardly notice any fps drop, since the flame is still using
that single instance of the shader.


(stephanbay) #12

ok thanks for the response, however, i have made some further test today and had some weird flame behavior. The animations works then stops all of sudden after 5 min then restart again , well it’s all messed up for me. Here is a demo , i dont if it ill work as its on a test map and you maybe will requiere the pk3.

http://www.phaclan.com/et/Demos/weirdflame.dm_84


(RayBan) #13

actually, it does freeze on the test map, from what i can tell it happens when
two or more different videomap shaders are in your visible line of sight…
perhaps a limitation of the code… easy fix, just dont have more than one
type in you line of sight, more than one type in your pvs is ok, but you have
to be careful that you design your map sp that no two types share the same
screen time.

having a room loaded with candles, and out the door and down a hall some
wall torches is ok. a wall torch and a candle next to each other will freeze
both shaders, until you turn and one or the other is not visible on your
screen… then the shader will continue to animate.