© Abhishek Kumar 2020
A. KumarBeginning PBR Texturinghttps://doi.org/10.1007/978-1-4842-5899-6_3

3. Texturing Workflow

Abhishek Kumar1 
(1)
Varanasi, Uttar Pradesh, India
 

The 3D painting workflow for texturing has become popular because it is intuitive and easy to understand when you are painting your materials. To use it, you’ll need several types of texture maps that together make up a material. And with different types of texture maps come different types of texturing workflows. What we are going to focus on in this book is PBR texturing and two of its main types: the metallic-roughness workflow and the specular-glossiness workflow. But before we dive deep into these topics, I’ll talk about how texturing works.

3D printing, virtual reality, and modeling are popular nowadays. In all of these technologies, textures and patterns play a vital role. The method used to generate three-dimensional objects in two-dimensional projections is called UV mapping and is shown in this chapter. Bitmap textures are made up of pixels that are laid in an integral position (via x, y coordinates) of the UV map. Texture can be described as the physical attributes of a surface such as color, bumpiness, roughness, and reflectivity (Figure 3-1 and Figure 3-2).
../images/492314_1_En_3_Chapter/492314_1_En_3_Fig1_HTML.png
Figure 3-1

Texturing workflow

../images/492314_1_En_3_Chapter/492314_1_En_3_Fig2_HTML.jpg
Figure 3-2

Texturing workflow result

Game Texturing Pipeline

Let’s take a look at the process of creating a game asset. There are 11 steps to creating an entire game asset, as shown in Figure 3-3. Although our main focus is the texturing part here, in later chapters, we will cover everything from step 4 onward.

Here is a quick rundown of the process in brief. Game assets are created in a 3D modeling application; whether they are sculpted or poly modeled is entirely the choice of the artist. A sculpting or high poly detailing process will usually follow the creation process. The sculpted or high poly models are usually not imported into game engines as they will slow down the rapid rendering required for games. Instead, a low poly model is created on which you can bake down the details from the high poly model into normal maps. Baking is usually done in software such as Marmoset Toolbag, Substance Painter/Designer, xNormal, etc. In our case, we will be using Substance Painter. This baking process creates maps such as a curvature map, normal map, AO map, etc., which are further used in the texturing process. After texturing/painting is done, we can export and set up the materials and models in the render/game engine of our choice.
../images/492314_1_En_3_Chapter/492314_1_En_3_Fig3_HTML.png
Figure 3-3

Game asset creation pipeline

Useful Tips for Texture Artists

Every artist should remember two key points.
  • References study: Before starting the texturing, the artist should study the physical properties of textures from real-life examples and specifically look at how light hits the surface of the model.

  • Your own library: Whenever you are traveling around the globe and find anything interesting, capture the images and save them in your own library. These can be photographs anything such as wood, bricks, fur, clouds, cloth, tiles, etc. Later, with the help of the Photoshop software, you can tweak the images and use the texture for further enhancements.

You can also access the web sites in Figure 3-4 to get 3D material and texture libraries to build up your own texture and material library.
../images/492314_1_En_3_Chapter/492314_1_En_3_Fig4_HTML.png
Figure 3-4

Examples of available 3D material and texture libraries

What Is UV Mapping?

A UV map is a 2D representation constructed from the UV coordinates of the surface of a 3D model, as shown in Figure 3-5. The U represents the horizontal axis, and the V represents the vertical axis of the 2D space. Each UV has a corresponding point in 3D space called a vertex .
../images/492314_1_En_3_Chapter/492314_1_En_3_Fig5_HTML.jpg
Figure 3-5

UV unwrapping

Types of Textures

Texture refers to the immediate tangible feel of a surface and the visual impression of simple stimuli such as color, orientation, and intensity in an image.

There are many types of textures as per the requirements of 3D. When you work in the gaming industry, the following types of maps are essential to generate hyper-realistic results (see Figure 3-6). The types of maps also depend on the game engine or studio workflow.
  • Diffuse map

  • Albedo map

  • Transparency/alpha map

  • Specular map

  • Bump map

  • Normal map

  • Displacement map

  • Ambient occlusion map

The following are more detailed descriptions of the map types:
  • Diffuse: Diffuse maps represent the overall color of the model; this is the most common type of texture. A bitmap image, captured from a camera, painted, or scanned, can be used as a diffuse map to portray the photorealistic quality of a 3D object. Diffuse has the information of light and shadow.

  • Albedo: An albedo map is similar to a diffuse map. It has had all the lighting and shadow information removed from it and is literally the color values of the image.

  • Opacity or transparency: A transparency map depends upon the gray values of an image. Usually the black parts will be opaque, and the white parts will be visible.

  • Specular: A specular map defines the shininess of the surface at a certain position.

  • Bump: A bump map is used to create the relief on the surface. We can use a bump map to generate the illusion of depth on the surface of the 3D model. A bump map is generally used to generate virtual scratches, cracks, tiny surface details, etc. The virtual depth depends upon the camera angle. When the value is close to white, the result looks like it is protruding out of the surface, and black tends to push it into the surface. It’s not vertex dependent.

  • Normal: This type of map is used to project high-resolution model details on a low-resolution model. On the basis of chorochromatic map, a normal map texture changes the normal of a pixel.

  • Displacement: A displacement map is vertex dependent. This map generates physical depth based on the grayscale value of the map.

  • Ambient occlusion: An ambient occlusion map is used to generate the shadows or darkness caused by the closeness of objects.

../images/492314_1_En_3_Chapter/492314_1_En_3_Fig6_HTML.jpg
Figure 3-6

Examples of a variety of maps for game texturing

A few more types of maps are useful for creating the best results in game production pipelines such as ID maps, parallax maps, glossiness maps, vector displacements, height maps, fuzz maps, roughness maps, cavity maps, curvature maps, translucency or thickness maps, etc.

Now you know about the maps, so what maps are most important and commonly used in production? If you using a PBR metallic-roughness workflow, then you will need the albedo, metallic, roughness, normal, and ambient occlusion maps. For a PBR specular-glossiness workflow, you will need the diffuse, specular, glossiness, normal, and ambient occlusion maps. Which workflow you use depends on your engine of choice. The Unity game engine uses the specular-glossiness workflow, while Unreal Engine 4 uses the metallic-roughness workflow. In the next chapter, you will see how texturing works in movies and in games and how they are different from each other.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.204.208