FOG TROUBLES
-
- Posts: 46
- Joined: Fri Feb 12, 2016 3:03 am
FOG TROUBLES
HAVING TROUBLE WITH FOGS! COULD SOMEONE POINT ME TO A OBTAINABLE SCRIPT AND ACCOMPANING FILES FOR FOG EFFECT IN QUAKE III ARENA!
THANK YOU
THANK YOU
Re: FOG TROUBLES
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
}
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
}
-
- Posts: 46
- Joined: Fri Feb 12, 2016 3:03 am
Re: FOG TROUBLES
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?
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
Did you add "your texture dir" to shaderlist.txt?
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
-
- Posts: 46
- Joined: Fri Feb 12, 2016 3:03 am
Re: FOG TROUBLES
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.
thanks.

Re: FOG TROUBLES
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
-
- Posts: 46
- Joined: Fri Feb 12, 2016 3:03 am
Re: FOG TROUBLES
hey guys I figured out the fog thing. thanks!
-
- Posts: 46
- Joined: Fri Feb 12, 2016 3:03 am
fog effect question
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.
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
Nope. Not with actual volumetric fog. It's hard-coded, not that sophisticated.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
-
- Posts: 199
- Joined: Sun Dec 06, 2015 3:38 am
Re: FOG TROUBLES
I don't think the idtech3 engine can even handle that complexity of fog... SO yeah, I second obsidian with this one.