Forum

Local Fog in DarkPlaces

Discuss anything not covered by any of the other categories.

Moderator: InsideQC Admins

Local Fog in DarkPlaces

Postby Seven » Fri May 13, 2011 8:49 am

Hello,

I have one question and hope you can help me with it.

Playing around with the weather effects in DarkPlaces, I came across an issue with the fog.

There is a global fog command, that lets you adjust as good as everything:
fog : set global fog parameters (density red green blue [alpha [mindist [maxdist [top [fadedepth]]]]])

Even ground fog is possible due to "top" param (see examples below).

Now, the issue with global things is, that they are global :)
This means, the fog is in the complete map (with the same values/properties).

Is there a possibility to have local fog only in specified areas (just like DP´s rain/snow is specified in a cube via .ent file).

So I can have different fog in different areas/rooms of the map.
Especially ground fog must sometimes be set to a different z-height in different areas of a map, otherwise it looks wrong.

Thank you very much for any hint you can provide.

Unfortunaly LH is a very busy guy and didnt answer my email.

Kind regards,
Seven

Image Image Image
Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Local Fog in DarkPlaces

Postby Nahuel » Fri May 13, 2011 1:36 pm

telejano I believe that supports something similar, although I do not know how to achieve it.
Image
Q3bsp has a shader, the "volumetric fog" that although it does not have the quality of your images, is quite interesting.
I do not know if darkplaces in the future will support this shader in q3bsp.
http://forums.inside3d.com/viewtopic.php?t=2338&highlight=volumetric
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Postby Chip » Sun May 15, 2011 8:48 am

Well, that fog looks great as it it right now, I'm sure the fog engine function could be edited and tied to a func_ entity.

Or even compared to the rain function. I'll probably look into the source a bit later.

That local fog could be really useful.
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Postby Nahuel » Sun May 15, 2011 2:12 pm

the problem is that this fog is achieved by a "stuffcdm"
For example
"fog 1 0.3 0.25 0.2 1 20 2000 15 30" in the map start
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Postby Chip » Sun May 15, 2011 2:21 pm

Nahuel wrote:the problem is that this fog is achieved by a "stuffcdm"
For example
"fog 1 0.3 0.25 0.2 1 20 2000 15 30" in the map start


Isn't it possible to set the fog parameter inside the map's worldspawn?
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Postby Nahuel » Sun May 15, 2011 3:35 pm

Chip wrote:
Nahuel wrote:the problem is that this fog is achieved by a "stuffcdm"
For example
"fog 1 0.3 0.25 0.2 1 20 2000 15 30" in the map start


Isn't it possible to set the fog parameter inside the map's worldspawn?


of course!
but the rain and the snow are entities delimited in an area. the fog of this tuto
http://quakeone.com/forums/quake-help/quake-clients/6869-tut-creating-rain-snow-fog-darkplaces.html is for all the world. I do not know really very much: perhaps it is possible to manage!
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Postby Baker » Sun May 15, 2011 3:56 pm

Neat stuff Seven.

I personally like the idea of floor fog.

The Kurok mod has "volumetric" fog that it achieves via triggers and a modified fog command with an extra param or 2. But it is non-standard and I want to get it within the bounds of "standard" so your info on the DarkPlaces fog command params might help me reconcile Kurok with "Quake standards".
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby ceriux » Sun May 15, 2011 4:22 pm

if it's handeled by a stuffcmd, why not make specific entities in the map that just adjusts the fog when triggered via the stuffcmd?

i had a similar idea for a day and night system using the fov fog.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Seven » Mon May 16, 2011 3:43 pm

Baker wrote:Neat stuff Seven.

I personally like the idea of floor fog.


Thank you Baker,
Yes, ground fog multiplies the ambience of many maps. :)


My purpose of this thread was to ask if there is maybe already a function (which I am not aware of) included in DarkPlaces engine, with wich you can set a local cube for fog.
The global fog command makes it impossible to have different fog in a map (example different fog properties in different rooms).

Just like the rain/snow effect is spawend in cubes via .ent file in DarkPlaces:
RAIN: has function rain_think
SNOW: has function snow_think

Like Baker mentioned, it would need at least 2 more params compared to the regular global fog command:
fog : set global fog parameters (density red green blue [alpha [mindist [maxdist [top [fadedepth]]]]])

It would need cube coordinates like the rain/snow have (self.absmin and self.absmax):
te_particlerain(self.absmin, self.absmax, self.dest, self.count, self.cnt)


Thank you very much Chip, for looking into DP code.

Kind regards,
Seven
Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest