NoMansSky:Texture Formats: Difference between revisions

From Step Mods | Change The Game
Line 5: Line 5:
No Man's Sky uses mainly [https://en.wikipedia.org/wiki/DirectDraw_Surface DDS images] as texture maps but also accepts formats such as PNG, JPEG, and PSD as per [http://www.horde3d.org/docs/html/_formats.html Horde3D specification]. As such, it is highly recommended to use the Nvidia DDS plugin for Photoshop, GIMP, or any image editor of choice with DDS file handling capabilities.
No Man's Sky uses mainly [https://en.wikipedia.org/wiki/DirectDraw_Surface DDS images] as texture maps but also accepts formats such as PNG, JPEG, and PSD as per [http://www.horde3d.org/docs/html/_formats.html Horde3D specification]. As such, it is highly recommended to use the Nvidia DDS plugin for Photoshop, GIMP, or any image editor of choice with DDS file handling capabilities.


Due to the way shaders have been written, the arrangement of textures overall differ from what is more commonly known in other game engines. The most commonly used shader is called the Ubershader and functions similarly to Unity's Standard Shader (physically-based rendering) but with a few differences as discussed below and in the MATERIAL page.
Due to the way shaders have been written, the arrangement of textures overall differ from what is more commonly known in other game engines. The most commonly used shader is called the Ubershader and functions similarly to Unity's Standard Shader (physically-based rendering) but with a few differences as discussed below and in the [[NMS:Reference_Guides/MATERIAL_Files|MATERIAL]] page.


== Accepted Texture Maps ==
== Accepted Texture Maps ==

Revision as of 05:48, July 29, 2020

Template:TOC right

Texture Formats[edit | edit source]

No Man's Sky uses mainly DDS images as texture maps but also accepts formats such as PNG, JPEG, and PSD as per Horde3D specification. As such, it is highly recommended to use the Nvidia DDS plugin for Photoshop, GIMP, or any image editor of choice with DDS file handling capabilities.

Due to the way shaders have been written, the arrangement of textures overall differ from what is more commonly known in other game engines. The most commonly used shader is called the Ubershader and functions similarly to Unity's Standard Shader (physically-based rendering) but with a few differences as discussed below and in the MATERIAL page.

Accepted Texture Maps[edit | edit source]

Diffuse Map[edit | edit source]

The basic diffuse is practically the same as a basic 2D texture in most engines. The map contains RGB data containing the albedo colors for your object's texture. It is important to take note of the way channels are read by shaders.

  • RGB channels - color information for your albedo map.
  • Alpha channel - this channel is used for metalness, transparency, and emissive textures.
    All these material flags are read from the same channel; as such, you can't have all of these flags running at once.

Mask Map[edit | edit source]

The mask map contains other color information used by NMS.

  • Red channel - ambient occlusion bakes are attached here. As of Atlas Rises, most new textures no longer use an AO map and seem to just have this channel colored pure white (basically no AO).
  • Green channel - a gloss map is used here. Despite the material settings specifying this should be a roughness map, the way they look in the textures implies it's really a gloss map, basically an inverted roughness map.
  • Blue channel - has something to do with detail textures but is largely unused for most models.
    This channel appears to be for determining where custom colors are applied while base building
    • White - receives primary color
    • Grey - receives secondary color (#7b7b7b has been used successfully)
    • Black - retains original texture color
  • Alpha channel - (most likely unused, but unknown at this time)

Normal Map[edit | edit source]

As of the NEXT update, the Red and Green channels are flipped in the normal maps. In other words, whatever is usually in the Red channel should be placed in the Green channel and vice versa. Template:Notice Small

Terrain Texture Formats[edit | edit source]

The terrain texture files are located in >code>TEXTURES/ATLASES/TERRAIN.

These textures are slightly different to the normal textures used by the game as the are volume textures; each file contains 10 layers of textures.

There are three textures, each in a specific .DDS format:

Diffuse
Four CC | 4-bit DXT1 | 1-bit alpha
HSV
Four CC | 4-bit DXT1 | 1-bit alpha
These files appear to be HSV versions of the RGB diffuse map, however, this isn't confirmed.
Normal
Four CC | 8-bit DXT5
  • Red channel - most likely a heightmap for texture blending, but unconfirmed at this time
  • Green channel - normal map for X
  • Blue channel - appears to be an inverted specularity map, but unconfirmed at this time
  • Alpha channel - normal map for Y

Template:NMSPageClose