Volumetric Ground Clouds - Page 2

Volumetric Ground Clouds

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Volumetric Ground Clouds

Post by jK »

no, that would be particle fog.
this is raymarching fog.
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Volumetric Ground Clouds

Post by Anarchid »

no, that would be particle fog.
Maybe that "would" should be a "should":

Code: Select all

vec3 savannahFire(vec3 pos, float groundHeight, int timeSinceSpotStartedBurning)
This seems to basically do what mapClouds does in the actual topic.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Volumetric Ground Clouds

Post by jK »

Anarchid wrote:

Code: Select all

vec3 savannahFire(vec3 pos, float groundHeight, int timeSinceSpotStartedBurning)
This seems to basically do what mapClouds does in the actual topic.
It returns a vec3 and not a opacity, indicating to me that it returns a pos -> it spawns new particles
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Volumetric Ground Clouds

Post by smoth »

Is it possible to have this extend beyond the map edge a bit rather than cut off abruptly?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Volumetric Ground Clouds

Post by Anarchid »

Is it possible to have this extend beyond the map edge a bit rather than cut off abruptly?
The bounding box can be made to be larger than the map, or you could even make the volume infinite by putting it between two parallel planes, instead of inside a box. It doesn't do that atm because i didn't like how it looked.
It returns a vec3 and not a opacity, indicating to me that it returns a pos -> it spawns new particles
I think that's because a fire would have different colors in its volume, so it would make sense to return rgb to do that (under assumption that raymarch fires make sense).
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Volumetric Ground Clouds

Post by PicassoCT »

it returns a rgb value, indicating the colour of fire.. i forgot the opacity..

i thought i could estimate that out of "How long is this place on fire!" but then i would have needed wind in addition.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Volumetric *Sky* Clouds

Post by jK »

Image
Image
Attachments
sky2.jpg
(127.39 KiB) Not downloaded yet
sky.jpg
(140.91 KiB) Not downloaded yet
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Volumetric Ground Clouds

Post by smoth »

That looks great JK any possibility you could fade the distant edge though? the sudden cutoff is a bit rough. Also what about cloud shadows on the ground?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Volumetric Ground Clouds

Post by Anarchid »

Also what about cloud shadows on the ground?
It's possible to make them drop standard sharp spring shadows. That is either there is a shadow, or there is not.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Volumetric Ground Clouds

Post by gajop »

Does Spring support "transparent" shadows? I think not.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Volumetric Ground Clouds

Post by jK »

gajop wrote:Does Spring support "transparent" shadows? I think not.
not yet, but I always wanted to implement it (it's not that complicated)
smoth wrote:That looks great JK any possibility you could fade the distant edge though? the sudden cutoff is a bit rough.
Image
Attachments
peterpan.jpg
(99.81 KiB) Downloaded 1 time
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Volumetric Ground Clouds

Post by smoth »

cool! so, sky.jpg was an early version!
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: Volumetric Ground Clouds

Post by 1v0ry_k1ng »

I would love something like this to fill the 'pits' on Trojan hills/bandit plains with mist!
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Volumetric Ground Clouds

Post by Anarchid »

I've merged jK's changes, gonna be updating the instructions here and adding a readme to repo.
User avatar
qray
Posts: 377
Joined: 02 Feb 2009, 18:49

Re: Volumetric Ground Clouds

Post by qray »

I am currently working on a map where I would like to include this. So far it seems to work like a charm, but since I saw a few FIXMEs and TODOs in the code, I wanted to check if you consider it applicable in its current state or if I should better wait for future updates?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Volumetric Ground Clouds

Post by Anarchid »

It should be usable in current state, and it's somewhat unlikely i'll get to the TODO's and FIXME's anytime soon.

P.S. three fragment shaders on one map? Some GPU's might end up looking like your screenshot :P
User avatar
qray
Posts: 377
Joined: 02 Feb 2009, 18:49

Re: Volumetric Ground Clouds

Post by qray »

THX for the quick reply!
Anarchid wrote:three fragment shaders on one map? Some GPU's might end up looking like your screenshot :P
Was afraid of this too, but on my system (GTX 660, i5-3470) the framerate drop is not so bad and it's still well playable. And these 3 just fit so well together :-)
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Volumetric Ground Clouds

Post by PicassoCT »

But what if the floor is lava?

Image
Attachments
butwhatifthefloorislava.jpg
(408.66 KiB) Not downloaded yet
User avatar
qray
Posts: 377
Joined: 02 Feb 2009, 18:49

Re: Volumetric Ground Clouds

Post by qray »

Just FYI: I noticed that the widget clashes with the map blueprint if the options "dawn" or "night" are used.

Infolog error message:

Code: Select all

[f=0000000] Failed to load: gfx_volumetric_clouds.lua  (error = 2, mapinfo.lua, error = 2, mapconfig/mapinfo/10_dawn.lua, [string "return mapinfo.lighting.groundambientcolor"]:1: attempt to index global 'mapinfo' (a nil value))
Post Reply

Return to “Map Creation”