Volume effects fog distance

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
J.C
Licensed Customer
Posts: 1857
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Is it possible to add one more control to the Fog effect? It would be great to have a "Start Distance" slider which would determine the distance from the camera that the fog will start.
Currently If you want a thick looking fog every object in front of camera is covered in fog, in reality it does not happen unless you are covered in a smoke or similar medium.

In the example below Fog extinction distance is 150, the first person in front of camera is 3 meters away the landscape is 50 meters away.
Attachments
fog.jpg
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

This is a good use case for the 2D Plane fog trick. Make a plane that defines the start of your fog by applying a Specular material to it which has a IOR of 1, a Transmission of 1, Reflection of 0, and a Scattering Medium. Essentially it's an invisible plane with only the Scattering Medium altering what is visible behind it.

While the shader is applied to a 2D plane, the fog effect is calculated 3D, and interacts properly with light sources. It's fast, easy to control, and simple to set up.
Attachments
2D Fog Plane
2D Fog Plane
Animation Technical Director - Washington DC
J.C
Licensed Customer
Posts: 1857
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

I came across this trick 5 years ago while working on my client's project.
I'm hoping for a solution that doesn't involve tricks or workarounds.
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

J.C wrote:I came across this trick 5 years ago while working on my client's project.
I'm hoping for a solution that doesn't involve tricks or workarounds.
Um, this is 3D CG animation, after all. Tricks and workarounds have been my bread and butter for 35 years, and will probably remain a core of the skillset until AI makes the entire field obsolete. :D
Animation Technical Director - Washington DC
J.C
Licensed Customer
Posts: 1857
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

frankmci wrote:Tricks and workarounds have been my bread and butter for 35 years...
35 years on bread and butter is far from healthy. You should have some proper vegetables and fruit instead :P
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
pegot
Licensed Customer
Posts: 934
Joined: Mon Nov 07, 2011 3:44 am

This is fine for still shots or simple animation but fails when camera has to rotate around the plane or do more advanced camera moves. You can animate the plane as well but it gets tricky and things can fall apart easily.
Win 10
3.7Ghz i9 10900k / 64GB
ASUS STRIX Z490-E
PSU: PowerSpec 850Wd
RTX 3090 Asus Tuff

Network rendering:
Win 10
4.2Ghz i7 7700k / 64GB
AsRock SuperCarrier
PSU: EVGA 1200w
RTX 3080 Ti EVGA Hybrid
RTX 3080 ASUS Tuff
GTX 1080ti SC Black (wc)
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

pegot wrote:This is fine for still shots or simple animation but fails when camera has to rotate around the plane or do more advanced camera moves. You can animate the plane as well but it gets tricky and things can fall apart easily.
I just make the plane a child of the camera, and it generally works fine. It will mess up with Z-depth passes, but it's easy enough to exclude the fog plane geometry from those if you need to output a separate Z. There are also instances where motion blur can get funky, but again, I'd generally render a motion vector pass sans fog plane for that.
Animation Technical Director - Washington DC
J.C
Licensed Customer
Posts: 1857
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

frankmci wrote: I just make the plane a child of the camera, and it generally works fine. It will mess up with Z-depth passes, but it's easy enough to exclude the fog plane geometry from those if you need to output a separate Z. There are also instances where motion blur can get funky, but again, I'd generally render a motion vector pass sans fog plane for that.
The plane effectively blocks all objects behind the plane for masks creation like cryptomatte or object id.
Again this is a workaround suitable for specific cases. I asked if current tools could be improved, not if there are any workarounds... and I'd like to hear opinion from developers if possible.
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
frankmci
Licensed Customer
Posts: 917
Joined: Fri May 26, 2017 2:00 pm
Location: Washington DC

J.C wrote:The plane effectively blocks all objects behind the plane for masks creation like cryptomatte or object id.
Again this is a workaround suitable for specific cases. I asked if current tools could be improved, not if there are any workarounds... and I'd like to hear opinion from developers if possible.
Yes, that's exactly what I meant by needing to do a separate pass for things like Z depth, which includes crypomatte and such. Sorry if my attempt to be helpful was misguided.
Animation Technical Director - Washington DC
J.C
Licensed Customer
Posts: 1857
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

frankmci wrote:
J.C wrote:The plane effectively blocks all objects behind the plane for masks creation like cryptomatte or object id.
Again this is a workaround suitable for specific cases. I asked if current tools could be improved, not if there are any workarounds... and I'd like to hear opinion from developers if possible.
Yes, that's exactly what I meant by needing to do a separate pass for things like Z depth, which includes crypomatte and such. Sorry if my attempt to be helpful was misguided.
Yet another workaround to fix workaround. Feel free to work like this. I prefer to ask developers to improve the software to avoid such issues.
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
Post Reply

Return to “General Discussion”