3D World

BASICS: TRANSPAREN­T MATERIALS

We continue our series

-

I f you’re new to CGI, you may feel that there are far too many tools to choose from in a dizzying array of software. This series aims to break everything in CGI down to the very basics, so that every artist can be armed with the knowledge of which tool is best. Let’s continue exploring materials and shaders by looking at transparen­t surfaces.

Creating a transparen­t material such as glass seems easy – just increase the transparen­cy slider to 100 and the job is done, so why doesn’t the glass look right?

Transparen­t materials are actually one of the most complex items in a 3D scene to get correct, as they have a wide variety of factors that impact on their look. From the thickness of the object, to the way the material bends light and even the chemical compositio­n of the glass, diamond, oil or water amongst many other transparen­t materials, there is a lot to figure out.

As with many other material systems, legacy fixes, or cheats, which were determined by a lack of computing power, are now no longer relevant for transparen­t materials due to the speed of today’s render engines. That being said, transparen­t materials can still be computatio­nally intensive, so understand­ing the core components of how transparen­cy works in a render engine is critically important.

Learning how to model for transparen­cy can be of benefit, for example a solid glass ball transmits and refracts (moving light through an object) very differentl­y from a light bulb. This is because the light bulb is a thin-walled glass sphere, which means that the light does a lot less bending, but at the same time there are two layers of transparen­cy for light to go through, rather than the one with the solid glass ball.

As with many techniques in 3D, you should aim to get as much real-world reference as possible when working with transparen­t materials – ideally in similar lighting conditions that you need to create. This is particular­ly important as transparen­t materials behaving incorrectl­y are one of the easiest ‘tells’ in CGI. That being said, getting a transparen­t material correct is one of the most satisfying accomplish­ments a CG artist can master.

01 incidence of refraction

Every transparen­t material has a different Incidence of Refraction. This is the calculatio­n of how light passes through a material and affects how objects behind the transparen­t object are seen by the eye (or camera). The great thing about learning IOR values is that they are scientific­ally accurate, so inputting a value of around 1.5 will get a good approximat­ion of glass in any current render engine. With the latest generation of PBR materials, IOR and reflection properties now tend to be linked.

02 thin vs solid Glass

A major giveaway for transparen­t objects is their thickness, as the thicker a transparen­t surface the more it will refract and bend light. But not all transparen­t objects are solid – bubbles, traditiona­l light bulbs and even camera lenses are all examples where thinness matters. These types of objects can be created by modelling a thin wall into the object, to check to see whether the render engine being used has the ability to compensate for thin-walled glass.

03 transparen­cy scale

Transparen­cy and especially light-refractive qualities are critically dependant on model scale (if the render engine being used is physically accurate). For example, a wine glass that is 2m tall will refract and transmit light very differentl­y to one that is normally sized. For this reason, it is very important to ensure that you model at the correct scale. The good thing about this is that a single glass material can look different on a wide variety of objects.

04 dispersion

Another method of giving a transparen­t object life is to play with the dispersion, if it is available in the chosen render software. Dispersion, in essence, hints at the chemical makeup of the transparen­t material by splitting out the light wavelength­s, and can be a great way of highlighti­ng the difference­s between a whiskey container made out of glass and one made out of crystal. When taken to an extreme it can also be a great way of creating a soap bubble.

 ??  ??
 ??  ??
 ??  ??
 ??  ??
 ??  ??

Newspapers in English

Newspapers from Australia