mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 18:47:06 +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:
@@ -307,7 +307,7 @@ decode_compact( position_array const &Positions, compact_array const &Attributes
|
||||
auto const count { std::min( Positions.size(), Attributes.size() ) };
|
||||
vertices.reserve( count );
|
||||
for( std::size_t idx = 0; idx < count; ++idx ) {
|
||||
// the first and the third column of the rotation matrix of the quaternion, made unit by 2 / |q|^2 (e4d::decode_qtangent)
|
||||
// the first and the third column of the rotation matrix of the quaternion, made unit by 2 / |q|^2 (eu07m::decode_qtangent)
|
||||
auto const &packed { Attributes[ idx ].qtangent };
|
||||
auto const x { packed[ 0 ] / 32767.f };
|
||||
auto const y { packed[ 1 ] / 32767.f };
|
||||
|
||||
Reference in New Issue
Block a user