Vr_Tech
1
So I got a tiling image and I import my object to the scene and use the following codes.
model.material.normalMap.repeat.set(value, value);
model.material.normalMap.updateMatrix();
model.material.normalMap.needsUpdate = true;
Nothing updates the values of the texture has changed.
Fluqz
2
Try to update the material or even the obj itself. model.material.needsUpdate = true
Take a look here: https://threejs.org/docs/#manual/en/introduction/How-to-update-things
1 Like
Vr_Tech
3
I think I followed the guide but still no clues for the reason behind
model.material.normalMap.repeat.set(value, value);
model.material.normalMap.needsUpdate = true;
model.material.needsUpdate = true;
model.needsUpdate = true;
Not sure the GLTF loader is the cause of this somehow?
Vr_Tech
4
Updates: Following this example, it seems that it only works with Diffuse Map but not Normal Map
https://threejs.org/examples/?q=texture#webgl_materials_texture_rotation
MeshPhysicalMaterial
is being used in this test
Any ideas? Anyone?