Jump to content
Sign in to follow this  
vfortin

Depth sorting issue with Lit Fog

Recommended Posts

Hi,

I've got an Atmosphere object + Lit Fog shader, a perforated grid and a spotlight underneath it pointing upwards.

This results in some nice rays through the fog but it seems that the grid is "comped" on top of everything, matting the fog where it shouldn't.

Hopefully the images speak for themselves. Hip file attached.

Any idea what could be causing this?

Thanks!

post-971-0-71548200-1381502269_thumb.png

post-971-0-14019200-1381502279_thumb.png

litfog_issue.hip

Edited by vfortin

Share this post


Link to post
Share on other sites

The problem comes from your settings of litfog shader. Your minimum step size is 5, try with 1 or like default settings 0.1 and render becomes fine.

Share this post


Link to post
Share on other sites

Ahh thank you Francois!!

The scene I'm working on has a huge scaling, hence the larger step size. Hopefully I can find a good balance between precision and speed, otherwise I guess I'll have to bring everything down to a decent size:)

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
Sign in to follow this  

×