Vertex Colors from imported glTF in three.js

410 views Asked by At

I'm trying to understand the use of vertex colors on imported models within three.js.

In my use case, I have a source DXF file, which has been converted to a glTF file using Assimp.

When I import the resulting glTF file into Sketchfab, the 3d model displays all the correct and original colors that were used within the source DXF file.

enter image description here

When I import the same glTF file into three.js however, the colors are all different.

enter image description here

Within both three.js and Sketchfab the materials applied to each object within the scene are set to use vertex colors.

Can someone please explain why these results might be different, or any approach I could take to maintain the original colors within three.js

Link to the glTF file

Link to the glTF .bin file

0

There are 0 answers