Add apng to plane?

How would one add an animated png to a plane and have it play ?
I did come across this: THREE.ComposedTexture
but i am unsure of how to implement that into “normal” js is there any more examples of similar apng textures ?

Probably this would be the same as using an animated gif.

See this thread, and probably others if you search on the forum or stackoverflow.

1 Like

Seconding @looeee 's reply, it may be easier with gif. In case that helps I’ve added a conversion from gif to canvasTexture in Polygonjs.

Here is an example, and the source of the Gif texture node

It is based on the library gifuct-js and all I’m doing is writing a gif frame to a canvas, which is in turn read by a CanvasTexture.

1 Like