#Color not loading
22 messages · Page 1 of 1 (latest)
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
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.
Im not sure if theyre texture or vetrex colors, i think maybe the latter. I just got the model online somewhere
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
set material.side=THREE.DoubleSide and see it its just a inverted normals issue
yes thank youuu, that worked <3<3
it's always DoubleSide
The default is front side in three js,
but blender default is double, which gets exported on gltf glb so it feels like it's always double-sided
I meant to say, many material issues are due to DoubleSide. I have seen more than 2 threads due to this recently.
Kind of annoying ngl
Like why couldn't it identify itself and set it accordingly
Smh
Ohhh ... now I get it 🤣
my bad
Welcome to the world of 3d🎉