open3mod | Open 3D Model Viewer - A quick and powerful 3D model viewer | 3D Animation library
kandi X-RAY | open3mod Summary
kandi X-RAY | open3mod Summary
Open 3D Model Viewer - A quick and powerful 3D model viewer
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of open3mod
open3mod Key Features
open3mod Examples and Code Snippets
Community Discussions
Trending Discussions on open3mod
QUESTION
I want to use the DirectX model format in my OpenGL engine. I use Assimp to import the model files. I would like to use DirectX because the Assimp importer recognizes the different animations pretty well. If I have multiple animations in my Collada file (exported with the "Better Collada Exporter" for Blender), Assimp only recognizes one animation.
But, I have a strange problem concerning the import of DirectX model files. A video may describe it better...
This is how it looks when I export my blender file to Collada and import it via Assimp (correctly rendered):
https://www.dropbox.com/s/jvilcem4g7vjgdp/animation_collada.mp4?dl=0
This is the same blender file exported to DirectX model in my engine:
https://www.dropbox.com/s/3u6g9qmzuje5aap/animation_directx.mp4?dl=0
Somehow, I think the transformation matrices in the animation channels seem to be a bit off. It looks like they are rotated the wrong way (or on the wrong axis?)
Do you have any experience with this? I tried loading the DirectX file into open3mod model viewer, and it renders the animations perfectly.
Maybe there is some import config flag that I forgot to set? Maybe my Blender export settings are wrong? I export with:
- Right Handed
- Y-Up
Cheers and thanks for your help.
...ANSWER
Answered 2018-Mar-09 at 05:06Nevermind, I found a solution:
Assimp needs a true DirectX model file (left-handed, y-up), so my export settings in Blender are now: Link to Blender DirectX export settings
And in my import method (c#) I do:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install open3mod
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page