Closed cjishnu closed 9 years ago
Please look into it. Let me know if I have to share my model.
Yes please, share your model.
Hi, Sorry for the late reply. You can find the Maya model here in the original format (.mb) and the generated json. https://drive.google.com/folderview?id=0B_bh5AxtV5KMUVJ4blJXRFNOTmM&usp=sharing
Thanks!
/ping @sgrif
I am redoing my animations in Blender where everything seems to be working. I would like to contribute to fixing this issue in Maya (since my 3D artist is more comfortable with Maya) if I could get some insights on what could be wrong? Is the problem in three.js or the exporter? Does the pymel version matter?
Did you tried with the last version of the exporter in the dev
branch?
Yes. three.js r69dev version + dev branch exporters (both .py & .mel). Were the files updated properly?
/ping @sgrif
Can't contribute much more here, since we moved off of Three.js a few months back due to a number of issues. I tried running this file through our legacy format importer though. I couldn't successfully get it to render, since the zip file doesn't include all of the textures referenced by the mesh, but no errors were emitted relating to attribute reference or indexing issues, so that implies that the bug is in Three not the exporter.
Can't contribute much more here, since we moved off of Three.js a few months back due to a number of issues.
Off topic, but I would love to know what those issues were ^^
I am still receiving this exact error. Maya 2015, export using the threejs exporter, fails in the hasFaceColor block
Can you share the faulty exported file?
Same error on my side, any updates ?
Same here with Maya 2016, unfortunately I can't share the model due to NDA. Will poke around further.
Only happens on a model with bones/skeletal animations.
I have the same problem.
Using this converter: convert_obj_three
I then try to import it into three.js v69 scene using the following code:
const jsonLoader = new window.THREE.JSONLoader();
jsonLoader.load('3dmodels/lowpoly_character/gamecharacter.js', function(geometry, materials) {
const character = new window.THREE.Mesh(geometry, new window.THREE.MeshFaceMaterial(materials));
scene.add(character);
});
But I get this error:
three.js:1677 Uncaught TypeError: Cannot read property 'x' of undefined
FWIW, my student also ran into this. Is there any solution? :(
Make sure you're using the latest version of the library and the exporter.
I don't really know what the issue really was, but I managed to fix it by creating g another scene in Maya and importing my object in it. Give it a go, try to load parts of your object within a new scene, might work too.
I rebuilt a scene in Maya and import the object, and then export the three.js file with the latest plugins versions. But the error is still the same. When I load it in html, the object insist no show...
js error: Uncaught TypeError: Cannot read property '111' of undefined : (
I think this issue may be related to the way meshes are selected from the Python script. Here's what I used in my own plugin to get around this issue:
@mattdesl I don't know what features does the Maya exporter in this repo currently supports, but maybe we could replace it with yours?
Hmm mine is a bit purpose-built for our own needs (instancing) and unfortunately my trial for Maya has run out, so I'm temporarily unable to test/develop. :smile: Hopefully next month I will have a machine set up with Maya and I can get back to improving the plugin.
But if somebody is able, they could test by simply changing the _allMeshes
function in the current ThreeJS repo to see if it indeed fixes the situation.
Hoping this will help... My students have 2 models of a laptop. The one with the keyboard results in the error, the one without the keyboard imports to three.js just fine with no error.
The dropbox file is here: https://www.dropbox.com/sh/jnm4gw2zlh2qjdx/AAD-s56nqI0U9NKE69DPP4gya?dl=0
They say:
"the tag folder is the maya files that we want to use in our website (it's a shark skeleton, I believe)" - also produces the error.
Hi,
I am using Autodesk Maya 2014 SP2 to create the 3d models for a threejs based browser-game. Models have skeletal animation and textures. Maya exporter plugin that I am using is downloaded from here: https://github.com/mrdoob/three.js/tree/master/utils/exporters/maya (python version is 2.7 and pymel version I think is 1.0.0). Maya exporter plugin successfully generates the three.js json file. Now there are two problems:
ERROR 1: json.colors array is not present (even when I check the colors checkbox while exporting) - this gives javascript errors while loading using THREE.JSONloader() with the latest version of three.js (r68)
js error:
The errors can be traced to the following lines in three.js:
ERROR 2: After creating a workaround for the non-existent colors array, one more js error comes inside computeFaceNormals.
js error:
This is because inside computeFaceNormals definition, vertices.length is only 17795 in my case, but face.a is going above 17795 resulting in undefined 'vA'.
I realize that this could be due to some peculiarities in my model. But since the latest version of Maya exporter is successfully creating an output json file without any errors, I think my model is correct and expect it to be readable by JSONloader. Also when I tried with Inka3d (http://www.inka3d.com/) , the models render properly on the browser. So I am reporting this as bug.
Please look into it. Let me know if I have to share my model.