Compositing Transparent Background Renders for the Web

Richard van der Oost writes:

I added a very simple Suzanne render to our homepage recently. But the compositing behind it to achieve the semitransparent shadow is not as simple as you might expect ;)

I used a bit of pixel math to calculate the exact pixel values of the shadow, translated it into compositing nodes, and it seems to work correctly. We also dive into some color space transformations as our web browsers don’t work in linear color space like the Blender compositor does.

This is the full article, and I also share the final .blend file.

I also run through the .blend file and compositing chain in this video:

Advertisement