A fairly customizable volumetric renderer (MRIs and such)

Hello! I recently updated the volumetric renderer I’ve been working on. It’s just a basic raymarcher, but I’ve added a ton of options to it. The shader makes heavy use of defines so it should hopefully not be too heavy.

The reason I made the volume renderer to begin with was because I needed a way to visualize and animate smoke from Fire Dynamics Simulator. I accomplished this by reading the data into chunks of 3D textures and interpolating between them. Seems to work okay.

Keep in mind that the number of ray steps has a large impact on performance and quality.

If you got any suggestions for improvements, do tell.

8 Likes

Added support for turning Three.Meshes into volumes too. This is a 32x32x32 resolution 3D render texture representing a torus knot through a signed distance field.

3 Likes