-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glTF 2.0 Morph targets model is not displayed #11326
Comments
|
BTW is SimpleMaterial.gltf in your repository correct? |
@takahirox are you started on this? I have also done a bit of work here: dev...donmccurdy:feat-gltf-morphtargets ^it isn't doing anything yet, though. |
Yeah, I've started. Looks like our progresses are same haha. |
haha ok, we need a trello board or something 😆 |
This is fixed now — if the model contains animation clips for the morph targets, they can be played as usual. If it contains morph targets alone, they are mutated with: mesh.morphTargetInfluences[0] = 0.0;
mesh.morphTargetInfluences[0] = 0.1;
// ...
mesh.morphTargetInfluences[0] = 1.0; |
I confirmed that the model is displayed correctly. AnimatedMorphCube is OK |
@donmccurdy |
@samwei12 If you mean attributes like vertex positions and normals, it doesn't actually matter what loader or model format you used to create the THREE.Mesh: result.traverse(function(node) {
if (node.isMesh) {
console.log(node.geometry.attributes);
}
}); See THREE.BufferGeometry for more details. |
Description of the problem
I am testing glTF 2.0 sample models and Three.js glTF 2.0 Loader.
https://github.com/cx20/gltf-test/tree/2.0#simple-models-for-testing-individual-features
However, it seems that morph targets model is not displayed.
Model : Animated Morph Cube

https://github.com/HowardWolosky/glTF-Sample-Models/tree/morphAnimation/2.0/AnimatedMorphCube
Three.js + glTF Loader Result is NG
Babylon.js + glTF Loader Result is OK
Model : Animated Morph Sphere

https://github.com/HowardWolosky/glTF-Sample-Models/tree/morphAnimation/2.0/AnimatedMorphSphere
Three.js + glTF Loader Result is NG
Babylon.js + glTF Loader Result is OK
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
ThinkPad X260 + Windows 10 + Intel HD Graphics 520
The text was updated successfully, but these errors were encountered: