mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-15 01:43:25 +00:00
[model] Fix reading vertices. 5th attempt. (1 - initial, 2 - initial + minus x, 3 - modern, 4 - Yakim's.)
This commit is contained in:
parent
0f06403862
commit
1c0bea8a9c
1 changed files with 13 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ static void load_translated(aim_vector3<float> &v, const buffer &b)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* update:
|
* update 1:
|
||||||
* AIM Coordinates (.mod file coord system):
|
* AIM Coordinates (.mod file coord system):
|
||||||
*
|
*
|
||||||
* 1st number - up vector (+Y) - 100% sure.
|
* 1st number - up vector (+Y) - 100% sure.
|
||||||
|
|
@ -108,9 +108,20 @@ static void load_translated(aim_vector3<float> &v, const buffer &b)
|
||||||
* This is Y-UP (RH?) axis system - eMax (same as eMayaYUp) in fbx.
|
* This is Y-UP (RH?) axis system - eMax (same as eMayaYUp) in fbx.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
READ(b, v.y);
|
/*
|
||||||
|
update 2:
|
||||||
|
obj -> .mod -> mod_converted -> obj
|
||||||
|
|
||||||
|
+y - up vector
|
||||||
|
-z - forward vector (parity odd)
|
||||||
|
-x - side? rh or lh?
|
||||||
|
*/
|
||||||
|
|
||||||
READ(b, v.x);
|
READ(b, v.x);
|
||||||
READ(b, v.z);
|
READ(b, v.z);
|
||||||
|
READ(b, v.y);
|
||||||
|
v.x = -v.x;
|
||||||
|
v.z = -v.z;
|
||||||
|
|
||||||
// after load we have eMayaYUp
|
// after load we have eMayaYUp
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue