scp-fs2open / scp-fs2open/fs2open.github.com

consider adding keyframe support to tables to allow apng use for ship/weapon select

Open
#1,592 0 comments 0 reactions 0 assignees View on GitHub
enhancement ui unfinished
Dominant language
C++
Stars
487
Forks
184
Avg merge
3d 9h
Merged PRs (30d)
44

Description

90b35b72fb245b64b9d977751893eeb8d0d77d69 says that apng's don't currently support keyframes thus they can't be used for ship & weapon select animations. However, it may be possible to add table entries for this instead of either hacking the apng format, creating a container format, or otherwise using some other png chunk type in the images... which probably causes issues with editors being able to _create_ said chunk correctly.

Anyway - this idea would add:.
+$Anim Keyframe: (weapons.tbl)
$Ship_Anim Keyframe: (ships.tbl)

Only issue (I can think of right now) is ensuring that when the keyframe is wanted, all the pixel data will be available. i.e. either the keyframe is a full image (not a delta), OR we're only skipping back to the keyframe, never forwards (thus we ensure that the relevant frame has already been composed from whatever the source is in the apng)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.