Volumetric light

General discussion about Indigo Materials - material requests, material developement, feedback, etc..
Post Reply
6 posts • Page 1 of 1
baka
Posts: 13
Joined: Thu Jun 07, 2012 4:58 am

Volumetric light

Post by baka » Thu Jun 07, 2012 5:08 am

Hi, I'm trying to recreate the volume fog effect from 3ds max but ran into a snag, it appears it's only possible with ISL (which is rocket science for my brain) and even with it I haven't found any examples replicating the volume fog effect. I'm pretty sure I'm SOL but I figured I'd ask if it's possible first before giving up on it

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Volumetric light

Post by Zom-B » Thu Jun 07, 2012 5:50 am

No ISL needed... it never was :)
Try this one here, follow the link on the bottom for a quick "how-to"
polygonmanufaktur.de

baka
Posts: 13
Joined: Thu Jun 07, 2012 4:58 am

Re: Volumetric light

Post by baka » Thu Jun 07, 2012 6:03 am

I'm not trying to get the basic volume light, I need to replicate the 3d noise effect (fractal/turbulent) volume fog has, which from my understanding can be achieved with ISL.

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Volumetric light

Post by Zom-B » Thu Jun 07, 2012 6:15 pm

ok, now I got it :)
I remember that fused and lyc created such a material, but it rendered quite sloooow ^^
Maybe they could release the code here?

(stupid me forgot to give a link for the classic fog in previous post: http://www.indigorenderer.com/materials/materials/125)
polygonmanufaktur.de

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Volumetric light

Post by CTZn » Fri Jun 08, 2012 1:03 am

Hi baka, here is one cloudy fog material: about half of the volume is thin air, the rest is smoke.

The (identical) shaders are applied to the material's medium, in absorbtion and scattering. You can disable the absorbtion for a slightly faster rendering, and control both values by modifying the last multiplicator (50.0). Clouds scale are controlled by the 30.0 number.

Let me know if you need a different shape, I'll try to make it for you.

Here's the shader both parameters are using:

Code: Select all

def eval(vec3 pos) vec3 :

let

	fracNoise = fbm(pos*30., 8)

in

	vec3(if(fracNoise>0.0, fracNoise, 0.0)) * 50.0
Attachments
cloudyFog.jpg
a quick render < 10mn, bidir+MLT
cloudyFog.pigm
(589 Bytes) Downloaded 302 times
obsolete asset

baka
Posts: 13
Joined: Thu Jun 07, 2012 4:58 am

Re: Volumetric light

Post by baka » Fri Jun 08, 2012 1:09 am

Thank you CTZn, I'm gonna play around with the parameters and see if I can get the look I need.

Post Reply
6 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 95 guests