No Man's Sky Modding Wiki
Tag: Visual edit
Tag: Visual edit
Line 13: Line 13:
 
* 3 - Tangents - packed using the opengl format code 36255 (INT_2_10_10_10_REV)
 
* 3 - Tangents - packed using the opengl format code 36255 (INT_2_10_10_10_REV)
 
* 4 - Bitangents (?) - packed using the opengl format code 3121 (GL_HALF_NV or GL_UNSIGNED_BYTE ?)
 
* 4 - Bitangents (?) - packed using the opengl format code 3121 (GL_HALF_NV or GL_UNSIGNED_BYTE ?)
* 5 - Blend Indices - packed with unknown format code
+
* 5 - Blend Indices - packed using the opengl format code 3121 (GL_HALF_NV or GL_UNSIGNED_BYTE ?)
* 6 - Blend Weights - packed with unknown format code
+
* 6 - Blend Weights - packed using the opengl format code 5131 (IEEE half-float)
 
[[Category:Object MBIN's]]
 
[[Category:Object MBIN's]]

Revision as of 12:40, 18 July 2018

GEOMETRY files, usually in the form NAME.GEOMETRY.MBIN.PC are MBIN files contaning 3D model data. The Blender Import Plugin is responsible for writing all data here, rather than doing so manually and as such, the GEOMETRY file is usually left untouched. An empty SCENE will work but still require an empty GEOMETRY file. On the other hand, No Man's Model Viewer is also capable of reading these files as well as exporting to a more usable *.obj file.

In the VertexLayout and SmallVertexLayout there are a number of VertexElement nodes.

Each node corresponds to a set of data in the VertexStream and SmallVertexStream.

There are two values that should be of interest that we record the various possibilies for:

SemanticID:

  • 0 - Vertices - packed using the opengl format code 5131 (IEEE half-float)
  • 1 - UV's - packed using the opengl format code 5131 (IEEE half-float)
  • 2 - Normals - packed using the opengl format code 36255 (INT_2_10_10_10_REV)
  • 3 - Tangents - packed using the opengl format code 36255 (INT_2_10_10_10_REV)
  • 4 - Bitangents (?) - packed using the opengl format code 3121 (GL_HALF_NV or GL_UNSIGNED_BYTE ?)
  • 5 - Blend Indices - packed using the opengl format code 3121 (GL_HALF_NV or GL_UNSIGNED_BYTE ?)
  • 6 - Blend Weights - packed using the opengl format code 5131 (IEEE half-float)