FOG TROUBLES

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
CLOUDspawn
Posts: 46
Joined: Fri Feb 12, 2016 3:03 am

FOG TROUBLES

Post 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
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: FOG TROUBLES

Post by Eraser »

YOU DON'T HAVE TO SHOUT!
CLOUDspawn
Posts: 46
Joined: Fri Feb 12, 2016 3:03 am

Re: FOG TROUBLES

Post by CLOUDspawn »

sorry yo :)
fKd
Posts: 2478
Joined: Sat Jun 03, 2006 2:54 am
Location: Wellington
Contact:

Re: FOG TROUBLES

Post 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
}
CLOUDspawn
Posts: 46
Joined: Fri Feb 12, 2016 3:03 am

Re: FOG TROUBLES

Post 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?
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: FOG TROUBLES

Post by obsidian »

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]
CLOUDspawn
Posts: 46
Joined: Fri Feb 12, 2016 3:03 am

Re: FOG TROUBLES

Post 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. :)
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: FOG TROUBLES

Post 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
CLOUDspawn
Posts: 46
Joined: Fri Feb 12, 2016 3:03 am

Re: FOG TROUBLES

Post by CLOUDspawn »

hey guys I figured out the fog thing. thanks!
CLOUDspawn
Posts: 46
Joined: Fri Feb 12, 2016 3:03 am

fog effect question

Post 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. :)
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: fog effect question

Post by obsidian »

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]
coltonquake3
Posts: 199
Joined: Sun Dec 06, 2015 3:38 am

Re: FOG TROUBLES

Post by coltonquake3 »

I don't think the idtech3 engine can even handle that complexity of fog... SO yeah, I second obsidian with this one.
Post Reply