Skip to content
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

Blender exporter works with Skeleton animation but wrong rotation with regular objects #13577

Closed
3 of 13 tasks
giangm9 opened this issue Mar 13, 2018 · 4 comments
Closed
3 of 13 tasks

Comments

@giangm9
Copy link

giangm9 commented Mar 13, 2018

Description of the problem

Blender 2.78, 2.79
I have a blender file with 2 skeleton animation and 2 monkeys
peek 2018-03-13 11-13
when i export from blender to threejs, here is the result
https://giangm9.github.io/blender3js/public/examples/anim.html
as you can see, only 1 object was exported correctly, that is the object in with original at (0, 0, 0)
The rotation of the 2 monkey also wrong
The blend file is downloadable at the top-left corner of the page
Here is the export options, i export from command line

{'addon_version': (1, 5, 0),
 'animations': 'pose',
 'applyModifiers': True,
 'blendShapes': True,
 'bones': True,
 'cameras': True,
 'colors': True,
 'compression': None,
 'customProperties': True,
 'embedAnimation': True,
 'embedGeometry': True,
 'embedTextures': False,
 'enablePrecision': True,
 'exportTextures': True,
 'extraVertexGroups': '',
 'faceMaterials': True,
 'faces': True,
 'frameIndexAsTime': False,
 'frameStep': 1,
 'geometryType': 'geometry',
 'hierarchy': True,
 'indent': True,
 'indexType': 'Uint16Array',
 'influencesPerVertex': 2,
 'lights': True,
 'logging': 'disabled',
 'maps': True,
 'materials': True,
 'mixColors': True,
 'morphTargets': False,
 'normals': True,
 'precision': 6,
 'scale': 1.0,
 'scene': True,
 'skinning': True,
 'textureFolder': 'tests/blend/textures',
 'tracks': True,
 'uvs': True,
 'vertices': True}
Three.js version
  • Dev
  • r90
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)

None

@donmccurdy
Copy link
Collaborator

donmccurdy commented Mar 13, 2018

This is likely a bug in the exporter, but FWIW I'm working on updates to the glTF Blender Exporter to support multiple animations. If you want to try the experimental version there with THREE.GLTFLoader, it should just work:

Oops, i see the skinning is broken... well anyway, when that PR is merged and not WIP maybe it will work. 😅

715a598f-de31-4983-be16-058bfcbb55d1-44168-0001de4a58408e11

anim.zip

@donmccurdy
Copy link
Collaborator

If I give each bone a unique name, I get better results, but still broken...

@giangm9
Copy link
Author

giangm9 commented Mar 13, 2018

I think the problem with the skeleton animation is: In blender, the Mesh is the child of the skeleton, but in threejs, the skeleton is the child, but the location of the Mesh is relative to its parent, so that the location of the mesh is at (0, 0, 0)

@mrdoob mrdoob added this to the rXX milestone Mar 14, 2018
@Mugen87
Copy link
Collaborator

Mugen87 commented May 31, 2018

The JSON Blender exporter has been removed with R93 (#14117).

Also see: https://threejs.org/docs/#manual/introduction/Loading-3D-models

@Mugen87 Mugen87 closed this as completed May 31, 2018
@mrdoob mrdoob removed this from the rXXX milestone Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants