Jump to content
Justin K

Volume Shader --Godrays through volume (REVISED and UPDATED)

Recommended Posts

Hey all, posted this a bit ago but I am updating the post with a lot more context.  

 

I am trying to find a way to render volumetrics in houdini.    More specifcially, I have a night scene, with street lights.  Because it will be raining there will be volumetric influences on the light sources.  I want the light sources to be cut with god ray like light patterns, or at the very least have convincing fog throughout the scene.  I am struggling to achieve this affect with mantra.  

The first two images are what I am using as reference.  The first is the scene I am trying to emulate in 3d --complete with a rain sim and an umbrella rig (ya the same one from a previous post  -B)--all help was apprecaited)

(source: https://angelganev.deviantart.com/art/City-Nights-III-Day-82-700866138  )  pic 1

 

The second is an inspiring render I cam across with very well designed volumetrics in the sky--and convincing wet maps on the ground level

(source: https://www.behance.net/gallery/35226551/52Hz )   pic 2

 

The focus now is on the volumetrics.  

 

 

I have now attached the master scene file with the assets included as a zip in hopes of getting some detailed help--its a pretty simple file.    

 

Now, Ive been trying to use this as a reference 

  https://www.sidefx.com/tutorials/god-rays-light-beams-through-volumes-updated-20170508/

but am struggling with the implementation.  Something in materials seems to have changed in houdini 16 (or I am more likely just missing something).    

Overall, the suggested technique seems to be to simply apply a volumetric shader to a bounding object and use that to apply volumetrics to the scene.  This approach seems to work as intended but only if the camera is not within the bounding volume which in this case defeats the purpose.   See pics 3 and 4--one pic shows the volumetric box from an external view-- and shows its affect on the light sources--the second is inside the volume, where nothing seems to be happening--even if I try to trick it an dreverse the normals the result is just wrong.  

 

 

Is there a way to do this on the shader level?   

I know I can use an isooffset and build volumetrics on the object level, but when I was working with isooffsets my render times were ridiculous.  I dont want to have a scene with crushingly long renders if I don't have to.   It was pointed out that if you keep your volumetric sample 'cranking' on the material rather than scene level your results will be much faster--hence the reason Id like to implement the shader level approach if possible.      

 

Again, any help would be appreciated, Thank you!

 

 

 

 

 

 

 

 

 

 

Painting_JK_01.zip

 

Screen Shot 2018-04-23 at 9.58.16 AM.png

31b82635226551.56eeeaf3b235d.jpg

Screen Shot 2018-05-04 at 11.13.56 AM.png

Screen Shot 2018-05-04 at 11.11.39 AM.png

Edited by JKeil

Share this post


Link to post
Share on other sites

Uniform volume is still in 16.5. Check in the Material Palette. 

Share this post


Link to post
Share on other sites
14 minutes ago, adrianr said:

Uniform volume is still in 16.5. Check in the Material Palette. 

thanks adrianr-- I am currently using 16.0--16.5 is not working on MAC OS for me :(--at home I have 16.5 but not at work.  

Share this post


Link to post
Share on other sites
16 minutes ago, adrianr said:

There in 16 too :) Same place.

Joey struggles here.. Is it supposed to be located here?  

Screen Shot 2018-05-04 at 11.55.51 AM.png

Share this post


Link to post
Share on other sites

The panel will be in a different place depending on which desktop you're in. But you can always add it to any pane. 

materialpalette.PNG

Share this post


Link to post
Share on other sites
3 minutes ago, adrianr said:

The panel will be in a different place depending on which desktop you're in. But you can always add it to any pane. 

 

Thanks Adrian-- implementing and working with it now.  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×