mayognaise / aframe-gif-shader

A shader to display GIF for A-Frame VR.
https://mayognaise.github.io/aframe-gif-shader/basic
MIT License
109 stars 44 forks source link

Any news about the methods? #1

Closed rafaeleyng closed 8 years ago

rafaeleyng commented 8 years ago

Hello there. Awesome job!

The README states:

Method

The following method is coming soon.

play() pause() togglePlayback() nextFrame() paused()

Any news about this? I'd gladly use those methods in my current project.

mayognaise commented 8 years ago

@rafaeleyng hello! ahh sorry i havent touched for a while. I'll add it now 🍡

rafaeleyng commented 8 years ago

@mayognaise Nice, that would be life saving 👍

mayognaise commented 8 years ago

@rafaeleyng sorry i was lazy in the weekend.. I just pushed as 0.1.7. pls install again. and let me know if you have any questions!

rafaeleyng commented 8 years ago

@mayognaise will try it ASAP. Thanks a lot!

mayognaise commented 8 years ago

hi @rafaeleyng, i talked with aframe team and it's not good to have methods in shader side. ill rewrite this tonight. so pls stay tuned.

rafaeleyng commented 8 years ago

Are you removing them altogether or what else?

mayognaise commented 8 years ago

Removing all of them but will move aframe-gif-component. Migration should be easy. Let me try if I can get time today... Will let you know!

rafaeleyng commented 8 years ago

Hmm, nice. I remember trying aframe-gif-component but it didn't work with transparency, as far as I remember.

rafaeleyng commented 8 years ago

I mean, I was using a GIF with transparency but it was appearing with a white background.

mayognaise commented 8 years ago

yes because the component doesn't use gif-shader. i will rewrite inside of gif-component so that it can keep material info.

rafaeleyng commented 8 years ago

👍 thanks mayo

mayognaise commented 8 years ago

hi @rafaeleyng, sorry for the late. Now aframe-gif-component is ready! https://github.com/mayognaise/aframe-gif-component Please check the usage. Let me know if you have any question.

rafaeleyng commented 8 years ago

Thanks, I won't be able to test it right now, but I'll check it when I can!

jrDev1 commented 4 years ago

Sorry to bring this up again. But is there a way to restart the gif to the first frame?

Thanks.