Question

I'm using threejs(R58). I convert the FBX model to threejs json file via utils/convertors/fbx/convert_to_threejs.py. When I use THREE.JSONLoader to load the json file, brower throw exception in the line "for ( i = 0; i < json.uvs.length; i++ )". I find the format of the generated json file is not matched with the JSONLoader. Which FBX convertor should I use? Why R58 has this inconsistent convertor tool? Thanks a lot!

Was it helpful?

Solution

it's my mistake. The generated js file via utils/convertors/fbx/convert_to_threejs.py is a scene type js file. I should use SceneLoader instead of JSONLoader.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top