Wasyl Posted October 12, 2017 Share Posted October 12, 2017 Hi, I tried upload add my old model into three.js but I have a problem. I've got this error: THREE.MultiMaterial has been removed. Use an Array instead I read than MultiMaterials was deleted in last threejs version, but what can I do to run my model in latest version of three.js It's to much work to delete MultiMaterial in my model and I wouldn't like to use older version :/ Thanks Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted October 22, 2017 Share Posted October 22, 2017 You can export your model to JSON from 3D Editor by exporter and load it like this: var loader = new THREE.JSONLoader(); loader.load('./models/warehouse.json', function (geometry, materials) { var wareHouse = new THREE.Mesh(geometry, materials); scene.add(wareHouse); }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.