Tremulous Forum

Media => Mapping Center => Topic started by: CreatureofHell on August 11, 2007, 11:01:30 pm

Title: Creating Enterable Lava
Post by: CreatureofHell on August 11, 2007, 11:01:30 pm
How do you create lava that you can enter? Like in atcs3 and thermal you can go in it but when I try it I just get a solid version. :(

Here two screenshots if you want to see:


(http://img257.imageshack.us/img257/4738/shot0050lz5.th.jpg) (http://img257.imageshack.us/my.php?image=shot0050lz5.jpg)
(http://img512.imageshack.us/img512/8573/shot0053hj2.th.jpg) (http://img512.imageshack.us/my.php?image=shot0053hj2.jpg)

btw if anyone wants more screenshots of the map just ask. :)
Title: Creating Enterable Lava
Post by: Thorn on August 11, 2007, 11:16:49 pm
The shader you are using is borked.
Edit the shader, and add nonsolid to it ( I think that was the surfaceparm)
Title: Creating Enterable Lava
Post by: CreatureofHell on August 11, 2007, 11:43:36 pm
I am not using a shader but should I?
Title: Creating Enterable Lava
Post by: Thorn on August 12, 2007, 12:19:43 am
Duh? A texture is only an image, it holds no properties such as see through, nonsolid, transparency , animation. Just steal the one from Sokolov :)
Title: Creating Enterable Lava
Post by: CreatureofHell on August 12, 2007, 01:50:17 am
I know this will sound a very noobish question  :oops:  but how exactly can i do it?(make the shader and all) i have tried looking here but it doesn't explain very well: http://tremmapping.pbwiki.com/Starting+Tremulous+Mapping#Shaders
Title: Creating Enterable Lava
Post by: Taiyo.uk on August 12, 2007, 02:04:56 am
Knick a lava shader from somewhere, change "surfaceparm lava" to "surfaceparm water", then texture the visible surfaces your volcanic swimming pool with it, and the invisible surfaces with the nodraw shader. Here's the modified lava shader from Sokolov:
Code: [Select]
textures/[yourmapname]/lava_enterable
{
qer_editorimage textures/sokolov/lava1.tga
qer_trans .5
                q3map_lightimage textures/sokolov/lava1.tga
q3map_globaltexture

surfaceparm noimpact
surfaceparm water
surfaceparm nolightmap
surfaceparm nobuildsurface

                q3map_surfacelight 500
q3map_tessSize 64
cull disable

deformVertexes wave 200 sin 0 1 .5 .5

{
map textures/sokolov/lava1c.tga
rgbGen const ( 0.6 0.6 0.6 )
blendfunc add
tcMod turb .3 .2 1 .05
tcMod scroll .01 .02
}

{
map textures/sokolov/lava1.tga
rgbGen const ( 0.9 0.9 0.9  )
blendfunc add
tcMod turb .2 .1 1 .05
tcMod scale .5 .5
tcMod scroll .02 .01
}
}

Put it in tremulous/base/map-yourmapname.pk3/scripts/yourmapname.shader, and remember to put your map name into your shaderlist.txt else radiant won't find it.
Title: Creating Enterable Lava
Post by: Lava Croft on August 16, 2007, 09:22:00 am
The Sokolov lava shader being a modified version of the slim shader used on Nexus6 :)

Please add me to your map.