-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
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
Morph targets vertices array in Blender exporter wrong #7724
Comments
No, it was the |
Just hit this too, all of the examples use a flat array of verts. @mrdoob this isn't an enhancement, it's currently impossible to export morph targets from blender. Ping @phfatmonkey Did this ever work? How did any of the example files like http://threejs.org/examples/models/animated/horse.js with a flat list of verts get built? the blend file for that example isn't in this repo. |
I made a small script to flatten the vertex array of your output json file. It modifies the file in place. use at your own risk! https://gist.github.com/DelvarWorld/15340499495afea654e45d9ace113d28 |
That file was not done with Blender. It was done in Maya, exported as a series of OBJs and combined using the converter: https://github.com/mrdoob/three.js/blob/master/utils/converters/obj/convert_obj_three.py |
Closing as duplicate of #8710, which has more recent updates. |
In the Blender Export 4.4 there is an issue with the vertices of morph targets. They are parsed as triplets of arrays:
[[x,y,z],[x,y,z],...]
but should be one singel array[x,y,z,x,y,z]
.I'm not good enough with python to make the change, but I think it's
extend([vertex.co.x, vertex.co.y, vertex.co.z])
that should beextend((vertex.co.x, vertex.co.y, vertex.co.z))
on line 409 in mesh.py.I't worked for me when changing in the exported json object directly.
The text was updated successfully, but these errors were encountered: