-
-
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 aiNode bugfix #1720
ofxAssimpModelLoader aiNode bugfix #1720
Conversation
…ng transformations and animations. found this link on the correct way of rendering assimp data => http://www.lighthouse3d.com/cg-topics/code-samples/importing-3d-models-with-assimp/ which fixes these issues.
awesome - thanks @julapy +1 for assimp fixes. would love better support for animation. I've never been able to get a animated model to load in OF ( minus the samples ones we ship with ). okay to merge! |
ofxAssimpModelLoader aiNode bugfix
i needed these changes too. just tested this and it looks good! |
@ofTheo, give animations a go now with the new fix, its working well for me. i also find the naming of the classes confusing... im also looking at creating a ofxAssimpAnimation class that can deal with playing animations, |
great - that all sounds good to me! happy to get a branch going which we can both hack away on. |
@ofTheo sounds good! |
awesome, these changes are super welcome @julapy. another feature that would be really nice is dynamic bone manipulation, which i've done a little work with and posted on the forum about last year. |
also - to further complicate things. which is not backwards compatible. |
i was going to suggest that since you are going to do a major rework perhaps it's worth to move to 3.0? |
what if we moved away from ofxAssimpModelLoader addon and left it as is, |
@kylemcdonald do you have a link for the bone manipulation code? |
we could also base ofxAssimpModelLoader on the new ofxAssimp to not have 2 different versions of the library |
I think it would be too confusing for users... you have an ofxAssimpModelLoader, and an ofxAssimp, which one to choose? then someone starts a fork without actually forking, one more version floating around (it happened with other ofx addons already).... (I think I'm being influenced by Python :P) btw about compatibility: what does that entail, precisely? as far as I can tell, only the Assimp API changed, not some project file format or so. and since we are wrapping that into our OF-specific ofxAssimp API, this shouldn't matter as long as we change our (public-facing) API as little as possible, right? I found
|
i think one big problem is that the naming of the addon and its classes is not consistent with what it does. @bilderbuchi, i see your point about it getting confusion having the two version... ofxAssimp should support the same API as ofxAssimpModelLoader, and anything redundant we can wrap up in the OF deprecation function and remove later on. so it should be straight forward to port over any ofxAssimpModelLoader dependent code to ofxAssimp. we should also just have the one version, so once ofxAssimp is ready, it will replace ofxAssimpModelLoader. thoughts? |
I like ofxAssimp as a name. simple and to the point. |
found a pretty big bug in ofxAssimpModelLoader where the aiNodes were being completely ignored.
this was breaking basic node transformations and animations.
this article shows how to render assimp data correctly,
http://www.lighthouse3d.com/cg-topics/code-samples/importing-3d-models-with-assimp/
and ive implemented a fix based on that.
also had to make a couple tweaks to the example models which were set on the wrong axis... im assuming to compensate for the previous incorrect behaviour.
ofxAssimpModelLoader still needs some more loving... it seems its only be setup to work for bone animations and a load of other functionality has been ignored.