Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated tiles #82

Open
xbony2 opened this issue Dec 2, 2017 · 2 comments
Open

Animated tiles #82

xbony2 opened this issue Dec 2, 2017 · 2 comments

Comments

@xbony2
Copy link
Member

xbony2 commented Dec 2, 2017

I don't know how it would be done but it's something we all sort of wish we had, so might as well put it here to examine it one day. Maybe there'd be another file like File:Tilesheet AV 16 animated.png and a way to mark tiles as animated. I don't know but feel free to think about it.

@retep998
Copy link
Member

retep998 commented Dec 3, 2017

Fortunately Chrome (and other browsers using the same engine) has recently gained support for APNG so we can use that instead of mucking about with gif or weird javascript hacks.

Unfortunately this is also somewhat complicated to do. First there needs to be a good way of dumping all the frames of an animation for a given block or item (what happens when the block has multiple faces with different animations on each side and different periods for each animation?). Then we'd have to figure out how to place them on a tilesheet (all animations on a given sheet need to have the same period, or would have to be repeated multiple times until the least common multiple of their periods is achieved, which could be a huge waste of space for combinations of primes). We'd also need a Rust crate capable of creating APNG images.

If we had #76 then the actual implementation of this issue would be limited to tile dumping mods and ftb-rs with no other changes required to the extension or the wiki.

@elifoster
Copy link
Member

we'd have to figure out how to place them on a tilesheet (all animations on a given sheet need to have the same period, or would have to be repeated multiple times until the least common multiple of their periods is achieved, which could be a huge waste of space for combinations of primes).

We could have the tilesheet contain static images of all the frames. For example, Tilesheet V 16 animated.png contains Gold Ingot frame-1 Gold Ingot frame-2 etc and then stuff is done to create an animation from that. That could also get massive, though, if a mod adds a lot of animated tiles.

If we had #76 then the actual implementation of this issue would be limited to tile dumping mods and ftb-rs with no other changes required to the extension or the wiki.

I have no idea what you're saying here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants