问题
Hey guys I'm new to Aframe and trying to set up a whole bunch of gifs in a spatial web environment.
I'm getting a bit stuck in loading a gif on a plane.
I've loaded the image through the assets folder of Aframe (glitch), currently it looks like this:
<a-assets>
<img id="dance" src="https://cdn.glitch.com/89b3ce36-3eac-4bb0-865c-585a7fe58409%2Fdance.gif?1556817051483.gif" >
</a-assets>
<a-plane src="#dance" position="5 3 -5" transparent="true" ></a-plane>
Right now the gif shows up, but it is static. How could I get it to start playing?
回答1:
A-Frame does not support GIFs by default. You need to use a third-party component to render GIFs: https://github.com/mayognaise/aframe-gif-shader
来源:https://stackoverflow.com/questions/55960135/how-to-load-a-gif-with-transparency-on-a-plane-in-aframe-glitch