Jump to content

THREE.MultiMaterial has been removed. Use an Array instead


Wasyl
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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);
    });


 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...