THREE.ComposedTexture - play GIF, APNG etc as texture

Hello there! I’m having a little trouble with understanding coding the play() and stop() functions in a script. I only saw the update( deltaTime ) function used in the example. Could you provide an example of the other playback functions? Thank you for your time.

@Fyrestar Purchased and it works great. Any chance you can get this working with animated webp as well? Thanks!

1 Like

Thanks for your support :+1: It’s universal for any decoder that provides frames. You might checkout this one GitHub - GuramDuka/webpjs: javascript webp decoder, not sure if or if any of those available support animated webp though.

How can I add this module to my react-three-fiber project? Or is it not possible to do so?
I imported the module in my component: import ‘…/…/static/ComposedTexture’.
And I added the import * as THREE from ‘three’, as it was requesting the three.js library.

I’m getting the error ‘Cannot add property ComposedTexture, object is not extensible’.
I think I did something wrong

wondering the same thing as well, is this compatible with react-three-fiber ? would anyone be able to provide a rough outline as to how ? i’d love to know before buying the module :))