#Color not loading

22 messages · Page 1 of 1 (latest)

warped mango
#

hey, can anyone please help me with textures? Im loading a mtl on a obj and all the colors load except the blue one, pics attached

#

also would be great if they had a little more roughness, but since im using a mtl loader i wasnt able to do it from what i found so any tips would be appriciated

#

loading code is

export async function earthCreate() {
  const mtlLoader = new MTLLoader();
  let materials = await mtlLoader.loadAsync("models/planet.mtl");
  materials.preload();

  const objLoader = new OBJLoader();
  objLoader.setMaterials(materials);
  let obj = await objLoader.loadAsync("models/planet.obj");

  return obj;
}
#

ok so its rendering partially

austere acorn
#

Can you share a demo? Also are these textures or vertex colors? For texture issues I'd always ensure there isn't a network error and test with/without texture.flipY since other software uses an inverted coordinate system to WebGL/OpenGL.

warped mango
#

The rest of the colors seem fine, just the blue is bad

#

The first pic is just the windows 3d viewer thing

#

But it loads all fine there

zealous meteor
#

set material.side=THREE.DoubleSide and see it its just a inverted normals issue

warped mango
zealous meteor
midnight totem
#

I meant to say, many material issues are due to DoubleSide. I have seen more than 2 threads due to this recently.

warped mango
#

Kind of annoying ngl

#

Like why couldn't it identify itself and set it accordingly

#

Smh

zealous meteor
zealous meteor
warped mango
#

Its awful and i hate it

#

Threejs kinda cool tho