Learn

Blender Lighting Tutorial 03: Smart Car - Enhancing a HDRI Map

Enhancing a HDRI map in Blender with HDR Light Studio

This tutorial will teach you to enhance an existing HDRI map to improve it's lighting effect.
(Model kindly donated by PK3D Studio. Lo-res HDRI map and backplate image donated by Apex Automotive)

To follow this tutorial you require at least Blender 2.83 on Windows, Mac or Linux. You need HDR Light Studio - Xenon Drop 1 (or higher) installed, including the Presets. Plus the HDR Light Studio 'Blender Add-on' installed and active in Blender.

Before completing this tutorial, make sure you have completed Tutorial 1 and Tutorial 2.

You can download the Blender scene file here so you can follow along.

Here is a video tutorial or you can follow along with the tutorial document below.


LET'S GET STARTED

Open the HDRLS_Smart_HDRI_Start.blend scene provided.

Start viewport rendering with Cycles.

The camera background is showing a backplate image that was shot at the same location as the HDRI map we are going to load and edit.

Start HDR Light Studio, your interface should look something like this.

HDR Light Studio user interface layout over the top of Blender

Press the play button on the Render View, then press the Import button.

The Blender scene will load into the Render View.

Car model exported from Blender into HDR Light Studio render view

Delete the Gradient Background light.

Use the toolbar button to create a Picture Background light. We are going to load the existing HDRI map onto this light.

Download the HDRI map file here

 

HDRI Background light added using the toolbar button

On the Content section of the Light Properties, press the folder icon next to the Image field, to find and load the HDRI map.

Load a HDRI map into HDR Light Studio using the Folder icon button

Then press Open.

A pop up panel will prompt you to convert the image. Press the Convert button.

Image Conversion panel allows the loaded image to be converted into a TX file

The HDRI map file will be converted to a mip-mapped and tiled version which makes it far more efficient for HDR Light Studio to work with. For example if you converted a huge HDRI map into this format, even though the conversion would take some minutes the first time, thereafter the file will load in seconds and HDR Light Studio will remain very responsive when using using it.

The file automatically has the same location and a filename with a .tx added.

Press the Save button and the conversion will begin.

Once the conversion is complete, the file is now loaded as the texture on the light.

HDRI map has been loaded into HDR Light Studio

Increase the brightness of the light to to 400.

Light brightness being adjusted in HDR Light Studio

Rotate the HDRI map by adjusting the Longitude to around 86, you can see in the HDR Light Studio Render View that the blue and yellow trailer is in about the right position, and the big block wall is on the right of the shot.

HDRI map being rotated with Longitude setting in HDR Light Studio

Even though the HDRI map is now lighting the shot and matches the backplate image orientation, the results are not great at the moment. We are going to use the HDRI map as a base and make some improvements to it.

Car lit with a HDRI map being edited in HDR Light Studio

The first problem is that the HDRI map is lighting the tires too much from underneath.

The lower portion of the HDRI map is lighting the underside of the tires

Create a Gradient Background light from the tool bar.

Making a gradient background light using the toolbar button

Change the brightness to 100 and the blend mode to Multiply.

Brightness and blend mode settings in HDR Light Studio

On the Value Ramp for the gradient, double click on the ramp to add 2 more pegs, and make the right side values of the ramp to to be approximately 0.1. The ramp should look like this.

The value ramp controls in HDR Light Studio

This gradient, multiplied into the HDRI map, has nicely has darkened the lower part of the HDRI map and the tires look much better.

Light added to darken under the car - now the tires sit on the ground better

Looking at the floor shadow, it looks like an overcast day with a very soft shadow.

But if we explore the HDRI map on the Canvas by clicking, holding and dragging on the Exposure button, we can then see it's a clear day with a bright sun.

Adjusting the exposure of the HDR Canvas

The soft shadow is caused by the sun not being bright enough on the HDRI map. It has probably been clipped when the image was photographically captured. This is a common issue and has actually been fixed on the final HDRI map Apex Automotive released.

Let's fix this issue and boost the sun brightness.

Make a Round Light from the toolbar.

Making a soft round light from the tool bar

Change the blend mode to Amplify.

Selecting Amplify blend mode in Light Properties panel in HDR Light Studio

Position the light centred over the top of the sun. Zoom into the Canvas if you need to, to place it accurately.

Light being positioned over the top of the sun on the HDRI map

Scale the light until it fits over the sun. 2 x 2 is a good size.

Light positioned over the top of the sun on the HDRI map

Increase the brightness of the Round Light until you feel the sun looks bright enough.

Values for lights can be higher than the end of slider. You can keep pressing the + button to increase the value.

We ended up with a value of 3,200.

You can see in the Blender render the floor shadow is now much better.

Changing the brightness of the light on the HDRI map

The sky in the HDRI map is nice and blue. But it's not looking very blue in the reflections in the car. Let's increase the saturation of the sky to get more blue into the car.

Make a Round Light.

Change the blend mode to Saturation.

Place the light at the top of the HDRI map.

Change the size to 400 x 400, and brightness to 25.

Soft round light added to the top of the HDRI map with saturation blend mode - to increase sky color saturation

You can see the sky is now more saturated.

Sky saturation increased on the HDRI map

Now for some creative additions to the lighting, to shape the light and make the car come alive.

We can get away with adding lights because the viewer has no idea what is out of the shot. There could be additional lighting and reflections coming from the environment. As long as the car looks well integrated into the background, we can get away with creatively enhancing the lighting.

First we will add a Round Light to light the right bumper area.

Use LightPaint to place the light on the bumper.

Change the Blend mode to Amplify, brightness to 1200 and size to 40 x 40.

Soft round light with amplify blend mode added to the front right of the bumper

Next we are going to add a soft box over the car, like we did in the studio.

Filter the Preset lights by SoftBox, drag and drop Medium Softbox Diffused onto the right side of the windscreen.

Dragging and dropping soft box preset light onto the car model in HDR Light Studio

Enable Advanced Rotation and choose Fixed rotation mode.

Enabling advanced rotation setting and selecting the fixed orientation of the light

Increase the brightness to 400

The size looks good as it is.

Softbox light has been added to the HDRI map over the top of this car

The light looks too clean, so we are going to break it up with some lines using alpha multiply.

Make Alpha Multiply active, the default linear gradient is fine for what we need.

Enabling the Alpha Multiply in the light properties

In the Preset panel, change the type from Lights to Element: Value Ramp

Drag and drop the Bumps 5 preset onto the Alpha Ramp name, which turns green as you start dragging.

Dropping a Preset ramp setting onto the light properties panel to apply it

Now change the Rotation value to 90 degrees.

Editing the rotation of the gradient in HDR Light Studio

This looks good, makes the windscreen and hood look a bit more interesting.

Car render lit with HDRI map edited in HDR Light Studio

Next we will make a Round Light and place it on the left head light.

Scale it to 15 x 15 and increase the brightness to 3000. Change the blend mode to Amplify. This creates a nice set of highlights on the bumper detail.

Increasing the brightness of the HDRI map reflecting in the left car headlight area

Next we will make another Round Light and position it on the grill area. Zoom into the Render View so we can place the light more easily. Increase the brightness to around 2500 and change the blend mode to Amplify. Scale the light down to 12 x 12... as it's too big.

Adding a highlight to the grille area using a light with amplify blend mode

If we compare before and after you can see how this light has made a big difference.

Grille before and after enhancement with HDR Light Studio

So finally, one more Round Light. We are going to place a nice highlight on the right bumper detail too, we will scale it down to 12 x 12, change the brightness to around 2000, then finally change the blend mode to Amplify.

Brightening the HDRI map where it reflects in the car headlight

So finally, we are happy with the overall lighting... but we want to boost the brightness of all lights.

To do this we will use the trick we showed in an earlier lesson of using a Flat Background light with blend mode Multiply. Increase the brightness to 150, which will make the brightness 150%.

Adjusting the brightness of the whole HDRI map design using a flat background light with multiply blend mode

So that's it, we can solo the original HDRI map and then unsolo it, to see the difference. The overall lighting is so much better. It brings the car alive and makes the shot much more interesting.

Press the HDR button to render the final HDRI map, and close HDR Light Studio using the Stop button on the Blender interface.

 

Here is the original HDRI lighting:

Lit with the HDRI map before enhancement in HDR Light Studio

Here is the edited HDRI lighting result:

Lit with the HDRI map after enhancement in HDR Light Studio

This entry was posted in Lighting Tutorials and Demos and tagged Blender.