Page 1 of 1

FOG TROUBLES

Posted: Thu May 19, 2016 4:06 am
by CLOUDspawn
HAVING TROUBLE WITH FOGS! COULD SOMEONE POINT ME TO A OBTAINABLE SCRIPT AND ACCOMPANING FILES FOR FOG EFFECT IN QUAKE III ARENA!

THANK YOU

Re: FOG TROUBLES

Posted: Thu May 19, 2016 7:32 am
by Eraser
YOU DON'T HAVE TO SHOUT!

Re: FOG TROUBLES

Posted: Thu May 19, 2016 8:47 am
by CLOUDspawn
sorry yo :)

Re: FOG TROUBLES

Posted: Fri May 20, 2016 2:34 am
by fKd
3.4 fogparms <red value> <green value> <bluevalue> <distance to Opaque>

Note: you must also specify "surfaceparm fog" to cause q3map to identify the surfaces inside the volume. Fogparms only describes how to render the fog on the surfaces.

<red value> <green value> <blue value> These are normalized values. A good computer art program should give you the RGB values for a color. To obtain the values that define fog color for Quake III Arena, divide the desired color's Red, Green and Blue values by 255 to obtain three normalized numbers within the 0.0 to 1.0 range.
<distance toopaque> This is the distance, in game units, until the fog becomes totally opaque, as measured from the point of view of the observer. By making the height of the fog brush shorter than the distance to opaque, the apparent density of the fog can be reduced (because it never reaches the depth at which full opacity occurs).

The fog volume can only have one surface visible (from outside the fog).
Fog must be made of one brush. It cannot be made of adjacent brushes.
Fog brushes must be axial. This means that only square or rectangular brushes may contain fog, and those must have their edges drawn along the axes of the map grid (all 90 degree angles).

Design Notes:

If a water texture contains a fog parameter, it must be treated as if it were a fog texture when in use.
If a room is to be filled completely with a fog volume,it can only be entered through one surface (and still have the fog function correctly).
Additional shader passes may be placed on a fog brush, as with other brushes.


ie.

textures/your texture dir/texture name
{
qer_editorimage textures/your texture dir/your texture name.tga/.jpg
surfaceparm trans
surfaceparm nonsolid
surfaceparm fog
surfaceparm nolightmap
qer_nocarve
fogparms ( 0.05 0.05 0.05 ) 500
}

Re: FOG TROUBLES

Posted: Sat May 21, 2016 1:51 am
by CLOUDspawn
I tried copy and pasting your example. And i change all the file names where they are supposed to.
plus I made a little reservoir for the fog. but this is the result. Is there something I might be doing wrong?

Re: FOG TROUBLES

Posted: Sat May 21, 2016 1:43 pm
by obsidian
Did you add "your texture dir" to shaderlist.txt?

Re: FOG TROUBLES

Posted: Sun May 22, 2016 5:20 am
by CLOUDspawn
I've been bunching all my textures into one shader file. I call it framesleep.shader. I've got some bounce pad textures (animated), and some other textures. Maybe I should make every type of shader a different shader file. Maybe thats what's happening?

thanks. :)

Re: FOG TROUBLES

Posted: Sun May 22, 2016 5:07 pm
by Eraser
In the console it should mention what shader it is trying to find when it can't find it. Maybe that's a starting point when looking for the cause

Re: FOG TROUBLES

Posted: Thu May 26, 2016 11:04 pm
by CLOUDspawn
hey guys I figured out the fog thing. thanks!

fog effect question

Posted: Thu May 26, 2016 11:07 pm
by CLOUDspawn
Hello,
I was wondering if I could add a line to the fog shader i made to make it go up and down. Like kinda like how the ocean tides make the surface of the water go up and down. Like swaying I guess is the word for it. thanks. :)

Re: fog effect question

Posted: Sat May 28, 2016 10:14 pm
by obsidian
Nope. Not with actual volumetric fog. It's hard-coded, not that sophisticated.

Re: FOG TROUBLES

Posted: Tue Jun 21, 2016 7:28 pm
by coltonquake3
I don't think the idtech3 engine can even handle that complexity of fog... SO yeah, I second obsidian with this one.