-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add MorphPrimitivesTest. #200
Add MorphPrimitivesTest. #200
Conversation
0c48b99
to
726a5c7
Compare
Thank you very much for the sample glb commits! |
I tried this model with gltf-test. For now it seems that only Babylon.js can display correctly. |
Thanks @cx20, good to have a test case then. 😅 We'll have this fixed in three.js soon: mrdoob/three.js#15084 |
Can you add a plain |
Done ✅ |
Forgive me if I'm just uninformed on morph targets, but, what's the goal here? Should implementations find the one target and just apply it by default? What if there's more than one? Should there be some user- or API-control over when the morph is applied? Looks like @cx20 marked an X for implementations that aren't immediately applying the morph right out of the box. Is this the expected behavior? If so, what's the advantage of having the non-morphed data present in the glTF? |
The mesh contains a
|
Morphed data in glTF are displacement data (i.e. they are deltas from the original mesh) and thus you must have the original data. |
Ah, that was the missing piece for me, thanks. As you guys know I've been lobbying for a higher standard for new models being added here. Here's where I think we should be doing better:
If I'm asking too much, we could go ahead and merge this as-is, if you think that's best. I'm just concerned that the model is only useful by people who have taken time to understand various intentions and tech specifications, and I know it's possible to make it accessible and usable by folks with far less ecosystem knowledge. |
Thanks @emackey — I agree with that long-term direction for this repository, especially as glTF-Asset-Generator is better suited to cover many of these implementation edge cases. It would be nice to have glTF-Sample-Models showcase features and strengths of glTF, and keep the combinatorial low-level feature coverage to a minimum. For that matter, I'd be open to removing some of the very basic samples here (Triangle, TriangleWithoutIndices, ...) since those are trivially covered by glTF-Asset-Generator. However... glTF-Asset-Generator doesn't currently cover Draco, morph targets, or combinations of the two. I don't know how easy it is to add new cases to glTF-Asset-Generator, but at the moment I don't think I have time to implement a generator covering this. Given a model that identifies a bug in 12 of 13 WebGL implementations (or 6 of 7 that support morph targets), what's the right step to take to ensure it (eventually) gets fixed? |
Add README details for MorphPrimitivesTest.
Thanks for the README update @emackey! I guess there may be a longer conversation to have about how we want to make the most of this repo, in general, but I think we can track that and update things through another issue. |
Sample model provided by @ft-lab in mrdoob/three.js#15039.
@ft-lab could you confirm that you are OK with putting a CC-BY license (https://creativecommons.org/licenses/by/4.0/) on this model, for others to use and test? Thanks!