Texturing: Difference between revisions

From KSP 2 Modding Wiki
(Created page with "KSP2 graphics improved a lot, and for that they used textures, for parts we can use up to 6 textures. Diffusion, Metallic, Occlusion, Normal, Emission and Paint Map, the later being a custom texture used by the Scenery - Standard (Opaque) shader. == Diffusion texture == thumb|Diffusion texture for SORRY's MK2 RCS Block, by LuxStice. Overlayed with the Height Map and Ambient Occlusion to mimic the game's textures KSP2's diff...")
 
No edit summary
Line 2: Line 2:


== Diffusion texture ==
== Diffusion texture ==
[[File:MK2 RCS Block diffuse texture.png|thumb|Diffusion texture for SORRY's MK2 RCS Block, by LuxStice. Overlayed with the Height Map and Ambient Occlusion to mimic the game's textures]]
[[File:MK2_RCS_Block_diffuse_texture.png|thumb|351x351px]]
KSP2's diffusion map is pretty simple, it's a simple "mask" telling the shader where each color should be. This texture is used only when no paint is applied, Also, this texture is shown where there's a blue pixel in the Paint Map texture.
KSP2's diffusion map is pretty simple, it's a simple "mask" telling the shader where each color should be. This texture is used only when no paint is applied, Also, this texture is shown where there's a blue pixel in the Paint Map texture.


Line 18: Line 18:


== Metallic texture ==
== Metallic texture ==
[[File:MK2 RCS Block m.png|thumb|Metallic texture for SORRY's MK2 RCS Block, this texture features detailing visible only when downloaded]]
[[File:MK2 RCS Block m.png|thumb|Metallic texture for SORRY's MK2 RCS Block, this texture features detailing visible only when downloaded|349x349px]]
This texture tells the shader how reflective a given pixel should be, the higher the alpha on said pixel the more reflective it will be. Every pixel on this texture should be white and you should only change the '''opacity''' of the pixels. This is overwritten by the Paint Map's opacity when a pixel is marked as painted (either a green or red pixel).
This texture tells the shader how reflective a given pixel should be, the higher the alpha on said pixel the more reflective it will be. Every pixel on this texture should be white and you should only change the '''opacity''' of the pixels. This is overwritten by the Paint Map's opacity when a pixel is marked as painted (either a green or red pixel).


Line 33: Line 33:


== Normal/Bump texture ==
== Normal/Bump texture ==
[[File:MK2 RCS Block normal texture.png|thumb|SORRY's MK2 RCS Block normal texture, containing detailing such as metal edges, nails and small elevations]]
[[File:MK2 RCS Block normal texture.png|thumb|SORRY's MK2 RCS Block normal texture, containing detailing such as metal edges, nails and small elevations|353x353px]]
A bump texture is used to give or take height on a certain pixel, affecting how shadows are casted by and to it, also affects reflections. This texture should only contain detailing and its prefered over the use of extra meshes or geometry.
A bump texture is used to give or take height on a certain pixel, affecting how shadows are casted by and to it, also affects reflections. This texture should only contain detailing and its prefered over the use of extra meshes or geometry.

Revision as of 00:54, 25 May 2023

KSP2 graphics improved a lot, and for that they used textures, for parts we can use up to 6 textures. Diffusion, Metallic, Occlusion, Normal, Emission and Paint Map, the later being a custom texture used by the Scenery - Standard (Opaque) shader.

Diffusion texture

KSP2's diffusion map is pretty simple, it's a simple "mask" telling the shader where each color should be. This texture is used only when no paint is applied, Also, this texture is shown where there's a blue pixel in the Paint Map texture.

Tips and Tricks:
  • The base color used by the game is 0, 0, 0.98 (HSV)
  • The game overlays the diffusion texture with the ambient occlusion to be more RAM efficient.





Metallic texture

Metallic texture for SORRY's MK2 RCS Block, this texture features detailing visible only when downloaded

This texture tells the shader how reflective a given pixel should be, the higher the alpha on said pixel the more reflective it will be. Every pixel on this texture should be white and you should only change the opacity of the pixels. This is overwritten by the Paint Map's opacity when a pixel is marked as painted (either a green or red pixel).







Normal/Bump texture

SORRY's MK2 RCS Block normal texture, containing detailing such as metal edges, nails and small elevations

A bump texture is used to give or take height on a certain pixel, affecting how shadows are casted by and to it, also affects reflections. This texture should only contain detailing and its prefered over the use of extra meshes or geometry.