-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ofxAssimpModelLoader aiMatrix4x4ToOfMatrix4x4 #1358
Comments
are you sure? it seems like this would completely break all of the animation stuff that's currently supported. do you have a demo where the new one works, but the old one is broken? |
It's just not used by the addon, everything is done in assimp data types. so it doesn't break anything here is a simple testcase: aiMatrix4x4 aim;
aiMatrix4x4::Translation(aiVector3D(10, 5, 2), aim );
float mNow[16] = { aim.a1,aim.a2,aim.a3,aim.a4,
aim.b1,aim.b2,aim.b3,aim.b4,
aim.c1,aim.c2,aim.c3,aim.c4,
aim.d1,aim.d2,aim.d3,aim.d4 };
ofMatrix4x4 test;
test.set(mNow);
cout <<"current :"<<endl<< test << endl<< endl;
float mCorrect[16] = { aim.a1,aim.b1,aim.c1,aim.d1,
aim.a2,aim.b2,aim.c2,aim.d2,
aim.a3,aim.b3,aim.c3,aim.d3,
aim.a4,aim.b4,aim.c4,aim.d4 };
test.set(mCorrect);
cout <<"correct:"<<endl<< test << endl;
output: first is a scale matrix , second the correct translation current : correct: |
aha, i see there was a function called aiNodeToOfNode() where it was used, but the function is now commented out (maybe because this didn't work). i'll label this bite-size, and we can make the swap. thanks! |
Wow, this is about 10 years old! openFrameworks/addons/ofxAssimp/src/ofxAssimpUtils.h Lines 64 to 74 in dd09e97
|
line nr 86 this:
should be this
The text was updated successfully, but these errors were encountered: