Tremulous Forum

Media => Mapping Center => Topic started by: swamp-cecil on August 24, 2011, 06:31:12 pm

Title: lava shader
Post by: swamp-cecil on August 24, 2011, 06:31:12 pm
Can someone please make me a lava shader? I tried using the one from ancient remains andit didn't work (Ingar helped me, but he couldn't find out why, it didn't work either). Once I get the shader, I can (literaly) release my map.
Title: Re: lava shader
Post by: A Spork on August 24, 2011, 07:43:42 pm
Did you try the one from thermal?
Title: Re: lava shader
Post by: swamp-cecil on August 24, 2011, 08:06:10 pm
No. I'll try that one.
Title: Re: lava shader
Post by: swamp-cecil on August 26, 2011, 03:24:39 am
Doesn't seem to work, either. Which means I still need one.
Title: Re: lava shader
Post by: /dev/humancontroller on August 26, 2011, 03:45:12 am
i'll give you a shader. ::/dev/humancontroller grabs a lava shader from Thermal.::

instead of asking for a shader, which will most likely not work for whatever reason anyway, you should state what exactly don't you like about the shaders you've already tested.
Title: Re: lava shader
Post by: Tremulant on August 26, 2011, 04:00:40 am
IIRC from IRC, they don't kill things, but i got the impression, from mappers who tried to help him, that they don't on their own anyway.
Title: Re: lava shader
Post by: /dev/humancontroller on August 26, 2011, 05:25:39 am
IIRC from IRC, they don't kill things, but i got the impression, from mappers who tried to help him, that they don't on their own anyway.
which means someone forgot to put a trigger_hurt in some lava area.

swampy: note that shaders are graphics rendering programs, and they have no influence on the game logic whatsoever.
Title: Re: lava shader
Post by: UniqPhoeniX on August 26, 2011, 10:39:11 am
...
swampy: note that shaders are graphics rendering programs, and they have no influence on the game logic whatsoever.
Surfaceparms influence game logic. Slime and lava should do damage.
Title: Re: lava shader
Post by: Plague Bringer on August 26, 2011, 06:37:24 pm
So make like a good mapper and workaround.
Title: Re: lava shader
Post by: swamp-cecil on August 26, 2011, 06:46:42 pm
So make like a good mapper and workaround.
My map is allready done. I just need the lava and it can litteraly be released.
I tried AR lava and geothermal lava. The thing with geo lava is that I see the texture ingame, but there is absolutely no shader code visible (morphing, glowing etc). Tecnicaly it means that I somehow don't have the .scripts or I used the wrong texture/shader in the editor.
Title: Re: lava shader
Post by: Ingar on August 26, 2011, 06:52:06 pm
swamp-cecil,

the shader from ancient_remains works fine.
I made a small box map with a lava pit.

I pasted the shader from ancient remains into lavabox.shader and edited it.

Code: [Select]
textures/lavabox/lava
{
    q3map_globaltexture
    surfaceparm trans
    surfaceparm noimpact
    surfaceparm lava
    surfaceparm nolightmap
    q3map_surfacelight 600
    cull disable

    tesssize 128
    cull disable
    deformVertexes wave 100 sin 3 2 .1 0.1

    {
        map textures/lavabox/lava.tga
        tcMod turb 0 .2 0 .1
    }
}
(The original is textures/ancient_remains/lavahell on line 47 of ancient-remains.shader)

I added a line with lavabox to my shaderlist.txt.

I made the entire brush out of lava, no caulk or nodraw.

Compile, run, screenshot.

* (Credits to Dasprid for Ancient Remains)
Title: Re: lava shader
Post by: swamp-cecil on August 26, 2011, 07:34:20 pm
Weird...I did everything you said -except- for the shaderlist.txt. Thats in the netradiant folder, right?
Title: Re: lava shader
Post by: Ingar on August 26, 2011, 09:15:39 pm
Weird...I did everything you said -except- for the shaderlist.txt. Thats in the netradiant folder, right?

base/scripts/shaderlist.txt

If you don't have it, you can make one. By default it contains:

Code: [Select]
arachnid2
atcs
karith
nexus6
niveus
transit
tremor
uncreation
common
common-trem
titan
displays
misc
plant_life
water

In the example, I added another line with lavabox.

Note that it needs to be in S:\omewhere\Tremulous\base\scripts
and not in %APPDATA%.