Light scattering

DAZ Studio Integrated Plugin (Integrated Plugin maintained by OTOY)

Moderator: BK

Forum rules
Please keep character renders sensibly modest, please do not post sexually explicit scenes of characters.
Post Reply
michael_g
Licensed Customer
Posts: 28
Joined: Sun Dec 15, 2013 8:07 am

How do I make god rays in Octane? I understand how to do it using a volume in Luxrender but so far it`s escaping me in Octane, is some thing to do with the scatter node?
User avatar
t_3
Posts: 2871
Joined: Tue Jul 05, 2011 5:37 pm

michael_g wrote:How do I make god rays in Octane? I understand how to do it using a volume in Luxrender but so far it`s escaping me in Octane, is some thing to do with the scatter node?
yes: https://www.youtube.com/watch?v=MqOZp77ZSLg
in addition i found that very helpful: http://render.otoy.com/forum/viewtopic. ... 77#p173977
and a basic explanation of how medium nodes work: http://render.otoy.com/forum/viewtopic.php?f=21&t=9380

the point is to create a volume that contains the whole scene, and to set it up with specular material with a scattering medium node. since the camera needs to be _outside_ of the medium you can either create a volume geometry like shown in the video (of course not really possible with studio alone), or use the trick ROUBAL posted;

the probably hardest part is to get the various values right, might need quite some trial and error...
The obvious is that which is never seen until someone expresses it simply

1x i7 2600K @5.0 (Asrock Z77), 16GB, 2x Asus GTX Titan 6GB @1200/3100/6200
2x i7 2600K @4.5 (P8Z68 -V P), 12GB, 1x EVGA GTX 580 3GB @0900/2200/4400
michael_g
Licensed Customer
Posts: 28
Joined: Sun Dec 15, 2013 8:07 am

Thanks T_3
User avatar
t_3
Posts: 2871
Joined: Tue Jul 05, 2011 5:37 pm

michael_g wrote:Thanks T_3
a ps: if you want to use mesh lights, you need to put them inside the fog volume; the "glow" is going to be the better visible the smaller the light source is; and of course a directional light (i.e. light coming out of a tube sort of poor mans spot light) is going to work much better than an omnidirectional light; would be interesting if ies lights produce visible light cones - haven't tested it myself...
The obvious is that which is never seen until someone expresses it simply

1x i7 2600K @5.0 (Asrock Z77), 16GB, 2x Asus GTX Titan 6GB @1200/3100/6200
2x i7 2600K @4.5 (P8Z68 -V P), 12GB, 1x EVGA GTX 580 3GB @0900/2200/4400
User avatar
linvanchene
Licensed Customer
Posts: 783
Joined: Mon Mar 25, 2013 10:58 pm
Location: Switzerland

edited and removed by user
Last edited by linvanchene on Fri Sep 05, 2014 3:09 am, edited 1 time in total.
User avatar
t_3
Posts: 2871
Joined: Tue Jul 05, 2011 5:37 pm

cool thing that it works with ies also; is probably a lot easier to create lamps with a explicit light cone.

about the bubble: negative scale does indeed invert normals, but it maybe doesn't work when octane is creating new normals; here is a sphere with positive scale and inward normals:
FogBubble.rar
(16.75 KiB) Downloaded 184 times
the size of the sphere can imo range from clipping distance to whatever fits - it just defines in which distance to the camera the fog volume begins; will imo affect the visible dense, and should of course cover all light sources or the areas where godrays should be visible.

btw you only need to parent the sphere object to the active camera (and reset all translations of the sphere of course) to have it exactly where needed and make it move with the camera...
The obvious is that which is never seen until someone expresses it simply

1x i7 2600K @5.0 (Asrock Z77), 16GB, 2x Asus GTX Titan 6GB @1200/3100/6200
2x i7 2600K @4.5 (P8Z68 -V P), 12GB, 1x EVGA GTX 580 3GB @0900/2200/4400
michael_g
Licensed Customer
Posts: 28
Joined: Sun Dec 15, 2013 8:07 am

Greta info thanks.
User avatar
DrHemulen
Licensed Customer
Posts: 317
Joined: Thu Dec 26, 2013 7:09 pm

Awesome :) What's the perfomance hit for this kind of stuff?
GTX 780, 6 gigs of VRAM - Win 7 Home Premium 64 bits
michael_g
Licensed Customer
Posts: 28
Joined: Sun Dec 15, 2013 8:07 am

DrHemulen wrote:Awesome :) What's the performance hit for this kind of stuff?
I guess it depends on your hardware but during tests I did this morning I had to lower the eye depth and keep the res at 720x480. It`s a lot harder for the render kernel to project the light rays through a volume.

My hardware is a 770gtx and a 650ti.
User avatar
t_3
Posts: 2871
Joined: Tue Jul 05, 2011 5:37 pm

DrHemulen wrote:Awesome :) What's the perfomance hit for this kind of stuff?
hard to tell. normally there won't be much drop in ms/sec speed, but it will need quite some time more to get the image to the desired (low) noise level; 50% longer, twice as long - depends on the scene...
The obvious is that which is never seen until someone expresses it simply

1x i7 2600K @5.0 (Asrock Z77), 16GB, 2x Asus GTX Titan 6GB @1200/3100/6200
2x i7 2600K @4.5 (P8Z68 -V P), 12GB, 1x EVGA GTX 580 3GB @0900/2200/4400
Post Reply

Return to “DAZ Studio”