Tuesday, 22 June 2010

Rendering Glass and other Transparent Materials in Indigo from Sketchup

Lately I have been trying to render a few items that include some glass parts using the Indigo Render Engine. Every time I rendered the image the glass would come out black. I was using the Sketchup Background Black environment as i wanted to use my own light sources. By chance I tried to render the same image using the Sun and Sky environment and the glass magically became transparent. I have found that the preset glass material only works well with the Sun and Sky environment. If you want to use your own light source it's a bit more complicated.

First create a new colour that is the shade you want you glass to be, i.e. with a slight blue hint or tinted black etc. and make it a phong material (or use the car paint preset). Then create another new material, this one we will paint the surface with, make this a blend material and select the A material as none and the B material as you glass colour. you can adjust the transparency of the glass by changing the blend ratio of these materials (1 being opaque and 0 being completely transparent) i suggest a value of between 0.3 and 0.5 as this gives a good reflection and colour in the glass but maintains transparency.

2 comments:

  1. Thanks, i finally can render glass

    ReplyDelete
  2. But how do you change the environment from black to sun and sky?

    ReplyDelete