I recently converted an FBX model to JSON using a Python script called convert-to-threejs.py. However, I am encountering issues trying to load it into three.js (r58). An error message stating "Uncaught TypeError: Cannot read property 'length' of undefined" keeps popping up at line 9930 in three.js, specifically within the code block
for ( i = 0; i < json.uvs.length; i++ ) ...
If you take a look at the converted JSON file here: http://pastebin.com/86ZGvKnW, you'll notice that it does not contain a uvs
property.
Could it be that convert-to-threejs.py is outdated? If so, what other tools can I use instead? If not, how should I proceed to successfully load this model?
Below is the snippet of code I have been using:
window.loader = new THREE.JSONLoader();
loader.load('jet.json', function(geometry) {
// Unfortunately, this part never executes due to the error occurring beforehand
console.log(geometry);
});