Tuesday, August 25, 2009

What the Fog?


Garish red-blue fog controlled by color and intensity gradients

Fog is an important part of 3D rendering, since it can add depth and atmosphere to an otherwise flat looking render. Most 3D packages has some kind of built-in fog rendering capability, but advanced packages like Houdini only provide the framework for the user to build their own fog shaders.


Render-ready multiple fog types with a simple Lightwave-style interface

As an ex-Lightwave user, I was used to having a simple and friendly interface to quickly setup a nice looking distance based fog render. So my mission was to bring basic Lightwave style interface to a fog atmosphere shader in Houdini. Starting from a "VOP VEX Fog SHOP" node and some basic fog formulas, I eventually added a bit more variety in the form of ramps to control color and fog intensity based on distance.


The VOP sub-network for the Ramp fog function

There are no fancy algorithms or advanced techniques here, just plain vanilla distance based fog with a bit more user control. If there's any interest in this I'll build an OTL and upload it somewhere for everyone to use and pick apart.

No comments: