mayognaise / aframe-gif-component Goto Github PK
View Code? Open in Web Editor NEWA conponent to control GIF for A-Frame VR.
Home Page: https://mayognaise.github.io/aframe-gif-component/basic/index.html
License: MIT License
A conponent to control GIF for A-Frame VR.
Home Page: https://mayognaise.github.io/aframe-gif-component/basic/index.html
License: MIT License
How do you suggest to change src to another gif? The new gif may have a different number of frames.
I've tried entity.setAttribute('src', 'url(newimg.gif')
which works to swap gifs, but then page hangs after a few loops. I'm assuming frame idx is causing issue.
How do I swap src and update frame count or force reload of shader?
Thanks.
Hello everyone!
I have tried the component using transparent gif and it seems that the material doesn't clean every frame and keeps all the frames while the animation continues.
Any Idea why is this?
Are there any work arounds or plans to fix it or where we can check to fix it?
Thanks!
I have this shader on a plane and my intention is to control the width and height of the plane+animated gif on it. That doesn't seem to work. May not be implemented. Does that sound like a feature you may consider putting in place?
It seems that I cannot control gif from begin. Photoshop created gif loop forever, even if it set to loop only once(tested 2 loop too) in PS. Play/pause/tooglePlayback not have effect on begin of the script, but when i use controls after click event, or mouse enter etc. controls work. But anyway problem is that looping is un-controlled before first click on look event. I also tried make own function for controlling, but no lucky.
Of course there is way to trick it, with change src when click or look event happen, so i can control it from first frame. But of course it is much easier to control it from start. Some entity.reset() can also help there probably.. I feel gif's is so tricky :D
Any thoughts?
error in console material.js:91 Uncaught (in promise) Error: Unknown shader gif
perhaps shader registration method has changed in newer aframe?
Is there a way to set the source of a gif trough an asset id?
This way I can preload the images from an s3 bucket.
I can't get the gif-shader and gif-component to work in aframev1.1.0.
No errors in the console but when the gif is loaded the whole scene/renderer freezes
Any clues what could be wrong?
For transparent gifs it doesn't refresh the transparent canvas every frame, resulting in a strobing effect of gifs with transparent background.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.