Home Random Page


CATEGORIES:

BiologyChemistryConstructionCultureEcologyEconomyElectronicsFinanceGeographyHistoryInformaticsLawMathematicsMechanicsMedicineOtherPedagogyPhilosophyPhysicsPolicyPsychologySociologySportTourism






Most Common Workflows

1. Albedo, Specular/Reflection, Roughness/Gloss, Normals, anything else (i.e. detail normals, separate AO/cavity, etc depending on need and shader)

2. Albedo/Specular in 1 map, Metalness, Roughness/Gloss, Normals, anything else like #1

3. Any other workflow is purely depicted by the project, studio, engine, etc.

 

 

Guidelines for Creating Different Materials(source)

The material substance is defined to a huge degree by the specular color. Use a reference table to pick the appropriate color for the desired material type.

 

Non-Metals

● Non-metal has monochrome/gray specular color. Never use colored specular for anything except certain metals unless certain of what you are doing

[Specular] The sRGB color range for most non-metal materials is usually between 40 and 60. It should never be higher than 80/80/80.

● A good clean diffuse map is required.

Metals

● The specular color for metal should always be above sRGB 180.

● Metal can have colored specular highlights (for gold and copper for example).

● Metal has a black or very dark diffuse color.

 

 

Energy Conservation(source)

The concept of energy conservation states that an object can not reflect more light than it receives.

For practical purpose, more diffuse and rough materials will reflect dimmerand wider highlights, while smootherand more reflective materialswill reflect brighterand tighter highlights.

 

 

Diffuse/Albedo(source)

Diffuse/Albedo maps are generally gamma space and are quite flat colour wise.

Albedo is pure colour, no lighting information baked in like we used to do with diffuse maps. (source)

 

The diffuse color defines how bright a surface is when lit directly by a white light source with an intensity of 100%. More physically speaking, it defines which percentage for each component of the RGB spectrum does not get absorbed when light scatters underneath the surface. A diffuse map is always required. In most cases the diffuse color in the material editor should be set to white (255/255/255).

 

For pure metalmaterials, the diffusecolor should be blackas explained before. Rusty metal/oxidation however needs some diffuse color.

 

Please note the values below are a little outdated.(source)

An albedo map definesthe colorof diffused light. One of the biggest differences between an albedo map in a PBR system and a traditional diffuse map is the lack of directional light or ambient occlusion. Directional light will look incorrect in certain lighting conditions, andambient occlusionshould be added in the separate AO slot.

 

The albedo map will sometimes define more than the diffuse color as well, for instance, when using a metalness map, the albedo map defines the diffuse color for insulators (non-metals) and reflectivity for metallic surfaces.

 

 

Specular/Reflection/Reflectivity(source) (source 2)



Specular/Reflection/Reflectivitymaps generally are Gamma space.

Reflectance is again, a measured value for a material. there are plenty of sources online which you can get the measured reflective colours for various materials. Typically speaking, most non-metals fall into a white 0.04 range (linear), while metals (having no albedo and being pure reflection) have much higher, coloured reflectance. (source)

 

Reflectivity is the percentage of light a surface reflects. All types of reflectivity (aka base reflectivity or F0) inputs, including specular, metalness, and IOR, define how reflective a surface is when viewing head on, while Fresnel defines how reflective a surface is at grazing angles.

 

A spec map won’t be needed to directly set reflectivity (when using metalness workflow) but is still required in the alternative workflow. The spec map is combined with your diffuse in the form of the albedo map in the metalness workflow.

 

Specular color is a physical value now which is constantfor a single typeof material. So in essence, it will look quite flat compared to pre-PBR spec maps.

 

The specular color defines how much light gets reflected immediately from the surface when the light source is directly above the surface. This is the minimum specular intensity, under grazing angles it will increase due to the Fresnel effect. As the specular color is specific for a certain type of material, it can also be considered as a mask for the type of material/substance. The specular color is a physical value which should be picked directly from a reference table. As such, it does not leave much artistic freedom.

 

Please note the values below are a little outdated. (source)

 

Its important to note how narrowthe rangeof reflectivityis for insulative (non-metal) materials (see below). Combined with the concept of energy conservation it’s easy to conclude that surface variation should generally be represented in the microsurface map, not the reflectivity map. For a given materialtype, reflectivitytends to remainfairly constant. Reflection color tends to be neutral/white for insulators, and colored only for metals. Thus, a map specifically dedicated to reflectivity intensity/color (commonly called a specular map) may be dropped in favor of a metalness map.

 

Traditional specular maps offer more control over the the specular intensity and color, and allow greater flexibility when trying to reproduce certain complex materials. The main drawback to a specular map is that it generally will be saved as a 24 bit file resulting in more memory use. It also requires artists to have a very good understanding of physical material properties to get the values right, which can be a positive or negative depending on your perspective.

 

Most non-metals reflect 2% to 5% of the light as specular and the highlight is monochrome/gray. As the variation is so little, it is often enough to use a constant specular color instead of a specular texture map. However, if metal and non-metal are mixed in a single texture, it is required to use a specular map, as metal has a much brighter specular color than non-metal. If a specular map is used, the specular color in the material editor should be set to white which is 255/255/255, as it gets multiplied with the values from the specular map and would otherwise lower the physical values from the map.

 

 

Index of Refraction (IOR)(source)

IOR is another way to define reflectivity, and is equivalent to the specular and metalness inputs. The biggest difference from the specular input is that IOR values are defined with a difference scale. TheIOR scale determines how fast light travels through a material in relation to a vacuum. An IOR value of 1.33 (water) means that light travels 1.33 times slower through water than it does the empty vacuum of space. You can find more measured values in the Filmetrics Refractive Index Database.

 

Insulators(non-metal), IOR values do not require color information, and can be entered into the index field directly, while the extinction field should be set to 0.

 

Metalsthat have color reflections, will need a value for the red, green and blue channels. This can be done with an image map input (where each channel of the map contains the correct value). The extinction value will also need to be set for metals, which you can usually find in libraries that contain IOR values.

 

Using IORas opposed to specular or metalness input isgenerally not advised, as it is not typically used in games, and getting the correct value in a texture with multiple material types is difficult. IOR input is supported in Toolbag 2 more for scientific purposes than practical.

 

 

Metalness(source)

Metalnessmaps generally are Gamma space.

 

A metalness map is not more or less physically accurate than a standard specular map. It is, however, a concept that may be easier to understand, and a metalness mapcan be packed into a grayscaleslot to save memory. The drawbackto using a metalness map over a specular map is a lossof controlover the exact values for insulative materials.(refer to the above image)

 

Protips(source)

When using a metalness map:

Insulative surfaces - pixels set to 0.0 (black) in the metalness map – are assigned a fixed reflectance value (linear: 0.04 sRGB: 0.06) and use the albedo map for the diffuse value.

 

Metallic surfaces – pixels set to 1.0 (white) in the metalness map – the specular color and intensity is taken from the albedo map, and the diffuse value is set to 0 (black) in the shader. Gray values in the metalness map will be treated as partially metallic and will pull the reflectivity from the albedo and darken the diffuse proportionally to that value (partially metallic materials are uncommon).

 

Metalness maps should use values of 0 or 1 ( some gradationcan be okay for transitions). Materials like painted metal should notbe set to metallicas paint is an insulator. The metalness valueshould representthetop layer ofthe material.

 

Marmoset Earthquake’s testimonial(source)

So the way the metalness thing works is basically this:

A. Your albedo map is both your diffuse and spec map

B.The metanless map defines which sections are metal and which are not. But what its really doing is the more metal it is, the more it darkens the diffuse and pulls the specular intensity and color from the albedo. Black values in the metalness map represent non-metals, and for those, a low, fixed specular intensity is used (I don't remember the value off hand).

 

However, If you use mid-values in the metalness mask you can sort of hack it into doing what you want. You don't need to stick to black or white. But then it will pull the spec color from there as well, which works for things like Christmas ornaments, but not really for glossy plastics.

 

But really, if you want fine control over the specular color and specular intensity for non-metals, you shouldn't be using the metalness function, you should use the standard blinn-phong, as that will let you do exactly that. With energy conservation on, and a bright spec intensity value with blinn-phong, it will basically work the same as the metalness thing (ie: it will darken the diffuse to make it appear more metal-ish)

 

Is Metalness Map a requirement?(source)

No, a metalness map is just one methodof determining reflectivity and is generally not more or less physically accurate than using a specular color/intensity map.

 

If a metalness map is used, the spec and albedo maps are combined into one, thus the need for a separate spec map is negated.

 

 

Gloss/Roughness/Microsurface(source) (source 2)

Gloss/Roughness/Microsurfacemaps should generally be linear space (sRGB off), but its not a big deal if you use sRGB/Gamma space.

Gloss defines the roughness/smoothness of a surface.

Roughness is calculated in a specifically measure way and requires 0 - 1 input only. (source)

 

Typically all the detail is located here. Scratches, wear, finger prints, etc are located in this map. It is more or less the same pre-PBR.

 

A a low gloss value means that the surface is rough while a high value means the surface is very smooth and shiny. The roughness influences the size and the intensity of specular highlights. The smoother/glossier a surface is, the smaller the specular highlight will be. A more narrow/smaller highlight will at the same time be brighter in order to obey to the rules of energy conservation.

 

A gloss map is used and creates interesting and plausible variation on the specular highlights.

 

Most materials should have a gloss map, as it can give a lot of good variation to the shading. Gloss is closely related to normal maps, as high frequency details in a normal can create some feeling of roughness as well. However, gloss is more the micro-scale roughness of the material.

Note how the specular highlight becomes smaller and brighter with an increasing gloss value, making the material look smoother (Image Source: Real-Time Rendering)

 

Please note the values below are a little outdated.(source)

Here we see the how the principles of energy conservation are affected by the microsurface of the material, roughersurfaces will show wider, but dimmerspecular reflections while smoothersurfaces will show brighter,but sharperspecular reflections.

 

Depending on what engine you’re authoring content for, your texture may be called a roughness map instead of a gloss map. In practice there is little difference between these two types, though a roughness map may have an inverted mapping, ie: dark values equal glossy/smooth surfaces while bright values equal rough/matte surfaces. By default, Toolbag expects white to define the smoothest surfaces while black defines roughest surfaces, if you’re loading a gloss/roughness map with an inverted scale, click the invert check box in the gloss module.

 

 

Ambient Occlusion(source)

Ambient occlusion(AO) represents large scale occluded light and is generally baked from a 3d model.

 

Adding AOas a separate map as opposed to baking it into the albedo and specular maps allows the shader to use it in a more intelligent way. For instance, the AO function only occludes ambient diffuse light (the diffuse component of the image based lighting system in Toolbag 2), not direct diffuse light from dynamic lights or specular reflections of any kind.

 

AO should generally not be multiplied on to specular or gloss maps. Multiplying AO onto the specular map may have been a common technique in the past to reduce inappropriate reflections (e.g. the sky reflecting on an occluded object) but these days local screen space reflections do a much better job of representing inter-object reflections.

 

 

Cavity(source)

A cavity map represents small scale occluded light and is generally baked from a 3d model or a normal map. An easy and painless way of creating a cavity map would be by using NDO2 wherein it generates it via a normal map.

 

A cavity map should only contain the concave areas (pits) of the surface, and not the convex areas, as the cavity map is multiplied. The content should be mostly white with darker sections to represent the recessed areas of the surface where light would get trapped. The cavity map affects both diffuse and specular from ambient and dynamic light sources.

 

Alternatively, a reflection occlusion map can be loaded into the cavity slot, but be sure to set the diffuse cavity value to 0 when doing this.

 

 

Linear Lighting - Linear Intensity Response(source)

When you are using gamma space lighting, the colors and textures that are supplied to a shader have a gamma correction applied to them. When they are used in a shader the colors of high luminance are actually brighter than they should be for linear lighting. This means that as light intensity increases the surface will get brighter in a non linear way. This leads to lighting that can be too bright in many places, and can also give models and scenes a washed-out feel. When you are using linear lighting, the response from the surface remains linear as the light intensity increases. This leads to much more realistic surface shading and a much nicer color response in the surface.

 

Typically PBR shaders use Linear Colour Space.(source)

 

 


Date: 2015-12-24; view: 1224


<== previous page | next page ==>
Gamma and Their Effect on Electronics | Example of Texture Maps
doclecture.net - lectures - 2014-2024 year. Copyright infringement or personal data (0.01 sec.)