PDA

View Full Version : Fog in levels


C e r b e r u s
August 4th, 2004, 01:19 AM
Is there a way to add fog in your level without the fog command in Jdoom?
Let's say I want to add red fog in a particular sector of my level.
Maybe with XG?

Vermil
August 4th, 2004, 02:00 AM
You can set fog up in Dday that is automatically on the map when you start, by adding the lines in bold below to maps.ded under each map:

The R, G and B flags control the colour. The bottom three lines will only work in some fog modes.

Map Info {
ID = "MAP10";
Name = "Level 10: Refueling Base";
Author = "id Software";
Par time = 0.0;
Gravity = 1;
Flags = "mif_fog";
Fog color R = 0.4;
Fog color G = 0.4;
Fog color B = 0.4;
Fog start = 96;
Fog end = 4000;
Fog density = 0.0004;
Sky height = 0.49;
Horizon offset = -0.105;
Sky Layer 1 {
Flags = "slf_enable";
Texture = "SKY1";
};
}

EDIT: Sorry you meant for specific sectors. Please ignore the above. What Harry says below is correct. Indeed particle generators could be used to try and mimic the effect.

Harry
August 4th, 2004, 02:03 AM
I'm sorry, I don't think you can do that yet with jDoom, maybe if you made a particle generator though... look here. (http://img.photobucket.com/albums/v411/Harrydude/tele.jpg)
This is BAMs teleport effects. it is a particle generator triggered by the flats. :)
What vermil has said makes fog in the whole map, when using fog, it seriously screws up the lighting :(

DaniJ
August 4th, 2004, 02:07 AM
Yep you can also try this for some cool vapour for lava:
Generator {
Flat = "LAVA1"
Flags = blend | floor | static | density
Speed = 4
Speed Rnd = 2.8
Vector { 10 10 10 }
Vector rnd = 10
Speed Rnd = 1.2
Spawn age = -1
Max age = -1
Particles = 16
Spawn rate = .15
Spawn rnd = 1
Distance = 1280
Stage { Type = "pt_point" Flags = bright Radius = 0 Color { 1 .8 .3 0 } Tics = 100 Rnd = .5 Force { 0 0 -.4 } Resistance = .2 }
Stage { Type = "pt_point" Flags = bright Radius = 8 Color { 1 .8 .6 .2} Tics = 4 Force { 0 0 .001 } Resistance = .2 }
Stage { Type = "pt_point" Flags = bright Radius = 10 Color { 1 .9 .7 .25} Tics = 4 Force { 0 0 .18 } Resistance = .2 }
Stage { Type = "pt_point" Flags = bright Radius = 11 Color { 1 1 .6 .15} Tics = 15 Rnd = .1 Force { 0 0 .18 } Resistance = .2 }
Stage { Type = "pt_point" Flags = bright Radius = 15 Color { 1 1 .5 .05} Tics = 60 Force { 0 0 .22 } Resistance = .3 }
Stage { Type = "pt_point" Flags = bright Radius = 20 Color { .1 .1 .1 .001} Tics = 1 Force { 0 0 .22 } Resistance = .8 }
Stage { Type = "pt_point" }
}

Copy Generator { Flat = "LAVA2"}
Copy Generator { Flat = "LAVA3"}
Copy Generator { Flat = "LAVA4"}

It might be a little too much for older video cards to handle though.

C e r b e r u s
August 4th, 2004, 02:12 AM
thanks guy's.
It would be cool if such a feature was added in Jdoom so you could create fog just as you can change colors of a sector.

Juan_Fraglef
August 24th, 2004, 06:40 PM
It might be a little too much for older video cards to handle though.


Forget old. I have a GeForce 4 and it crapped out testing that ded on one of the most lava intensive levels in the game, Mt Erebus. Sure is prettty though. :D