I'm trying to export the following scene to JSON:

enter image description here

It is made up of 45 models. Each model will want to have 2-4 different colored faces, like in the picture above.

When I export it in the JSON exporter, I don't get multiple materials per model:

            "name":"Corner FTR",

(This is the resultant export code for the corner in the foreground with three colors).

Naturally, when I try to render this in Three.js, the materials don't show, because they didn't export. (In fact, no material shows at all; it seems that material exported is a dud).

If I give a model a single material, everything works fine. The problem only arises when I try to give a single model different materials for different faces.

Any suggestions?


1 Answer 1


I personally would try one of these two things:

  1. Bake an image for the whole object to be UV wrapped in, and then use that image as one material.


  1. Separate the Meshes per material, and export those out separately with their single materials. I know THREEJS anyway has groups that you could use to re-group all of the geometry, but I'm not sure that's what you are using JSON for.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .