Hello, Im trying to render a 3D OBJ model, mostly everything renders fine, but for example, here: https://www.itzarty.cf/Three
Model: https://www.itzarty.cf/Three/models/FAMAS_m0.obj
Texture: https://www.itzarty.cf/Three/textures/FAMAS/Commemoration.jpg
Script: https://www.itzarty.cf/Three/script.js
How it should look? Well, atleast there should be no completely black spots, anyways, the back/second/whatever side should be like a copy of the front. Can anyone tell me, where Im doing the mistake?
Thanks for any reply
Both model and texture are fine - after plugging it into Blender it seems that the UVs are not normalized though.
Either normalize the UVs to stay within [0; 1], or set the texture to repeat after loading it (example):
new THREE.TextureLoader().load(textureUrl, (texture) => {
texture.wrapS = THREE.RepeatWrapping;
texture.wrapT = THREE.RepeatWrapping;
model.material.map = texture;
});
Thank you!!!
Cheers