user2758635
user2758635

Reputation: 137

3D object material goes black when morph target influence reaches value 1

I include an Object with morphtargets and a standard material into a three.js scene ; the object is loaded from a GLTF export done from Blender ; the morphTarget influences values are working right as long as the value is lower than 1; when it equals 1 the object goes to black. Going back below 1 and the object comes back.

three.js r 104 - Blender 2.80 with gltf 2 exporter. I'm looking for help on what can cause this ?

Upvotes: 0

Views: 147

Answers (1)

user2758635
user2758635

Reputation: 137

Finally I found my mistake. I missed the following line in my code after merging all geometries: joinedgeometry.computeMorphNormals (); Everything OK now. In case this can help someone else ...

Upvotes: 1

Related Questions