In Nebula Shade, an OSL Shading project

For a student project, we need to make Nebula volume from a picture of real Nebula.

The goal was not to have a scientifically correct representation. It was to have color and shape of the photo on a beautiful volume render.

The shader makes to a 3D volume extrusion, adds some fractal complexity and stars around.

It uses two images:
• the original photo of the nebula
• a modified one, representing the depth of the nebula (made with photoshop).

It is 100% OSL.

It can be adapted to any OSL renderer with volume closures: Arnold, Cycles, etc :

Here is the film :

Enjoy !