====== Assets/Materials/Textures ====== A (Creator-) Texture is a collection of 2D images (maps) that enriches a Material or a Geometry. These maps help to improve the surface representation. For one and the same Texture, a number of real Files (maps) can be uploaded in [[ig.creator:assets:files|Assets/Files]]. The image size of a map file should always be a power of 2, such as 512x512. Each map can be provided in different resolutions that will be used in different steps during the data creation. * *_std.* - standard resolution of a map. This map is used inside all configurators * *_high.* - high resolution for renderings. it is recommended to provide them as 4K ====== Maps for Materials ====== For a Material following maps are allowed: * __Diffuse map__ (standard.jpg/diffuse_std.jpg, diffuse_high.jpg ) * __Roughness map__ (roughness_std.jpg, roughness_high.jpg) * __Normal map__ (normals_std.png, normals_high.png) * __Delta Diffuse map__ (diffuse_delta_std.jpg, diffuse_delta_high.jpg) * __Delta Roughness map__ (roughness_delta_std.jpg, roughness_delta_high.jpg) * __Alpha map__ (alpha_std.jpg) {{ :ig.creator:assets:materials:materialresult.png?200 |}} ** File formats ** The texture maps can be provided as one as the following file formats: * __jpg__ - is a compressed file format. This can be used to lower the data size of an image. In case of providing maps in this format make sure a texture of 1024x1024 doesn't use more than 500kB for storage. * __png__ - is an uncompressed file format. It is recommended to use this only for normal maps. ** Patch size ** This defines how often a texture is repeated on a geometry with its given dimensions. Asume a board that has the dimensions in front view 50x150 cm. In case the patch size is 15x15 cm this patch repats 10 time in the height direction and 3.x times in the width dimension In case the patch size is 50x50 cm this patch repats 3 time in the height direction and 1 times in the width dimension |{{:ig.creator:assets:materials:patchsize50x50.jpg?200| Patch size 50x50 cm}}| {{ :ig.creator:assets:materials:patchsize15x15.jpg?200 | Patch size 15x15 cm}}| |{{ :ig.creator:assets:materials:materialpatchsize.png?400 | }}|| Usually the maps provides the color of a cover or wood. For these two categories following patch sizes are assumed as default: * Cover (fabric, leather, velvet, etc): **15x15cm** patch * Wood: **50x50cm** patch |{{:ig.creator:assets:materials:patchsize50x50.jpg?200| Patch size 50x50 cm}}| {{ :ig.creator:assets:materials:patchsize15x15.jpg?200 | Patch size 15x15 cm}}| |{{ :ig.creator:assets:materials:materialpatchsize.png?400 | }}|| ===== Diffuse Map ===== {{:ig.creator:assets:materials:standard.jpg?100|}} A diffuse map holds the diffuse color of a material. If it is defined, it replaces diffuse color given in the [[ig.creator:assets:materials:parameters|Parameters]] in the material. * Diffuse maps are provided as **JPG** * The standard image size is **1024x1024** px * Diffuse maps **mustn't** hold color profile information ===== Roughness Map ===== {{:ig.creator:assets:materials:roughness_std.jpg?100|}} A roughness map holds the information for roughness of a material. It is provided as a gray scale texture, where black (0,0,0) is glossy and white (1,1,1) is rough. :!: Make sure not to mix up a roughness map with a glossiness map. They are inversed to each other. :!: :!: A roughness map is not the same as a specular map and cannot be replaced with it 1 to 1 :!: ===== Normal Map ===== {{:ig.creator:assets:materials:normals_std.png?100|}} A normal map holds additional information to describe the surface of a geometry. Usually they are used together with low poly surfaces and enrich them with extra details. The specific color of a normal map, given in R,G, B color, describes the direction of a corresponding vector, given in X,Y,Z coordinates. Normal maps are provided as **png**. |{{ :ig.creator:assets:materials:templatenormalmap.png?200 |}}|{{ :ig.creator:assets:materials:normalmap.png?200 |}}| ===== Delta Diffuse Map ===== {{:ig.creator:assets:materials:diffuse_delta_std.jpg?100|}} This is a special map provided as a gray scale image. It is multiplyed with the diffuse map or color to create differences in the diffuse reflection. In combination with a color, the gray scale 0.5 must represent the original incomming color. All values different from this will lighten or darken the diffuse color. In detail the following process is done: The tabele shows a test delta map with the gray scale values from black to white. The gradient in the middle has the neutral value 0.5 (#808080, 128) and will not change the diffuse color later. |image| {{ :ig.creator:assets:materials:deltamaptest.png?400 |}} ||||| |hex | #000000 | #404040 | #808080 | #c0c0c0 | #ffffff | |0-1 | 0 | 0.25 | 0.5 | 0.75 | 1 | |0-256 | 0 | 64 | 128 | 192 | 256 | By multiplying this gray scale map with 2, the following factors will be used for each gradient. |image| {{ :ig.creator:assets:materials:deltamaptest_2.png?400 |}} | As a last step a diffuse color will be multiplied to the delta result. This is the raw color. |image| {{ :ig.creator:assets:materials:deltamaptest_diff.png?400 |}} ||| |hex | #e16823 ||| |0-1 | r 0.882 | g 0.408 | b 0.137 | |0-256 | r 225 | g 104 | b 35 | This is the result. Notice the gradient in the middle is the same color as the raw color. The gradients on the left side darken the diffuse color. The gradients on the right side are lighten the diffuse color. |image| {{ :ig.creator:assets:materials:deltamaptest_2diff.png?400 |}} | With this in minde, always make sure the diffuse color is representing the neutral color without any special map applied. It is not allowed to lighten or darken the diffuse map in a preprocessing and getting the original color by adding the diffuse delta map! This avoids wrong representations when this kind of map constellation is rendered by different renderers and material interpreters. This kind of map does not need to have the same patch size as the diffuse map. This kind of map can be used to create velvet effects. ===== Delta Roughness Map ===== {{:ig.creator:assets:materials:roughness_delta_std.jpg?100|}} This is a special map provided as a gray scale image. It is multiplyed with the current roughness of a surface to create differences on the surface roughness. The gray scale 0.5 keeps the overall roughness unchanged. All values different from this will smooth or add more roughness onto the surface. This kind of map does not need to have the same patch size as the diffuse map. This kind of map can be used to create velvet effects. ===== Alpha Map ===== {{:ig.creator:assets:materials:alpha_std.png?100|}} This is a special map provided as a gray scale image. It holds information for transparency, where black is a transparency of 100% and white of 0%. Alpha maps can be used to simulate single stitches of a seam. :!: **For more detailed information see the OpenConfiguration material specification** :!: [[https://openconfiguration.org/|OpenConfiguration]] ====== Special Handlings ====== Under certain cercumstances the naming convention for materials can differ from the standard behavior. For this a special texture mode is used.\\ For more information, check the [[ig:gfx:assetloader|IG.Gfx.AssetLoader]] texture modi and the [[ig.guidelines:suppliers| suppliers]] guidelines.