I am working on a web app which will render 3D animated models. These models made by 'Maya 2016'. I am exporting these models using three.js (r81) 'maya exporter plugin' (You can check maya exporter plugin here). link, When i am loading this exported json model using below code:
var objectLoader = new THREE.ObjectLoader(manager);
objectLoader.load( 'assets/New-Heart/full_heart.json', function (object) {
scene.add(object);
}, onProgress, onError );
Then it is giving following error: Uncaught TypeError: Materials[json.type] is not a constructor in three.js library file (var material = new Materials json.type ;) on line no : 31381
Please help me to fix this issue. any suggestion would be appreciable.