Dont forget to sign up at our forums: click here to get access to free tutorials, materials, feedback on your models and much more!

Setting up a scene with HDRI Lighting

Back to home / View comments

In this tutorial we will run through the basics of setting up a scene with HDRI lighting.

Using HDRI lighting has its pros and cons. If you use it, you can archive stunningly realistic renders, without having to set up a complex lighting rig. However, it can cause very long rendering times.

Note: This tutorial is only for people with the Advanced Render Plug-in that comes with most editions of Cinema 4D.

Get an High Dynamic Range Image

The first  step in setting up HDRI lighting is to find an High Dynamic Range Image. These are NOT Images rendered WITH HDRI (as SOME people may think…). They are their own format. You will find these images with a “*.hdr” extension.

You can find many very high quality and resolution probes here. A Probe is just a type of HDRI which encompasses a large view.
If you lay the probe flat and looked at it, it would look like this :

Setting up a scene with HDRI Lighting

This will be the Probe I will be using for this tutorial.
Now, as you can see by looking at it, it has odd black stuff around the edges, and if we stuck that as out lighting now, it would be uneven, and unrealistic. Luckily Cinema 4D has a solution for that.

With that being said, open up Cinema 4D. When it loads, go to Plug-in > Advanced Render > Convert HDR Probe. It will open a file box. Navigate to your hdr file and open it.

This will convert all of the verities on the picture, to that of a 3D sphere. When it’s done it will pop up with the finished image. You can simply close that. If you look in the directory that the .hdr file was in, you will now see a con.hdr file as well. That is the file we will be using to light our scene.

Setting up the Scene

if you have a premade scene, feel free to use that. If not, then simply create a Floor object, drag it down 100m on the Y-axis, then create a Sphere.

Create a new material, named it ball, leave the colour as white, and change the brightness to 100%. Uncheck Specular, and check Reflection. Change the reflection brightness to 6%.

Duplicate the Ball texture, and name the second one Floor. On the floor texture, check the Bump, and add a Noise texture. Change the Noise type to FBM, and the Octaves to 6.1. click on Bump again, and change the strength to -7 %.

Now add the Ball material to the Sphere, and the floor to the floor. Now our very basic scene is done, and if done  right should look something like this:

Setting up a scene with HDRI Lighting

Setting up the Lighting

On to the fun part. Start off by creating a sphere. Then resize it so that all of you scene fits inside it (for the example scene, giving this sphere a Radius of about 1200m should work fine).

Now duplicate that sphere (Ctrl+c, Ctrl+v). Name one sphere GI, and the Other one Visible. As the names suggest, one of the spheres will be visible when we render and the other one will be for GI (GI stands for Global Illumination).

Create the materials needed for the light

Create a new Material. Name it Visible. Turn off all of the channels except Luminance. After that, go to luminance, and apply your con.hdr as the texture. As you can see, it’s a bit bright, so we are going to tone it down a bit. We can do this by setting the Brightness to 0%, and set the Mix to 50%. Then it should look like this:

Setting up a scene with HDRI Lighting

Now duplicate this material, and name the duplicate GI. The only change we are going to make to this one is setting the MIP Blur Offset in the Luminance Channel, to 10%. By doing this, it evens out the light, so when its rendered it will not look as blotchy.

Now, apply the GI material to the GI sphere, and the Visible material to the Visible Sphere.

Setting up the spheres

Now we will have to change some settings for our spheres. So right click on the Visible Sphere in the Object browser, and go to Cinema 4D tags > Compositing. Click on the tag. Make sure only the following are checked:

Seen by Camera, Seen by Rays, Seen by Transparency and finally Seen by Reflection.

Once that’s done, also add a Compositing tag to the GI sphere, and make sure only the “Seen by GI” is checked.

Now, after all of that complicated work, your Object Browser should look like this. (if not then you messed up). Our scene is finished now, now we only need to set the correct rendering settings.

Setting up a scene with HDRI Lighting

Rendering

If you tried to render it now, well it would look like a normal every day render. But that’s not what we want, we are going for Photorealism. So for that we are going to need some Global Illumination.

Open up the Render Settings, and go to the Global Illumination tab (Note: On the older versions of Cinema 4D it was called Radiosity) and turn it on. Now, you could spend a half hour messing with the settings, tweaking them to get them just right… OR you could use these:

Setting up a scene with HDRI Lighting

Once that’s all sorted out, click on Options, and make sure you turn off Auto Light. If you don?t, your scene will looked all messed up.

And now for the usual end stuff. Click on Antaliasing, and change it to Best. Click on Output, and change the Size to 800×600. Go to Save, and pick a path to a safe place, and change the format to JPEG.
This is my final result:

Setting up a scene with HDRI Lighting

To sums things up here is a quick reference guid you can use in the feature:

  • Create 2 spheres (Visible and GI) that go around your whole scene
  • Create a new material, turn off everything except luminance and add your HDRI image.
  • Apply this material to your 2 spheres
  • Visible Sphere > Compositing: Seen by Camera/ Rays/ Transparency & Reflection
  • GI Sphere > Compositing: Seen by GI
  • Render settings: Turn on Global Illumination and turn off global lighting
Enjoyed this post? Your vote is always appreciated!! Delicious StumbleUpon Float Digg

10 Comments

  1. tineyi

    Whewwww you guys really know what you are doing, I just started C4D and with your tutorials, i really appreciate what the programme can do!

  2. Roi

    it sucks on saving it always save as .aec even i change it it always coem out as .aec suckS!

  3. Roc

    This was a great tutorial and I was able to do it on one of my computers and then I went to work and tried it on another and for some reason when I went to render settings global illumination wasn’t highlighted thus preventing me from rendering it properly. Any suggestions?

  4. NoC

    Same as Roi, Only want to save as .aec
    Pleaaaase heeelp!

  5. Emre

    for global illumination you need the advanced render module installed. check if it is so.

  6. Emre

    And for the .aec problem. Well not sure but it must be about after effects. Make sure you didn’t check ” Compositing Project File” in the save tab. It is near the bottom, after effects is selected after it.

  7. Emre

    Alternatively you can save the image from the picture viewer after the render is finished. The save tab makes it automatic.

  8. Paige Cash

    5svte37hwfali8nv

  9. D-roolz

    I Have R10 And I Cant Find The Advanced Render Under Plug-Ins I Have to Render>Convert HDR Probe….Is It Because Of the new Release Or What?

  10. D-roolz

    NVM I Dont Have Advanced Render Anyone Know Where I Could Get A Free Download Or Add-On

Leave a comment