How Camera Aperture affects Bokeh in CGI

The Impact of Bokeh on Photorealism in 3D

Reading time
4 min
Published on

February 10, 2024

Blauw Films

Since the beginning of Blauw Films we have been in the process of achieving photo-realistic results in our 3D-renders. And due to our background in live-action filmmaking, the personality and artifacts of a camera-lens were always extremely important to us.

When I started using Chaos Corona as a render engine for Syntactic Labyrinths, and subsequently our other films — I became obsessed with understanding the Corona Camera tool.

How could we replicate the details of real camera lenses in CGI? 

To achieve that we built the Bokeh Builder.

Download the Bokeh Builder for Free from our Resources page

A Simple Look-Dev Test

To truly experiment what a camera aperture is doing to a rendered image, we will be experimenting with a simple test-scene. A cube, a sphere and a backdrop with a grid. As each of these elements are unique, yet simple enough to understand, we will be able to tell what is happening to the depth of field.
*Notice the green frame on the right. That is for the close-up renders to have a better look at the bokeh.

Viewport render of the Test Scene

Rendered Test Scene with no Depth of Field

As you can see above there are no blurred out areas. This is the scene straight out of the box. I'm using our UV-Checkerboard to clearly see how the depth of field affects the shot.

Let's pay attention to the colored crosses, as well as the cross-sections between the checkerboard squares. That is where the bokeh artifacts will become most obvious.

Default Depth of Field turned on: Circle aperture

After turning on the Depth of Field in the Corona camera settings we start seeing a focal point and a plane of focus. As we are focused on the foreground, the background fades into a blur. Notice how the depth of field "grows" each pocket of light until it blends with the next.

Crop of Default Depth of Field: Circle aperture

As you can see, each out of focus area overlaps its neighbor in the shape of the aperture. Do you notice the circular magnification of light? It's honestly so cool to see! :) 

The following graph explains the effect with a single focus-cross:

How a Camera Aperture Focuses Light

Light travels into the lens and hits "all over the place". Most of the light is nicely focused onto the image sensor through a variety of lens-elements inside your camera lens.

Each lens is made up of different lens-elements. Thus delivering different results at different planes of focus, as well as having different levels of light-distribution.

Meaning, how the light is distributed within the cone of light.

Depending on the lens you choose, you will get drastically different results in your blurry areas.

Summarised your bokeh is primarily affected by: 

  1. Aperture Shape
  2. Light-compensation
  3. Blur Disk
  4. Surface imperfections

The same is true in 3D-rendering. If you change the aperture shape of your 3D-camera for a custom map, your depth of field will behave accordingly.

Below are a few examples of using different aperture maps, with different levels of light-compensation: 

Isn't that cool?

Now let's have a look at how that impacts the feel of our test scene: 

The difference between balanced, under-compensated and over-compensated bokeh is how much your want your blur to direct attention to itself.

Using an under-compensated aperture map will give you the smoothest "invisible" bokeh. In a lot of use-cases, for example a portrait in which the subject is most important and should look smooth, it's good to use this bokeh.

Over-compensated aperture maps give a much stronger effect, creating a halo around every highlight in your blur. This can be useful as well if you want your bokeh to be more obvious or have stronger characteristics.

Below is an example of the same test scene but with some candles scattered around: 

To clearly showcase an over-compensated aperture map, you can see how every highlight becomes a circular halo. The blur has become a subject of the shot in its own and unique way.

Creating Custom Aperture Maps

Creating your own aperture maps is a fun challenge and can give you an infinite number of variations on your shot.

Both for when you are deciding on the look of your film as when you have to realistically composite a 3D-asset into live-action footage: 

It's great to use textured aperture maps for that extra level of detail.

Still from Syntactic Labyrinths using a pentagonal aperture map

To accelerate our workflow in creating 3D-renders (and to allow us to quickly iterate on the look of the blur) we've created the Bokeh Builder.

This product is both a collection of pre-made aperture maps, as well as a fully customizable After Effects setup to make your own maps.

Conclusion

The subject of bokeh, aperture maps and depth-of-field is extremely vast and filled with technical information. However, step by step, you can start to delve deeper into its nuances and infinitely improve the look and feel of your 3D renders!

Honestly, I feel like there was me the 3D-artist before I knew bokeh, and after... There is no going back! 

So to you, who is either reading up on this subject again or stepping foot into it for the first time — I would love to hear your thoughts on bokeh and how you will use it for your own project. Feel free to contact us with your art and examples of what your did using the Bokeh Builder :) 

Table of Contents
Stay connected with Blauw Films! 
For the latest updates, breakdowns and exclusive content, follow us on Instagram, LinkedIn and YouTube

Reading List

References

0 Comments

Active Here: 0
Be the first to leave a comment.
No Name
Set
Moderator
4 years ago
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Your comment will appear once approved by a moderator.
No Name
Set
Moderator
2 years ago
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Your reply will appear once approved by a moderator.
Load More Replies

New Reply

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Load More Comments
Loading

Up next

That was the latest post.

Check back soon for more entries to the library.

Previous

That was the oldest post.

We are working on updating our archives.

You might also like

A blue arrow pointing right from the Blauw Films website.
Planet Earth in a half translucent blue and purple color with a glow rendered in the Blauw Films crystal material.

Join the Newsletter!

Be the first to hear about our latest releases and news!

Want to start Dreaming in Blauw[1]?

Oh no! That didn't seem to work.

By entering your email, you agree to receive a curated newsletter from Blauw Films.

[1]: Dreams of Blauw are any form of crystallised thought based on honest expression. Sometimes they linger a shade of blue in your after-image.