Monday, March 31, 2008

Resin Domed Decals in Brazil r/s V2

A friend of mine asked me if I could make a "resin dome" type sticker in 3d. The picture below is an example of the kind of sticker I want to create.

Here is start scene made in 3ds MAX8. *start.max*

Start scene

  • If you open it, you should see a simple scene with a camera and 2 objects. The top of the object is made from a loft, as I wanted to have a control over shape of the sticker, converted to the editable mesh.

  • If you hit render you will get all black because all the lights are switched of by default.

Basic lighting

  1. Start by adding overall light via basic skylight (min/max aa set to 0/1 to give us some aa and Sky light rate set to 5 for fast preview renders). Render again and the result shows a rectangle with round corners lit with the skylight color.

  2. Now start adding highlights from additional lights. First unhide Brazil Light01 (I have hidden all the additional objects in this scene to make following along easier) with settings like those in the picture below. This light adds a strong specular highlight to the right side of the sticker (also notice that this light is set up to affects Specular only).

  3. Unhide the last light (Brazil Light02) which adds a specular highlight to the lower left corner. Now, also unhide the ground object.

Click Render, and look at what we have: Our "Sticker" is flying above the ground plane. This is so that we can add some shadow effects in the future. The lighting looks good for now, so next we'll add some materials to the scene.



Materials setup
  1. Ground plane material: Add a new Brazil Advanced material to the material editor. Set the specular level to 0 and add a noise map into the color (CS) slot. The Noise setting are on shown on the picture below. I wanted only slight gradients.

  2. Sticker top material: Make a material that simulates resin.
    Now adjust the reflection, transparency and other settings to match those in the picture below. Glossy reflections adds nice light blur to all reflections and this effect will make the render more handsome. If the render time on your computer slows down too much, turn the glossy reflections off (for now) and re-enable them again at the end of this turtorial.

  3. Sticker bottom material: Another simple material. Look at the screen-cap below to see what settings we've used. Everything has been left at it's defaults except that we've reduced the specular. We don´t want to bottom part to have any highlights. And also add some picture or logo of your choice. Don´t forget to make this material 2-sided.

And render. Render time on my computer was 38s (640x480). But image looks pretty flat since the environment has nothing interesting going on. So lets add an HDRI environment in the next step.



Applying HDRI map

Now we'll add an HDRI map to spice up the environment and the reflections in the resin. For this tutorial I have used *living_day.hdr* from www.aversis.be (It´s free to download).
  1. Load HDRI into enviroment.

  2. Load HDRI into skylight.

  3. Change the HDRI values. Render image.


    The render time is longer than it was previously (58s), but the image looks much better now. The lighting and reflections on surface has been improved.

Now modify the HDRI setings as shown on the picture below and render again.




Additional reflections

In this part we will try to add some additional reflections to the surface to make the image a bit more interesting. On the picture below I've shown where I want them.

  1. We will reflect some simple geometry with a bright white material on it. Unhide the remaining hidden geometry in the scene (bigwhite and blinds group) and apply a new material to them (details in next step). The scene should look like this:

  2. The material we want is shown in picture below. It is simple white self ilumination material.
    One note.. if your Brazil r/s v2 Advanced Material highlight settings are all 0 (zero), you could change the highlight shader to 'None', which will have the same effect and be slightly (not really noticeably) faster.

  3. Render.

    Render time 1m13s but the scene looks a bit dark.
Go to the HDRI settings and change the white-point a little bit, (my settings are shown in picture below) and render again.



The lighting looks better now and we can start to prepare the final image settings.

Final image settings
  1. Set higher rate for GI and render.


  2. The render time has increased to 5m48s but there is much less noise now. You can continue raising the rate numbers at the cost of render times, or use the render cache which will gain fast renders with noise reduction. My render-cache tweaks are shown below:


  3. Render time has dropped back down to a minute and it looks like we're all done. We'll raise the sampling rates a bit more and tweak some more values in render cache, all shown on the screen-cap below. Render.


  4. Our render time is back up to 3m 20s. As I was hoping for a render time under 2 minutes, we have to change some settings a bit. I disabled auto-oclusion. Render.



Result

Render time: 1m 55s. This is pretty much the quality level I was looking for and the flexibility of the new tools in Brazil 2 has allowed me to reach my desired render time. There is a lot of room for experimentation (for example, different HDRI maps can have a huge effect on the picture). I have done some versions with different HDR's and textures below. Have fun and experiment -- try anything.

I hope that you have enjoyed this tutorial and please excuse me if there are some mistakes:) I expect others out there can find even better settings -- if so, please share :)

The final scene can be downloaded here.

contributed by Pavel Romsy