Repository navigation
Binary Mesh and Asset Pipeline
Mohammed Sahil edited this page Nov 21, 2026
·
1 revision
To bypass runtime OBJ/STL parsing overhead, all 3D geometries are serialized into pre-baked binary formats (.bin).
[ Magic Identifier: 4 bytes (e.g. 'MSHB') ]
[ Vertex Count: uint32 ]
[ Vertex Data: VertexCount * sizeof(PackedVertex) ]
Where PackedVertex is defined as:
struct PackedVertex {
float x, y, z; // Position (12 bytes)
float nx, ny, nz; // Normal vector (12 bytes)
float u, v; // Texture coordinates (8 bytes)
uint32_t color; // Packed RGBA color (4 bytes)
};-
apply_natural_arms.py: Adjusts skeletal orientation for astronaut meshes. -
smooth_astronauts.py: Calculates averaged surface normals to eliminate hard polygonal creases. -
pose_editor.py: Generates keyframe poses (astronaut_pose1.binthroughastronaut_pose4.bin).
Martian: High-performance real-time C++ / OpenGL cinematic space visualizer in 2.39:1 letterbox.