Tremulous Forum

Media => Mapping Center => Topic started by: Drakotsu on August 15, 2008, 11:54:46 pm

Title: Fog..
Post by: Drakotsu on August 15, 2008, 11:54:46 pm
Hello Everyone,
Can you please explain again how i can make fog?
Im trying to use the map sololov's fog texture.
I made a new file fog.shader and put this in it..

Code: [Select]
textures/sokolov/fog
{
qer_editorimage textures/sokolov/fog.tga
qer_trans .5
surfaceparm trans
surfaceparm nonsolid
surfaceparm fog
surfaceparm nolightmap
qer_nocarve
fogparms ( 0.9 0.5 0.2 ) 500
}

textures/sokolov/lig_128-01w3-2k
{
qer_editorimage textures/sokolov/sqrlig02wc.tga
q3map_lightimage textures/sokolov/sqrlig02w2.blend.tga
q3map_surfacelight 100
surfaceparm nomarks
{
map $lightmap
rgbGen identity
}
{
map textures/sokolov/sqrlig02wc.tga
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
{
map textures/sokolov/sqrlig02w2.blend.tga
blendfunc GL_ONE GL_ONE
rgbGen wave sin .3 .1 0 0.5
}
}

In base\scripts.

But, when i go in GTK and put the fog.tga and compile my map, it doesnt appear (appears as a map hole thing)..

Im sorry, I just cant figure it out  :-[

Thanks for your time,
Drakotsu
Title: Re: Fog..
Post by: Thorn on August 16, 2008, 12:26:19 am
Only one side of a fog brush can be seen at a time iirc.
Title: Re: Fog..
Post by: Drakotsu on August 16, 2008, 12:30:47 am
That helps me how?  ???
I was asking HOW to make fog
Title: Re: Fog..
Post by: cactusfrog on August 16, 2008, 01:46:03 am
Only one side of a fog brush can be seen at a time iirc.
i have the same problem as Drakotsu when i make fog i make one face fog and the others caulk but when i compile its just a solid block wtf !
Title: Re: Fog..
Post by: Odin on August 16, 2008, 02:30:58 am
Fog must extend to the structural hull of your map. Only one side must be seen or it won't work.
Title: Re: Fog..
Post by: Drakotsu on August 22, 2008, 10:20:50 pm
Fog must extend to the structural hull of your map. Only one side must be seen or it won't work.

Meaning the whole room must be filled with the fog? Even if i do that i get the same results
Title: Re: Fog..
Post by: Kitashi on November 23, 2008, 06:02:48 am
Problem: How do I make fog?  I'm trying to create nonsolid dense fog, but instead the brush is compiling into a solid map hole.

Information:
I'm using GTKRadient 1.5
I'm using this fog texture: C:\Program Files\Tremulous\base\textures\shaders\fog.tga
I edited the shader for fog from Sokolov only so it'd match my directories.
I have the shader here: C:\Program Files\Tremulous\base\textures\shaders\fog.shader
I have a duplicate shader here: C:\Program Files\Tremulous\base\scripts\fog.shader
The shader reads:
Code: [Select]
textures/shaders/fog
{
qer_editorimage textures/shaders/fog.tga
qer_trans .5
surfaceparm trans
surfaceparm nonsolid
surfaceparm fog
surfaceparm nolightmap
qer_nocarve
fogparms ( 0.9 0.5 0.2 ) 500
}
My shaderlist is here: C:\Program Files\Tremulous\base\scripts\shaderlist.txt
My shaderlist reads:
Code: [Select]
arachnid2
atcs
karith
nexus6
niveus
transit
tremor
shaders
uncreation
common
common-trem
titan
displays
misc
plant_life
water
I created a brush and covered it entirely by the fog texture specified above.
I have the brush I'm using for fog in one side of the room so that all of the sides but one are covered entirely by a wall.
The brush hasn't been altered in any way along the lines of angles, so it should be in a rectangular prism with all angles at right angles to the grid.

I've been searching frantically for instructions on how to make fog, but none seem to exist.  The GTK Radiant manual has a section on fog, but it's not on how to make fog, it's restriction on making fog, so it serves as a troubleshoot at best.  On the forums, all threads seem to assume that the original poster already knows how to write shaders from scratch, has textures to use, and once again, knows how to make fog.  Most responses revolve around what's in the manual, not a direct response to the question "how do I make fog?"  I would greatly appreciate it if someone would just give a full-length explanation on how someone who knows nothing more than how to make brushes and cover them with textures would go about making fog.
Title: Re: Fog..
Post by: Knowitall66 on November 23, 2008, 06:30:40 am
Your shaderlist.txt MUST have the name of the shader files in it too work. Add fog on a new line.
Title: Re: Fog..
Post by: nubcake on November 23, 2008, 07:09:46 am
Make a brush, texture it as nodraw, then select a face of the brush and apply the fog texture
Title: Re: Fog..
Post by: Kitashi on November 23, 2008, 05:08:59 pm
Thank you, Knowitall66, doing that fixed my problem!  nubcake, doing what you said perpetuated my problem.