PBR_Guide_Vol.1
PBR_Guide_Vol.1
PBR_Guide_Vol.1
PBR_Guide_Vol.1
User Manual: Pdf
Open the PDF directly: View PDF .
Page Count: 13
The Comprehensive PBR Guide
by Allegorithmic — vol. 1
Light and Matter : The theory of Physically—Based Rendering and Shading
Cover by Gaëtan Lassagne, written by Wes McDermott
vol. 1 — The theory of Physically—Based Rendering and Shading
• Light Rays — 2
• Absorption and Scattering (Transparency and Translucency) — 3
• Diffuse and Specular Reflection — 4
Microfacet Theory — 5
• Color — 6
• BRDF — 6
• Energy Conservation — 7
• Fresnel Effect — 7
F0 (Fresnel Reflectance at 0 Degrees) — 8
• Conductors and Insulators (Metals and Non Metal) — 9
Metals — 9
Non-Metals — 10
• Linear Space Rendering — 11
• The Key Factors — 11
• References — 12
Technical edit by: Cyrille Damez and Nicolas Wirrmann
vol.1 — The theory of Physically—Based Rendering and Shading
Light and Matter
The theory of Physically—Based Rendering and Shading
The Light Ray Model states that a light ray has the
trajectory of a straight line in homogeneous transparent
media such as air. The Light Ray Model also says that the
ray will behave in a predictable manner when
encountering surfaces such as opaque objects or passing
through a different medium such as air to water. This
makes it possible to visualize the path the light ray will
follow as it moves from a starting point to where it
eventually changes into another form of energy such as
heat.
The light ray that hits a surface is called the Incident Ray
and the angle that at which it hits is called the Angle of
Incidence as shown in figure 01.
A light ray is incident on a plane interface between two
media.
When a light ray hits a surface, either or possibly both of
these things can happen:
1. The light ray is reflected off the surface and travels
in a different direction. It follows the Law of Reflection,
which states that the Angle of Reflection is equal to the
Angle of Incidence (Reflected Light).
2. The light ray passes from one medium to another in
the trajectory of a straight line (Refracted Light).
At this point, we can state that light rays split into two
directions: reflection and refraction. At the surface, the
ray is either reflected or refracted and it can be
eventually absorbed by either medium. However,
absorption doesn’t occur at the surface.
Light is a complex phenomenon as it can exhibit properties of both a wave and a particle. As a result, different models
have been created to describe the behavior of light. As texture artists, we are interested in the Light Ray Model as it
describes the interaction of light and matter. It’s important for us to understand how light rays interact with surface
matter because our job is to create textures that describe a surface. The textures and materials we author interact
with light in our virtual worlds and the more we understand about how light behaves, the better our textures will look.
In this guide, we will discuss the theory behind the physics through which physically-based rendering models are
based upon. We will start with a light ray and work up to defining the key factors for PBR.
vol. 1 — The theory of Physically—Based Rendering and Shading
When traveling in an inhomogeneous medium or
translucent material, light can be absorbed or scattered:
1. With absorption, the light intensity decreases as it is
changed into another form of energy (usually heat), and
its color changes as the amount of light absorbed
depends on the wavelength, but the direction of the ray
doesn’t change.
2. With scattering, the ray direction is changed randomly,
the amount of deviation depending on the material.
Scattering randomizes light direction but the intensity
doesn’t change. An ear is a good example. The ear is thin
(absorption is low), so you can see the scattered light
penetrating out of the back of the ear. If there is no
scattering and the absorption is low, rays can pass
directly through the surface such as with glass. For
example, if you are swimming in a pool, which is
hopefully clean, you can open your eyes and see at a
fairly good distance through the clear water. However,
let’s imagine that same pool hasn’t been cleaned in a
while and the water is dirty. The dirt particles scatter the
light and thus make the clarity of the water much lower.
The further light travels in such a medium/material, the
more it is absorbed and/or scattered. Therefore, object
thickness plays a large role in how much the light is
absorbed or scattered. A thickness map can be used to
describe object thickness to the shader as shown in figure
02.
Absorption and Scattering (Transparency and Translucency)
Specular reflection is light that has been reflected at the
surface, as we discussed above in the Light Ray section.
The light ray is reflected off the surface and travels in a
different direction. It follows the Law of Reflection, which
states that on a perfectly planar surface the Angle of
Reflection is equal to the Angle of Incidence. However, it
is important to note that most surfaces are irregular and
that the reflected direction will therefore vary randomly
based on the surface roughness. This changes light
direction, but the light intensity remains constant.
Rougher surfaces will have larger and dimmer looking
highlights. Smoother surfaces will keep specular
reflections focused, which can appear to look brighter or
more intense when looked at from the proper angle.
However, the same total amount of light is reflected in
both cases as shown in figure 03.
Diffuse reflection is light that has been refracted. The
light ray passes from one medium to another and is
scattered multiple times inside the object. Then it is
Diffuse and Specular Reflection
Object thickness plays a large role
in how much the light is absorbed
or scattered
vol.1 — The theory of Physically—Based Rendering and Shading
refracted again out of the object making its way back to
the original medium at approximately the same point
where it went through the first time as shown in figure
04.
Diffuse materials are fairly absorbent, meaning that if the
refracted light travels for too long in that material, it has
a good chance of being completely absorbed. This means
that if the light ever comes out of that material, it has
probably not traveled very far from the point of entry.
That’s why the distance between the entry and exit
points can be neglected. The Lambertian model, which is
usually used for diffuse reflection in a traditional shading
sense, does not take surface roughness into account, but
there are diffuse reflection models that do such as Oren-
Nayar.
Materials that have both high scattering but low
absorption are sometimes referred to as «participating
media» or «translucent materials». Examples of these are
smoke, milk, skin, jade and marble. Rendering of the
latter three may be possible with the additional modeling
of subsurface scattering where the difference between
the ingoing and outgoing point of the light ray is no
longer neglected. Accurate rendering of medium with
highly varying and very low scattering and absorption like
smoke or fog may require even more
expensive methods such as Monte Carlo
simulations.
Rougher surfaces will
have larger and dimmer
looking highlights
vol. 1 — The theory of Physically—Based Rendering and Shading
In theory, both diffuse and
specular reflection are dependent
on the surface irregularities
where the light rays intersect. In
practice though, the effect of
roughness on diffuse reflection is
much less visible because of the
scattering happening inside the
material. As a result, the
outgoing direction of the ray is
fairly independent of surface
roughness and the incident
direction. The most common
model for diffuse reflection
(Lambertian) completely neglects
it.
In this document, we have
referred to these surface
irregularities as surface
roughness. Actually, it is often
referred to by several names
such as roughness, smoothness, glossiness or micro-
surface, depending on the PBR workflow in use, but they
describe the same aspect of a surface, which is sub-texel
geometric detail.
These surface irregularities are authored in the roughness
or glossiness map depending on the workflow you are
using. A physically-based BRDF is based on the
microfacet theory which supposes that a surface is
composed of small-scaled planar detail surfaces of
varying orientation called microfacets. Each of these
small planes reflects light in a single direction based on
its normal as shown in figure 05.
Micro-facets whose surface normal is oriented exactly
halfway between the light direction and view direction will
reflect visible light. However, not all microfacets where
the microsurface normal and the half normal are equal
will contribute as some will be blocked by shadowing
(light direction) or masking (view direction) as is
illustrated in figure 05.
The surface irregularities at a microscopic level cause
light diffusion. For example, blurred reflections are due
to scattered light rays. The rays are not reflected in
parallel so we perceive the specular reflection as blurred
as shown in figure 06.
The surface irregularities at a
microscopic level cause light
diffusion
vol.1 — The theory of Physically—Based Rendering and Shading
The color of a surface
(which is to say the color
that we see) is due to
which wavelengths are
emitted by the light source,
which are absorbed by the
object and which others
are reflected both
specularly and diffusely.
The remaining reflected
wavelengths are what we
see as color.
For example, the skin of an
apple mostly reflects red
light. Only the red
wavelengths are scattered
back outside the apple skin
and the others are
absorbed by it as shown in figure 07.
It also has bright specular highlights the same color as
the light source because with materials like the skin of an
apple that are not electrical conductors (dielectrics),
specular reflection is almost independent of wavelength.
Therefore, for such materials the specular reflection is
never colored. We will discuss more about the different
type of materials (metals and dielectrics) in later sections.
A Bidirectional Reflectance Distribution Function (BRDF)
simply put is a function that describes the reflectance
properties of a surface. In computer graphics, there are
different BRDF models some of which are not physically
plausible. For a BRDF to be physically plausible, it must
be energy conserving and exhibit reciprocity. For
reciprocity, I am referring to the Helmholtz Reciprocity
principle, which states that incoming and outgoing light
rays can be considered as reversals of each other without
affecting the outcome of the BRDF.
The BRDF used by Substance’s PBR shaders is based on
Disney’s «principled» reflectance model, which is based on
the GGX microfacet distribution. GGX provides one of the
better solutions in terms of specular distribution in that it
has a shorter peak in the highlight and a longer tail in the
falloff, which is to say that it looks
more realistic as shown in figure 08.
Object GGX provides
one of the better
solutions in terms of
specular distribution
Substance PBR shaders use the
GGX microfacet distribution
vol. 1 — The theory of Physically—Based Rendering and Shading
Energy Conservation plays a vital role in physically-based rendering solutions. It states that the total amount of light
re-emitted by a surface (reflected and scattered back) is less than the total amount it received. In other words, the
light reflected off the surface will never be more intense than it was before it hit the surface. As artists, we don’t have
to worry about controlling Energy Conservation. This is one of the nice aspects of PBR in that energy conservation is
always enforced by the shader. It’s part of the physically-based model and it allows us to focus more on art rather
than physics.
The Fresnel reflection factor also plays a vital role in
physically-based shading as a coefficient of the BRDF.
The Fresnel Effect as observed by French physicist
Augustin-Jean Fresnel states that the amount of light you
see reflected from a surface depends on the viewing
angle at which you perceive it.
For example, think of a pool of water. If you look straight
down, perpendicular to the water surface, you can see
down to the bottom. Viewing the water surface in this
manner would be at zero degrees or normal incidence,
normal being the surface normal. Now, if you look at the
pool of water at a grazing incidence, more parallel to the
water surface, you will see that the specular reflections
on the water surface become more intense and you may
not be able to see below the surface of the water at all.
Fresnel is not something that we control in PBR as we did
in traditional shading. Again, this is another physics
aspect that is handled for us by the PBR shader. When it
comes to viewing a surface at a grazing incidence, all
smoothed surfaces will become a nearly 100% reflector
at a 90 degree angle of incidence.
For rough surfaces, reflectance will become increasingly
specular but we won’t approach 100% specular
reflection. What matters then is the angle between the
normal of each microfacet and the light, not the angle
between the normal of the «macrosurface» and the light.
Because the light rays are dispersed into different
directions, the reflection appears softer or dimmer. What
you get at a macroscopic level is a bit like the average of
all the Fresnel effect you would have for the microfacets.
For rough surfaces, reflectance will become increasingly
specular but we won’t approach 100% specular reflection
vol.1 — The theory of Physically—Based Rendering and Shading
F0 (Fresnel Reflectance at 0 Degrees)
When light hits a surface straight on or perpendicularly (0
degree angle), there is a percentage of that light that is
reflected back as specular. Using the Index of Refraction
(IOR) for a surface, you can derive the amount that is
reflected back and this is referred to as
F0 (Fresnel 0) as shown in figure 09.
The amount of light that is refracted
into the surface is referred to a 1-F0.
The F0 range for most common
dielectrics will be from 0.02 — 0.05 and
for conductors the F0 range will be
0.5-1.0. Thus, the reflectivity of a
surface is determined by the refractive
index as shown in the following
equation from Sebastien Lagarde’s
«Feeding a Physically-based Shading
Model» blog post as shown in figure 10.
It is the F0 reflectance value that we
are concerned with in regards to
authoring our textures. Non-metals
(dielectrics/insulators) will have a
greyscale value and metals (conductors)
will have an RGB value. With regards to
PBR and from an artistic interpretation
of reflectance, we can state that for a
common smooth dielectric surface, F0 will reflect
between 2% and 5% of light and 100% at grazing angles
as was shown in figure 09.
The dielectric (non-metal) reflectance values don’t
actually change very drastically. In fact, when altered by
roughness the actual changes in value can be hard to
see. However, there is a difference in the values. In
figure 11, you can see a chart that shows the F0 ranges
for both metal and non-metal materials.
Notice that the ranges for non-metals do not deviate
from each other drastically. Gemstones are an exception
as they have higher values. We will discuss F0 as it
specifically relates to conductors and insulators a bit later.
vol. 1 — The theory of Physically—Based Rendering and Shading
When creating materials for PBR, I find it helpful to think in terms of metal or non-metal. I simply ask myself if the
surface is metal or not. If it is, I follow one set of guidelines and if it’s not, I follow another. This can be a rather
simplistic approach as some materials may not fall into these categories such as metalloids, but in the overall process
of creating materials, distinguishing between metal and non-metal is a good approach and metalloids are an exception.
To set up guidelines for materials, we first must understand what we are trying to create. With PBR, we can look at
the properties of metals (conductors) and non-metals (insulators) to derive this set of guidelines.
Conductors and Insulators (Metals and Non-Metals)
Metals (conductors) are good conductors of heat and
electricity. Simply put, the electric field in conducting
metals is zero and when an incoming light wave made of
electric and magnetic fields hits the surface, it is partially
reflected and all the refracted
light is absorbed. The reflectance
value for polished metal is going
to be high at a range of about
70-100% reflective as shown in
figure 12.
Some metals absorb light at
different wavelengths. For
example, gold absorbs blue light
at the high-frequency end of the
visible spectrum so it appears
yellow as a result. However,
since the refracted light is
absorbed, the color tint of
metals come from the reflected
light and thus in our maps, we
don’t give metals a diffuse color.
For example, in the specular/
gloss workflow, raw metal is set
to black in the diffuse map and
the reflectance value is a tinted
color value in the specular map.
With metals, the reflectance
value will be RGB and can be tinted. Since we are
working within a physically-based model, we need to use
real-world measured values for the metal reflectance in
our maps.
Another important aspect with metals in terms of
texturing is that metal can corrode. This means that
weathering elements can play a large role in the
reflective state of metal. If the metal rusts for example,
this changes the reflective state of the metal and the
corroded areas are then treated as a dielectric material as
shown in figure 13.
Also, metal that is painted is not treated like a metal but
rather a dielectric as well. The paint acts as a layer on
top of the raw metal. Only the raw metal exposed from
chipped away paint is treated as metal. The same goes
for dirt on the metal or any matter that obscures the raw
metal.
I stated above that I always ask myself if a material is a
metal or not. However, to be more precise, the question
should also inquire the state of the metal such as is it
painted, rusted or covered in dirt/grease. The material
will be treated as dielectric if it is not raw metal and there
could be some blending between metal and non-metal
depending on the weathering.
Refracted light is absorbed, the color tint of metals come from
the reflected light and thus in our maps, we don’t give metals a
diffuse color
Weathering elements can play a
large role in the reflective state of
metal
vol.1 — The theory of Physically—Based Rendering and Shading
Non-metals (insulators/dielectrics)
are poor conductors of electricity.
The refracted light is scattered and/
or absorbed (often re-emerging from
the surface) and thus they reflect a
much smaller amount of light than
metals and will have an albedo color.
We stated earlier that the value for
common dielectrics would be around
2-5% based on the F0 as computed
by the index of refraction. These
values are contained within the
linear range of 0.017-0.067 (40-75
sRGB) as shown in figure 14. With
the exception of gemstones, most
dielectrics will not be greater than
4%.
Just as with metals, we need to use real-world measured
values, but it can be difficult to find an IOR for other
materials that are not transparent. However, the value
between most common dielectric materials doesn’t
change drastically, so we can utilize a few guidelines to
follow in terms of reflectance values, which we will cover
in volume two.
The value for common dielectrics is
around 2-5% based on the F0 as
computed by the Index of
Refraction (IOR)
vol. 1 — The theory of Physically—Based Rendering and Shading
Linear space rendering can take up an entire article all on its own. So, we won’t go in-depth into the specifics.
However, the important takeaway is that computations are calculated in linear space.
Simply put, linear space rendering provides correct math for lighting calculations. It’s about creating an environment
that allows light to behave as it does in the real world. In linear space, the gamma is 1.0. However, for this to look
correct to our eyes, the linear gamma needs to be shifted. Gamma-encoded space (sRGB) compensates for images
that are displayed on a computer screen. The value of the image is adjusted for display.
When computing color values and performing operations on colors, all computations should be performed in linear
space. A simple way to look at it is that if an image is to be displayed in the render such as base color or diffuse, then
these maps need to be set as sRGB. What happens in Substance is that if the image is tagged as sRGB, it will be
converted to linear for calculations and then set back to sRGB for display. However, when you store mathematical
values that purely denote surface attributes in a texture such as roughness or metallic, then these maps must be set
as linear.
Substance handles the conversion between linear/sRGB space for inputs automatically as well gamma-correction on
the computed result in the rendered viewport. As the artist, you don’t need to worry about the internal working of
linear-space computations and conversions in the Substance pipeline. When using Substance materials via the
Substance Integration plugin, the conversions for linear space are also handled automatically.
However, it’s important to understand the process, as when Substance maps are utilized as exported bitmaps and not
Substance materials, you may need to manually handle the conversions depending on the renderer you are using. You
need to know that base color/diffuse maps are sRGB and the rest are linear.
Now that we have explored the basic theory behind the physics, we can derive some key factors for PBR.
1. Energy Conservation. A reflected ray is never brighter than the value it had when it first hit
the surface. Energy Conservation is handled by the shader.
2. Fresnel. The BRDF is handled by the shader. The F0 reflectance value has minimal change
for most common dielectrics and falls within a range of 2% — 5%. The F0 for metals is a high
value ranging from 70-100%.
3. Specular intensity is controlled through the BRDF, roughness or glossiness map and the F0
reflectance value.
4. Lighting calculations are computed in linear space. All maps that have gamma-encoded
values such as base color or diffuse are usually converted by the shader to linear, but you may
have to make sure that the conversion is properly done by checking the appropriate option
when importing the image in your game engine or renderer. Maps that describe surface
attributes such as roughness, glossiness, metallic and height should be set to be interpreted as
linear.
When using Substance materials via the Substance Integration
plugin, the conversions for linear space are also handled
automatically.
vol.1 — The theory of Physically—Based Rendering and Shading
1. Physically-Based Shading at Disney Brent Burley, Walt Disney Animation Studios.
https://disney-animation.s3.amazonaws.com/library/s2012_pbs_disney_brdf_notes_v2.pdf
2. Microfacet Models for Refraction through Rough Surfaces
http://www.cs.cornell.edu/~srm/publications/EGSR07-btdf.pdf
3. Feeding a Physically-Based Shading Model by Sebastien Lagarde
Feeding a physically based shading model
4. An Introduction to BRDF Models by Daniël Jimenez Kwast
http://hmi.ewi.utwente.nl/verslagen/capita-selecta/CS-Jimenez-Kwast-Daniel.pdf
Allegorithmic develops the new generation of 3D texturing software: Substance Painter, Substance
Designer and Bitmap2Material. With most AAA game studios using these tools, Substance has become the
standard for creating next-generation PBR (Physically Based Rendering) assets.
For more information on Substance, please visit our website at
www.allegorithmic.com
01 Май
Allegorithmic бесплатное PBR руководство обновлено
Компания Allegorithmic TA Wes McDermott обновила свои два бесплатных руководства по физическим материалам и рендерингу.
Вы можете прочитать их в Substance Academy: Volume 1 | Volume 2.
CGTELEGRAM
3DJOBS.RU
Tutorial 3djobs.ru
Последние новости о CG-индустрии, 3D-программном обеспечении, уроках, видеороликах, анимации, обзорах, продуктах VFX и многом другом.
Свет и Материя: Теория физически-корректного рендеринга и шейдинга
http://perevodvsem.ru/threads/the-comprehensive-pbr-guide-volume-1-the-theory-of-physically-based-rendering.635/
Это первая из двух частей это руководства, в которой сфокусируется на теории физически корректного рендеринга и шейдинга.
Это важно для нас, чтобы понимать, как лучи света взаимодействуют с поверхностью вещества, потому что наша работа как текстурщиков, при создании для создания текстуры, описать-воплотить эти свойства. Текстуры и материалы, которые мы создаём взаимодействуют со светом в наших виртуальных мирах и большее понимание того, как свет ведёт себя, способствует лучшему виду наших текстур. Мы начнём с рассмотрения луча сета и продвинемся до определения основных факторов для PBR.
Это руководство собрано Весом МакДермоттом параллельно протестировано экспертами в этой области
Инструкция по работе с PBR от Allegorithmic Том 2.
Свет и материя: Практические советы по созданию PBR текстур (5-я редакция)
http://perevodvsem.ru/threads/the-comprehensive-pbr-guide-volume-2-practical-guidelines-for-pbr-texturing.712/
Во второй Части мы обсудим практическое применение создаваемых нами PBR текстур, а так же получим набор основополагающих принципов, основанных на полученных знаниях из первой части руководства
Мы начнём с переосмысление PBR визуализации с художественной точки зрения. Далее поговорим о основополагающих рабочих процессах и принципах отображения «металистичности»/шероховатости и блеска/отражения для создания физически корректных текстурных карт.
Это руководство собрано Весом МакДермоттом параллельно протестировано экспертами в этой области
Книги перевел Helluvallyric
Акция! с 01.05.2023 по 31.05.2023
На время акции все завершённые переводы по расчётному взносу, а не по взносу после завершения. Любой готовый перевод можно приобрести. Клубом переведено 3400 курсов и книг.
Подробнее
Создание коммерческого 3D игрового персонажа в Blender
Это реальный персонаж для реальной игры, сделанный полностью в реальном времени со всеми заминками и решениями проблем от профессионального 3D-художника, который постоянно много говорит, так что имейте в виду!
Подробнее
Упражнения по рисованию окружения с Натаном Фоуксом
Укрепите свои творческие мускулы с Натаном Фоуксом, концепт-художником и цветовым стилистом студии DreamWorks, Disney, Blue Sky Studios и многих других!
Подробнее
Анатомия лица и портрет в Blender
Случалось ли вам часами лепить и текстурировать лицо, но сколько бы вы ни прикладывали усилий, результат выходил не таким, как вы хотели? Вы устали от того, что возитесь на месте и ваши навыки не растут? Тогда добро пожаловать на курс анатомии лица и портрета для художников…
Подробнее
Создание игры файтинга в Unity
В этом курсе я покажу вам, как создать файтинг игру в Unity. Мы создадим экран выбора персонажа, а также добавим ИИ, чтобы он мог сражаться с вами. А главное, мы сделаем им достойный уровень интеллекта, чтобы они были такие же эффективные, как и противники-люди.
Подробнее
Изучите OpenGL на Python для графики и игр
Зачем вам изучать OpenGL? Знание OpenGL откроет вам, что происходит «под капотом» других графических и игровых движков, даст вам превосходные навыки решения проблем и устранения неполадок в других приложен
Подробнее
Продвинутая анимация c Aaron Blaise
Если вы хотите поднять свои способности к анимации на новый уровень, то не стоит пропускать этот курс! Независимо от того, начинающий вы или опытный художник-аниматор, эти веселые и увлекательные видео научат вас чему-то новому!
Подробнее
Zbrush для 3D-печати: оживите свои 3D-модели
Вы заинтересованы в 3D-печати, но не знаете, с чего начать? Хотели бы вы создавать потрясающих персонажей, пропсы? В этом курсе мы узнаем всю необходимую информацию, чтобы воплотить ваши идеи в жизнь и в реальном мире благодаря технологии 3D-печати.
Подробнее
Введение в Speedtree
Мы начнем курс с основ Speedtree. Затем мы рассмотрим создание различной растительности деревьев, использование процедурного подхода и рисования от руки, кривые, ноды и генераторы, создание растительности для приложений VFX, а также игр в реальном времени.
Подробнее
Иллюстрация ключевого кадра для производства
Этот курс обучает студентов созданию красивых и кинематографичных иллюстраций ключевых кадров. С помощью сочетания техник рендеринга, мы работаем с важными элементами создания ключевого кадра, такими как композиция, цвет, настроение и освещение.
Подробнее
Знакомство с Massive Prime
В этом курс Reza Ghobadinic покажет ключевые аспекты работы с Massive Prime, поделиться с вами хитростями из продакшена для создания невероятных симуляций толпы для фильмов и TV.
Подробнее
Динамический эскиз 2 с Патриком Баллестерос
Основы рисования это самый важный аспект работы дизайнера. Этот курс опирается на уроки курса Динамический набросок 1, и продолжает практическое применение этих навыков для рисования на локации, чтобы создавать новые концепты на основе определенных тем.
Подробнее
Изучение создания игр с ИИ с помощью Python 3
Если вы хотите научиться создавать собственные игры с искусственным интеллектом с помощью Python, то этот курс для вас!
Подробнее
Полная инструкция для новичков по Blender 3.2
ривет, это Мортеза из АртСтудио. Вы должно быть одни из тех, кто ищет курс, который включает в себя самые важные темы в Blender. Именно поэтому мы создали пособие, которое способно сделать из новичка продвинутого пользователя в Blender 3.2.
Подробнее
Как усовершенствовать рисунок человеческого тела
Я делюсь с вами теми методами, которые сам использовал на протяжении многих лет при создании иллюстраций для комиксов, в процессе раскадровки, когда участвовал в создании телевизионных проектов.
Подробнее
Кинематографическое освещение в Maya
Привет, ребята, вы бы хотели создавать потрясающие визуализации, которые с гордостью можно размещать в своем портфолио? А научиться создавать композиции в кинематографичном стиле? Если да, то приветствую вас на этом курсе.
Подробнее
О клубе «Перевод всем»
Клуб «Перевод всем» — это площадка для совместного заказа переводов зарубежных видеокурсов и книг на русский язык. С 2014 года мы перевели 3400 видеокурсов и книг, по направлениям: CG|3D|VFX|CONCEPT ART|GAMEDEV|FILM|SOUND|IT|AI. В клубе работает 26 Переводчиков!
Подробнее
Завершено The Comprehensive PBR Guide. Volume 1: the Theory of Physically Based Rendering
Тема в разделе «Книги по 3D Графике», создана пользователем Antonio, 12/1/15.
Страница 1 из 3
-
Antonio
Администратор
- Регистрация:
- 12/8/14
- Сообщения:
- 37.826
- Симпатии:
- 8.020
- Пол:
- Мужской
- Язык №1:
- Русский
Инструкция по работе с PBR от Allegorithmic Том 1.
Свет и Материя: Теория физически-корректного рендеринга и шейдинга
После завершения заказа на перевод, сумма взноса по данному курсу 338 руб
Автор: Ninja Wes McDermott
Студия:
allegorithmic
Год: 2015
Страниц: 13
Язык: Английский
Это первая из двух частей это руководства, в которой сфокусируется на теории физически корректного рендеринга и шейдинга.
Это важно для нас, чтобы понимать, как лучи света взаимодействуют с поверхностью вещества, потому что наша работа как текстурщиков, при создании для создания текстуры, описать-воплотить эти свойства. Текстуры и материалы, которые мы создаём взаимодействуют со светом в наших виртуальных мирах и большее понимание того, как свет ведёт себя, способствует лучшему виду наших текстур. Мы начнём с рассмотрения луча сета и продвинемся до определения основных факторов для PBR.
Это руководство собрано Весом МакДермоттом параллельно протестировано экспертами в этой области
Обсуждение теории PBR, принципы и применение обсуждаются в специальном разделе нашего форумаСайт загрузки книги:
Книгу зарезервировал HunterWolf, книга переведена. Новая редакция переведена Helluvallyric
Также вас могут заинтересовать другие мои переводы схожей тематики:
— [Digital Tutors] Introduction to Substance Designer 4.6 [ENG-RUS]
— [The Gnomon Workshop] Substance Designer Texture Creation [ENG-RUS]
— [Allegorithmic] Substance Designer Intermediate-Advanced Tutorials [ENG-RUS]
— [Digital Tutors] Creating a Tileable Material in Substance Designer [ENG-RUS]
— [Digital Tutors] Introduction to Substance Painter [ENG-RUS]
— [The Gnomon Workshop] Introduction to Substance Painter [ENG-RUS]
— [Digital Tutors] Physically Based Rendering in Substance Painter [ENG-RUS]
— [Digital Tutors] Creating Animal Fur for Games in Substance Painter [ENG-RUS]
— [Allegorithmic] What’s New in Substance Designer 5, Wha’s New in Substance Painter 1.4 [Eng-Rus]
— The Comprehensive PBR Guide. Volume 2: Practical Guidelines for PBR Texturing
— [Allegorithmic] Substance with Unity [ENG-RUS]
— [Digital Tutors] Physically Based Shading for Unity Using Substance Designer [ENG-RUS]
— [Digital Tutors] Game Asset Production Pipeline for Unity [ENG-RUS]
— [Allegorithmic] Substance in UE4 [ENG-RUS]
———————
Если вы хотите узнать чуть больше о PBR(S)и программах от Allegorithmic, вас может помочь данная тема Про PBR и иже с нимПоследнее редактирование модератором: 22/3/22
-
Antonio
Администратор
- Регистрация:
- 12/8/14
- Сообщения:
- 37.826
- Симпатии:
- 8.020
- Пол:
- Мужской
- Язык №1:
- Русский
-
Antonio
Администратор
- Регистрация:
- 12/8/14
- Сообщения:
- 37.826
- Симпатии:
- 8.020
- Пол:
- Мужской
- Язык №1:
- Русский
Переводчик был заменён, из-за этого и цена поменялась
-
Magomed M. M
Магистр клуба
- Регистрация:
- 29/12/14
- Сообщения:
- 112
- Симпатии:
- 19
- Пол:
- Мужской
- Язык №1:
- Русский
А этот курс вообще к какой программе относится?.. Будет ли полезен для тех кто работает в 3дс макс и вирей..
-
Donster
Штрафник
- Регистрация:
- 30/1/15
- Сообщения:
- 25
- Симпатии:
- 5
- Пол:
- Мужской
- Язык №1:
- Russian
Компания Allegorithmic разрабатывает и выпускает программные пакеты для создания и обработки текстур.
В данном разделе ГАЙД (письменное руководство).Отвечая на вопрос “Будет ли полезен для тех кто работает в 3дс макс и вирей ?” — думаю что ДА.
-
HunterWolf
Переводчик
- Регистрация:
- 11/11/14
- Сообщения:
- 2.271
- Симпатии:
- 379
- Пол:
- Мужской
- Язык №1:
- Английский
- Язык №2:
- Русский)
На счёт вирея довольно сомнительно придётся заново перестраивать все материалы, там абсолютно разные система работы с глосивностью и спекуляром, в это мони и хороши что можно быстро просто настроить эти качество матов. С виреем же дело другое это куда как более широкие и точные настройки ибо вирей это ренде в картинку в основном а визикл который тут это интерактивная динамика
-
HunterWolf
Переводчик
- Регистрация:
- 11/11/14
- Сообщения:
- 2.271
- Симпатии:
- 379
- Пол:
- Мужской
- Язык №1:
- Английский
- Язык №2:
- Русский)
100% перевел 20% процентов картинки верстки 0.0001% сделал
-
HunterWolf
Переводчик
- Регистрация:
- 11/11/14
- Сообщения:
- 2.271
- Симпатии:
- 379
- Пол:
- Мужской
- Язык №1:
- Английский
- Язык №2:
- Русский)
Народ записывайтесь кто тут есть во вторурую часть что бы я её сразу же тоже делать начал
-
Antonio
Администратор
- Регистрация:
- 12/8/14
- Сообщения:
- 37.826
- Симпатии:
- 8.020
- Пол:
- Мужской
- Язык №1:
- Русский
-
HunterWolf
Переводчик
- Регистрация:
- 11/11/14
- Сообщения:
- 2.271
- Симпатии:
- 379
- Пол:
- Мужской
- Язык №1:
- Английский
- Язык №2:
- Русский)
Перевод закончил, планирую в конце следующей недели сборы
-
x.lom
Заказчик
- Регистрация:
- 3/3/15
- Сообщения:
- 1
- Симпатии:
- 1
- Пол:
- Мужской
- Язык №1:
- russian
А это не тоже самое? ******
Только уже на русском.
Последнее редактирование модератором: 9/3/15
-
Ozzyy
Член клуба
- Регистрация:
- 25/12/14
- Сообщения:
- 24
- Симпатии:
- 26
- Пол:
- Мужской
- Язык №1:
- Русский
Источник один и тот же. А вот на сколько точный и полный перевод там я не уверен, а в HunterWolf’е я уверен на 100%.
Последнее редактирование модератором: 9/3/15
-
alexdesign
Заказчик
- Регистрация:
- 27/11/14
- Сообщения:
- 146
- Симпатии:
- 146
- Пол:
- Мужской
- Адрес:
- СССР
- Язык №1:
- Русский
- Язык №2:
- Английский (со словарем)
А статьи по второй книге на русском нет ?
-
Ozzyy
Член клуба
- Регистрация:
- 25/12/14
- Сообщения:
- 24
- Симпатии:
- 26
- Пол:
- Мужской
- Язык №1:
- Русский
Нету, но возможно на том сайте и вторую тоже переведут. Для не знающих: там 1 книга разделена на 2 части, а не 2 части — 2 книги.
-
HunterWolf
Переводчик
- Регистрация:
- 11/11/14
- Сообщения:
- 2.271
- Симпатии:
- 379
- Пол:
- Мужской
- Язык №1:
- Английский
- Язык №2:
- Русский)
Это не тоже самое, во всяком случаи на русском не тоже самое, тоже самое было бы если бы я перевел и выложил на том сайте, на сколько там все и как переведено я без понятия, буду проводить тут, я не просто так же переводил, кому надо выпишется кому не надо не выпишется мне не привыкать терять на переводах время и деньги.
Зы. сразу ответ на вопрос:
— «А чо ты хопуга забабки, а ани зопроста так делоют?»
— Я много чего тоже делаю за просто так, кто в моих переводах участвует в других местах тот знает, и делаю и побольше порой, но все на свете делать за просто так не могу, пробовал, но начинаются голодные обмороки через недельку деланья для всех всего за просто так -
d1myan
Магистр клуба
- Регистрация:
- 3/12/14
- Сообщения:
- 29
- Симпатии:
- 2
- Пол:
- Мужской
- Язык №1:
- русский
а в какой системе будет оплата?
-
Antonio
Администратор
- Регистрация:
- 12/8/14
- Сообщения:
- 37.826
- Симпатии:
- 8.020
- Пол:
- Мужской
- Язык №1:
- Русский
-
Cgiroki
Забанен
- Регистрация:
- 5/12/14
- Сообщения:
- 24
- Симпатии:
- 14
- Язык №1:
- rus
Ого, вещь. Хороший материал.
-
Magomed M. M
Магистр клуба
- Регистрация:
- 29/12/14
- Сообщения:
- 112
- Симпатии:
- 19
- Пол:
- Мужской
- Язык №1:
- Русский
-
Insert
Штрафник
- Регистрация:
- 29/1/15
- Сообщения:
- 13
- Симпатии:
- 2
- Пол:
- Мужской
- Язык №1:
- Русский
Что-то я проморгал. Сколько бы стоил перевод 300 страниц? 115 000р?
Сравню потом качество.
Страница 1 из 3
The Comprehensive PBR Guideby Allegorithmic — vol. 1Light and Matter : The theory of Physically-Based Rendering and Shading Cover by Gaëtan Lassagne, written by Wes McDermott
Table of Contents• Light Rays — 2• Absorption and Scattering (Transparency and Translucency) — 3• Diffuse and Specular Reflection — 4 Microfacet Theory — 5• Color — 6• BRDF — 6• Energy Conservation — 7• Fresnel Effect — 7 F0 (Fresnel Reflectance at 0 Degrees) — 8• Conductors and Insulators (Metals and Non Metal) — 9 Metals — 9 Non-Metals — 10• Linear Space Rendering — 11• The Key Factors — 11• References — 12Page 1 Technical edit by: Cyrille Damez and Nicolas Wirrmann vol. 1 — The theory of Physically-Based Rendering and Shading
Light and MatterThe theory of Physically-Based Rendering and ShadingLight is a complex phenomenon as it can exhibit properties of both a wave and a particle. As a result, different modelshave been created to describe the behavior of light. As texture artists, we are interested in the Light Ray Model as itdescribes the interaction of light and matter. It’s important for us to understand how light rays interact with surfacematter because our job is to create textures that describe a surface. The textures and materials we author interactwith light in our virtual worlds and the more we understand about how light behaves, the better our textures will look.In this guide, we will discuss the theory behind the physics through which physically-based rendering models arebased upon. We will start with a light ray and work up to defining the key factors for PBR.Light RaysThe Light Ray Model states that a light ray has the When a light ray hits a surface, either or possibly both oftrajectory of a straight line in homogeneous transparent these things can happen:media such as air. The Light Ray Model also says that theray will behave in a predictable manner when 1. The light ray is reflected off the surface and travelsencountering surfaces such as opaque objects or passing in a different direction. It follows the Law of Reflection,through a different medium such as air to water. This which states that the Angle of Reflection is equal to themakes it possible to visualize the path the light ray will Angle of Incidence (Reflected Light).follow as it moves from a starting point to where iteventually changes into another form of energy such as 2. The light ray passes from one medium to another inheat. the trajectory of a straight line (Refracted Light).The light ray that hits a surface is called the Incident Ray At this point, we can state that light rays split into twoand the angle that at which it hits is called the Angle of directions: reflection and refraction. At the surface, theIncidence as shown in figure 01. ray is either reflected or refracted and it can beA light ray is incident on a plane interface between two eventually absorbed by either medium. However,media. absorption doesn’t occur at the surface.Figure 01 Page 2 vol.1 — The theory of Physically-Based Rendering and Shading
Absorption and Scattering (Transparency and Translucency)When traveling in an inhomogeneous medium or hopefully clean, you can open your eyes and see at atranslucent material, light can be absorbed or scattered: fairly good distance through the clear water. However,1. With absorption, the light intensity decreases as it is let’s imagine that same pool hasn’t been cleaned in achanged into another form of energy (usually heat), and while and the water is dirty. The dirt particles scatter theits color changes as the amount of light absorbed light and thus make the clarity of the water much lower.depends on the wavelength, but the direction of the ray The further light travels in such a medium/material, thedoesn’t change. more it is absorbed and/or scattered. Therefore, object2. With scattering, the ray direction is changed randomly, thickness plays a large role in how much the light isthe amount of deviation depending on the material. absorbed or scattered. A thickness map can be used toScattering randomizes light direction but the intensity describe object thickness to the shader as shown in figuredoesn’t change. An ear is a good example. The ear is thin 02.(absorption is low), so you can see the scattered lightpenetrating out of the back of the ear. If there is no Object thickness plays a large rolescattering and the absorption is low, rays can pass in how much the light is absorbeddirectly through the surface such as with glass. For or scatteredexample, if you are swimming in a pool, which isFigure 02Diffuse and Specular Reflection Rougher surfaces will have larger and dimmer looking highlights. Smoother surfaces will keep specularSpecular reflection is light that has been reflected at the reflections focused, which can appear to look brighter orsurface, as we discussed above in the Light Ray section. more intense when looked at from the proper angle.The light ray is reflected off the surface and travels in a However, the same total amount of light is reflected indifferent direction. It follows the Law of Reflection, which both cases as shown in figure 03.states that on a perfectly planar surface the Angle of Diffuse reflection is light that has been refracted. TheReflection is equal to the Angle of Incidence. However, it light ray passes from one medium to another and isis important to note that most surfaces are irregular and scattered multiple times inside the object. Then it isthat the reflected direction will therefore vary randomlybased on the surface roughness. This changes lightdirection, but the light intensity remains constant.Page 3 vol. 1 — The theory of Physically-Based Rendering and Shading
refracted again out of the object making its way back to sense, does not take surface roughness into account, butthe original medium at approximately the same point there are diffuse reflection models that do such as Oren-where it went through the first time as shown in figure Nayar.04. Materials that have both high scattering but lowDiffuse materials are fairly absorbent, meaning that if the absorption are sometimes referred to as «participatingrefracted light travels for too long in that material, it has media» or «translucent materials». Examples of these area good chance of being completely absorbed. This means smoke, milk, skin, jade and marble. Rendering of thethat if the light ever comes out of that material, it has latter three may be possible with the additional modelingprobably not traveled very far from the point of entry. of subsurface scattering where the difference betweenThat’s why the distance between the entry and exit the ingoing and outgoing point of the light ray is nopoints can be neglected. The Lambertian model, which is longer neglected. Accurate rendering of medium withusually used for diffuse reflection in a traditional shading highly varying and very low scattering and absorption like smoke or fog may require even more expensive methods such as Monte Carlo simulations. Rougher surfaces will have larger and dimmer looking highlightsFigure 03Figure 04 Page 4 vol.1 — The theory of Physically-Based Rendering and Shading
Microfacet TheoryIn theory, both diffuse andspecular reflection are dependenton the surface irregularitieswhere the light rays intersect. Inpractice though, the effect ofroughness on diffuse reflection ismuch less visible because of thescattering happening inside thematerial. As a result, theoutgoing direction of the ray isfairly independent of surfaceroughness and the incidentdirection. The most commonmodel for diffuse reflection(Lambertian) completely neglectsit.In this document, we havereferred to these surfaceirregularities as surfaceroughness. Actually, it is often Figure 05referred to by several names the microsurface normal and the half normal are equalsuch as roughness, smoothness, glossiness or micro- will contribute as some will be blocked by shadowingsurface, depending on the PBR workflow in use, but they (light direction) or masking (view direction) as isdescribe the same aspect of a surface, which is sub-texel illustrated in figure 05.geometric detail. The surface irregularities at a microscopic level cause light diffusion. For example, blurred reflections are dueThese surface irregularities are authored in the roughness to scattered light rays. The rays are not reflected inor glossiness map depending on the workflow you are parallel so we perceive the specular reflection as blurredusing. A physically-based BRDF is based on the as shown in figure 06.microfacet theory which supposes that a surface iscomposed of small-scaled planar detail surfaces of The surface irregularities at avarying orientation called microfacets. Each of these microscopic level cause lightsmall planes reflects light in a single direction based on diffusionits normal as shown in figure 05.Micro-facets whose surface normal is oriented exactlyhalfway between the light direction and view direction willreflect visible light. However, not all microfacets wherePage 5 Figure 06 vol. 1 — The theory of Physically-Based Rendering and Shading
ColorThe color of a surface(which is to say the colorthat we see) is due towhich wavelengths areemitted by the light source,which are absorbed by theobject and which othersare reflected bothspecularly and diffusely.The remaining reflectedwavelengths are what wesee as color.For example, the skin of anapple mostly reflects redlight. Only the redwavelengths are scatteredback outside the apple skinand the others are Figure 07absorbed by it as shown in figure 07.It also has bright specular highlights the same color as Substance PBR shaders use thethe light source because with materials like the skin of an GGX microfacet distributionapple that are not electrical conductors (dielectrics),specular reflection is almost independent of wavelength.Therefore, for such materials the specular reflection isnever colored. We will discuss more about the differenttype of materials (metals and dielectrics) in later sections.BRDF rays can be considered as reversals of each other without affecting the outcome of the BRDF.A Bidirectional Reflectance Distribution Function (BRDF) The BRDF used by Substance’s PBR shaders is based onsimply put is a function that describes the reflectance Disney’s «principled» reflectance model, which is based onproperties of a surface. In computer graphics, there are the GGX microfacet distribution. GGX provides one of thedifferent BRDF models some of which are not physically better solutions in terms of specular distribution in that itplausible. For a BRDF to be physically plausible, it must has a shorter peak in the highlight and a longer tail in thebe energy conserving and exhibit reciprocity. Forreciprocity, I am referring to the Helmholtz Reciprocity falloff, which is to say that it looksprinciple, which states that incoming and outgoing light more realistic as shown in figure 08. Object GGX provides one of the better solutions in terms of specular distributionFigure 08 vol.1 — The theory of Physically-Based Rendering and Shading Page 6
Energy ConservationEnergy Conservation plays a vital role in physically-based rendering solutions. It states that the total amount of lightre-emitted by a surface (reflected and scattered back) is less than the total amount it received. In other words, thelight reflected off the surface will never be more intense than it was before it hit the surface. As artists, we don’t haveto worry about controlling Energy Conservation. This is one of the nice aspects of PBR in that energy conservation isalways enforced by the shader. It’s part of the physically-based model and it allows us to focus more on art ratherthan physics.Fresnel EffectThe Fresnel reflection factor also plays a vital role in Fresnel is not something that we control in PBR as we didphysically-based shading as a coefficient of the BRDF. in traditional shading. Again, this is another physicsThe Fresnel Effect as observed by French physicist aspect that is handled for us by the PBR shader. When itAugustin-Jean Fresnel states that the amount of light you comes to viewing a surface at a grazing incidence, allsee reflected from a surface depends on the viewing smoothed surfaces will become a nearly 100% reflectorangle at which you perceive it. at a 90 degree angle of incidence.For example, think of a pool of water. If you look straight For rough surfaces, reflectance will become increasinglydown, perpendicular to the water surface, you can see specular but we won’t approach 100% speculardown to the bottom. Viewing the water surface in this reflection. What matters then is the angle between themanner would be at zero degrees or normal incidence, normal of each microfacet and the light, not the anglenormal being the surface normal. Now, if you look at the between the normal of the «macrosurface» and the light.pool of water at a grazing incidence, more parallel to the Because the light rays are dispersed into differentwater surface, you will see that the specular reflections directions, the reflection appears softer or dimmer. Whaton the water surface become more intense and you may you get at a macroscopic level is a bit like the average ofnot be able to see below the surface of the water at all. all the Fresnel effect you would have for the microfacets.Figure 09 For rough surfaces, reflectance will become increasingly specular but we won’t approach 100% specular reflectionPage 7 vol. 1 — The theory of Physically-Based Rendering and Shading
F0 (Fresnel Reflectance at 0 Degrees)When light hits a surface straight on or perpendicularly (0 roughness the actual changes in value can be hard todegree angle), there is a percentage of that light that is see. However, there is a difference in the values. Inreflected back as specular. Using the Index of Refraction figure 11, you can see a chart that shows the F0 ranges(IOR) for a surface, you can derive the amount that is for both metal and non-metal materials.reflected back and this is referred to as Notice that the ranges for non-metals do not deviateF0 (Fresnel 0) as shown in figure 09. from each other drastically. Gemstones are an exceptionThe amount of light that is refracted as they have higher values. We will discuss F0 as itinto the surface is referred to a 1-F0. specifically relates to conductors and insulators a bit later.The F0 range for most commondielectrics will be from 0.02 — 0.05 andfor conductors the F0 range will be0.5-1.0. Thus, the reflectivity of asurface is determined by the refractiveindex as shown in the followingequation from Sebastien Lagarde’s»Feeding a Physically-based ShadingModel» blog post as shown in figure 10.It is the F0 reflectance value that weare concerned with in regards toauthoring our textures. Non-metals(dielectrics/insulators) will have agreyscale value and metals (conductors)will have an RGB value. With regards toPBR and from an artistic interpretation Figure 10of reflectance, we can state that for acommon smooth dielectric surface, F0 will reflectbetween 2% and 5% of light and 100% at grazing anglesas was shown in figure 09.The dielectric (non-metal) reflectance values don’tactually change very drastically. In fact, when altered byFigure 11 vol.1 — The theory of Physically-Based Rendering and Shading Page 8
Conductors and Insulators (Metals and Non-Metals)When creating materials for PBR, I find it helpful to think in terms of metal or non-metal. I simply ask myself if thesurface is metal or not. If it is, I follow one set of guidelines and if it’s not, I follow another. This can be a rathersimplistic approach as some materials may not fall into these categories such as metalloids, but in the overall processof creating materials, distinguishing between metal and non-metal is a good approach and metalloids are an exception.To set up guidelines for materials, we first must understand what we are trying to create. With PBR, we can look atthe properties of metals (conductors) and non-metals (insulators) to derive this set of guidelines. Refracted light is absorbed, the color tint of metals come from the reflected light and thus in our maps, we don’t give metals a diffuse colorMetalsMetals (conductors) are good conductors of heat and top of the raw metal. Only the raw metal exposed fromelectricity. Simply put, the electric field in conducting chipped away paint is treated as metal. The same goesmetals is zero and when an incoming light wave made of for dirt on the metal or any matter that obscures the rawelectric and magnetic fields hits the surface, it is partially metal.reflected and all the refractedlight is absorbed. The reflectance I stated above that I always ask myself if a material is avalue for polished metal is going metal or not. However, to be more precise, the questionto be high at a range of about should also inquire the state of the metal such as is it70-100% reflective as shown in painted, rusted or covered in dirt/grease. The materialfigure 12. will be treated as dielectric if it is not raw metal and there could be some blending between metal and non-metalSome metals absorb light at depending on the weathering.different wavelengths. Forexample, gold absorbs blue light Weathering elements can play aat the high-frequency end of the large role in the reflective state ofvisible spectrum so it appears metalyellow as a result. However,since the refracted light isabsorbed, the color tint ofmetals come from the reflectedlight and thus in our maps, wedon’t give metals a diffuse color.For example, in the specular/gloss workflow, raw metal is setto black in the diffuse map andthe reflectance value is a tintedcolor value in the specular map. Figure 12With metals, the reflectancevalue will be RGB and can be tinted. Since we areworking within a physically-based model, we need to usereal-world measured values for the metal reflectance inour maps.Another important aspect with metals in terms oftexturing is that metal can corrode. This means thatweathering elements can play a large role in thereflective state of metal. If the metal rusts for example,this changes the reflective state of the metal and thecorroded areas are then treated as a dielectric material asshown in figure 13.Also, metal that is painted is not treated like a metal butrather a dielectric as well. The paint acts as a layer onPage 9 vol. 1 — The theory of Physically-Based Rendering and Shading
Figure 13Non-MetalsNon-metals (insulators/dielectrics) Figure 14are poor conductors of electricity.The refracted light is scattered and/or absorbed (often re-emerging fromthe surface) and thus they reflect amuch smaller amount of light thanmetals and will have an albedo color.We stated earlier that the value forcommon dielectrics would be around2-5% based on the F0 as computedby the index of refraction. Thesevalues are contained within thelinear range of 0.017-0.067 (40-75sRGB) as shown in figure 14. Withthe exception of gemstones, mostdielectrics will not be greater than4%.Just as with metals, we need to use real-world measured The value for common dielectrics isvalues, but it can be difficult to find an IOR for other around 2-5% based on the F0 asmaterials that are not transparent. However, the value computed by the Index ofbetween most common dielectric materials doesn’t Refraction (IOR)change drastically, so we can utilize a few guidelines tofollow in terms of reflectance values, which we will coverin volume two. vol.1 — The theory of Physically-Based Rendering and Shading Page 10
Linear Space RenderingLinear space rendering can take up an entire article all on its own. So, we won’t go in-depth into the specifics.However, the important takeaway is that computations are calculated in linear space.Simply put, linear space rendering provides correct math for lighting calculations. It’s about creating an environmentthat allows light to behave as it does in the real world. In linear space, the gamma is 1.0. However, for this to lookcorrect to our eyes, the linear gamma needs to be shifted. Gamma-encoded space (sRGB) compensates for imagesthat are displayed on a computer screen. The value of the image is adjusted for display.When computing color values and performing operations on colors, all computations should be performed in linearspace. A simple way to look at it is that if an image is to be displayed in the render such as base color or diffuse, thenthese maps need to be set as sRGB. What happens in Substance is that if the image is tagged as sRGB, it will beconverted to linear for calculations and then set back to sRGB for display. However, when you store mathematicalvalues that purely denote surface attributes in a texture such as roughness or metallic, then these maps must be setas linear.Substance handles the conversion between linear/sRGB space for inputs automatically as well gamma-correction onthe computed result in the rendered viewport. As the artist, you don’t need to worry about the internal working oflinear-space computations and conversions in the Substance pipeline. When using Substance materials via theSubstance Integration plugin, the conversions for linear space are also handled automatically.However, it’s important to understand the process, as when Substance maps are utilized as exported bitmaps and notSubstance materials, you may need to manually handle the conversions depending on the renderer you are using. Youneed to know that base color/diffuse maps are sRGB and the rest are linear. When using Substance materials via the Substance Integration plugin, the conversions for linear space are also handled automatically.Key FactorsNow that we have explored the basic theory behind the physics, we can derive some key factors for PBR. 1. Energy Conservation. A reflected ray is never brighter than the value it had when it first hit the surface. Energy Conservation is handled by the shader. 2. Fresnel. The BRDF is handled by the shader. The F0 reflectance value has minimal change for most common dielectrics and falls within a range of 2% — 5%. The F0 for metals is a high value ranging from 70-100%. 3. Specular intensity is controlled through the BRDF, roughness or glossiness map and the F0 reflectance value. 4. Lighting calculations are computed in linear space. All maps that have gamma-encoded values such as base color or diffuse are usually converted by the shader to linear, but you may have to make sure that the conversion is properly done by checking the appropriate option when importing the image in your game engine or renderer. Maps that describe surface attributes such as roughness, glossiness, metallic and height should be set to be interpreted as linear.Page 11 vol. 1 — The theory of Physically-Based Rendering and Shading
References1. Physically-Based Shading at Disney Brent Burley, Walt Disney Animation Studios. https://disney-animation.s3.amazonaws.com/library/s2012_pbs_disney_brdf_notes_v2.pdf2. Microfacet Models for Refraction through Rough Surfaces http://www.cs.cornell.edu/~srm/publications/EGSR07-btdf.pdf3. Feeding a Physically-Based Shading Model by Sebastien Lagarde http://seblagarde.wordpress.com/2011/08/17/feeding-a-physical-based-lighting-mode/4. An Introduction to BRDF Models by Daniël Jimenez Kwast http://hmi.ewi.utwente.nl/verslagen/capita-selecta/CS-Jimenez-Kwast-Daniel.pdf Allegorithmic develops the new generation of 3D texturing software: Substance Painter, Substance Designer and Bitmap2Material. With most AAA game studios using these tools, Substance has become the standard for creating next-generation PBR (Physically Based Rendering) assets. For more information on Substance, please visit our website at www.allegorithmic.comvol.1 — The theory of Physically-Based Rendering and Shading Page 12