Author Topic: A problem with glass material  (Read 5125 times)

0 Members and 1 Guest are viewing this topic.

Offline lipceanu

  • Newbie
  • *
  • Posts: 3
A problem with glass material
« on: April 20, 2012, 01:59:09 am »
Hi! I try to make a beer cup and get a b/w in the middle (2.png attached) in place of transparent yellow beer. I have 3 objects in scene: water - luquid beer material, cup- glass transparent, and a foam. Can somebody help me, please? Is the problem in render, or in polygons (done in Maya)?

1.png attached - a beer with foam without glass
2.png - when glass object is added

Offline JeffM

  • Sr. Member
  • ****
  • Posts: 281
Re: A problem with glass material
« Reply #1 on: April 23, 2012, 09:37:58 am »
Take a look at the wine glass file in the resources/scenes folder.

This file is set up correctly for this type of render. You'll see there are three elements including: the outer glass (where the glass is touching air), a surface for where the glass and liquid meet (inner cup area), and a surface for the top of the liquid (where liquid and air meet).

Breaking up the model in this way allows you to control the refraction values for each element (IOR in/out... see the wine glass for the correct values). It also avoids the issue of having two surfaces in the same place creating strange artifacts on the surface.

Offline lipceanu

  • Newbie
  • *
  • Posts: 3
Re: A problem with glass material
« Reply #2 on: April 26, 2012, 12:51:34 am »
Thank you! That helped.  Also I missed unlink material to do on the group of layers, that was necessary.