Materials show up black sometimes

Hi guys,

my webviewer is finished(ish) and is working flawless. Only downside is that when I download a model (from any website) in OBJ format with .mtl file, or I download a non-OBJ format and export it with 3ds Max 2018 to OBJ file with .mtl file, the material is black when showing it in the browser.

Some models do work perfectly fine, while some others show only black.

are there some steps that need to be taken before (which ever program i.e. Blender or 3ds Max, Vray, Scanline et cetera) needs to take before the materials will be correctly visible?

Does anyone know how this comes?

If it’s the same problem like mentioned right here (Object not loading when using MTLLoader), I suggest you post a question at the 3ds max forum. For some reasons, the respective OBJ/MTL exporter produces a black diffuse color. three.js parses and renders these files according to the (unofficial) standard.

http://paulbourke.net/dataformats/obj/

Just my luck then hahaha… but good to know, thanks for your answer, now I dont have to look any further :slight_smile:

Switch to glTF 2.0… Never look back.

1 Like

Good one, I’ll look into that :slight_smile: