Description of the problem
Hi; sometime with glb model i add full scene
when i play animation object become transparent and flickering.
problem that appeared recently on dev version of three.
I can’t understand where it comes from, if someone has already noticed this problem ?
Three.js version
- Dev
- r115
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Note that GLTFLoader uses a custom interpolant (cubic spline) for some animations. The
Always Sample Animation
option in Blender would generally force linear interpolation, and avoid that custom interpolant. Perhaps it’s this interpolation that got broken by the change?three.js/examples/js/loaders/GLTFLoader.js
Lines 980 to 1009
in
21ab863
@lo-th if you’re avoiding the “Always Sample Animation” option to reduce file size, you may want to consider exporting with sampling, then using gltfpack to downsample and reduce file size. Exporting with sampling tends to work better in general, so (while I agree this is a bug), it’s worth considering too.
Here is the PR with the fix: #19256
I’m pretty sure there are a few, but I’d have to dig into the binary files to figure out which ones.😅
A unit test on PropertyMixer for custom interpolants might also help avoid this issue in the future.