0
$\begingroup$

I'm trying to import a js file with morph targets into Blender(v2.65) using the three.js(r66) importer, but it seems that the importer plug-in is not working properly, because nothing is shown in the scene. I tried to convert the js into an obj file and then import it into Blender, but only the mesh was imported, the morph targets were not imported. Can someone help me please?

JS File: three.js/examples/models/skinned/UCS/umich_ucs.js

$\endgroup$
11
  • $\begingroup$ One possible way is to import 1 mesh. Create a shape key as a base shape key. Import a second compatible mesh. Select the second mesh, and then shift+select the original base mesh, and on shape keys panel, click "Join as Shapes". Repeat to join all shape keys to 1 base mesh. $\endgroup$
    – beiller
    Commented Aug 4, 2015 at 14:17
  • $\begingroup$ But there is only one .js file with one mesh and five morph targets. $\endgroup$ Commented Aug 4, 2015 at 14:20
  • $\begingroup$ Sorry I should have clarified that somehow you need to convert the shapes into OBJ files. The THREE exporter is finicky enough, the importer I imagine is even more difficult. Try experimenting with ALL the option combinations. $\endgroup$
    – beiller
    Commented Aug 4, 2015 at 14:22
  • $\begingroup$ Do you know any tutorial that teaches how to convert shape keys into OBJ files? $\endgroup$ Commented Aug 4, 2015 at 14:27
  • $\begingroup$ If you know how to program you could write a python script to import the JSON file and output an OBJ file (which is a text file format) using each vertex buffer, and the face index buffer values. $\endgroup$
    – beiller
    Commented Aug 4, 2015 at 14:29

1 Answer 1

0
$\begingroup$

One possible way is to import 1 mesh. Create a shape key as a base shape key. Import a second compatible mesh. Select the second mesh, and then shift+select the original base mesh, and on shape keys panel, click "Join as Shapes". Repeat to join all shape keys to 1 base mesh.

Try using THREE js to shift to one of the morph targets, then export multiple OBJ files and join them all in blender.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .