18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 03:52:52 +01:00

refactor(model): the new model format is EU07M (.eu07m), not E4D

E4D read as the next version of E3D, which the format isn't meant to be tied to; EU07M goes with the world format .eu07.
The format isn't released, so nothing reads the old name.

- The extension .eu07m, the magic EU7M (the four bytes of the header), model/eu07m/ with eu07m_*.{h,cpp},
  namespace eu07m, docs/eu07m-format.md, tests/unit/test_eu07m.cpp.
- The command line -eu07m convert|dump|validate|diff, TModel3d::LoadFromEU07M, and the key modelformat eu07m|legacy
  of eu07.ini (Global.modelformat_eu07m).
- Nothing else changes: the sections, the records and the components are the same, so a converted file needs only its
  magic and its extension changed.

Unit tests 1189/1189.
This commit is contained in:
maj00r
2026-11-28 22:02:05 +01:00
parent 5185d69dc9
commit 92cc2dcc28
29 changed files with 300 additions and 300 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ std::uint64_t constexpr bottom_lifetime{1800};
std::uint64_t constexpr texture_lifetime{600};
// the size of the vertices of the banks (gfx::basic_vertex)
VkDeviceSize constexpr vertex_stride{48};
// a bank of the compact layout (the E4D models): the positions apart (12 bytes), the attributes (gfx::compact_attributes, 16 bytes)
// a bank of the compact layout (the EU07M models): the positions apart (12 bytes), the attributes (gfx::compact_attributes, 16 bytes)
VkDeviceSize constexpr compact_position_stride{sizeof(glm::vec3)};
VkDeviceSize constexpr compact_attribute_stride{sizeof(gfx::compact_attributes)};
// the vertices of the record are the attributes of the compact layout (rt_reflections.glsl, RT_FLAG_COMPACT)