forked from Warzone2100/warzone2100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scrapped the old crappy animation system because it made absolutely no sense and was horribly limiting. The new system is based on two mechanisms. The first is a new section in PIE files called ANIMOBJ that modify the position, rotation and scaling of frames for the given mesh level. The second is a new directive in PIE files called EVENT which tells the game to use a different model instead when the given event is triggered for the game object, such as burning and moving. There used to be three animations systems in the game - texture coordinate flipping, key frames, and skeletal. Key frames are now merely expressed in terms of skeletal frames in which scaling for all but the key frame is set to a fixed -1000, which disables the frame entirely. The reason that this information went into the PIE files is simply because it was easier. Making a new file format when there is current exactly two models with proper animation (supercyborg and oil derrick) made little sense. In the long run we should reconsider the whole PIE format. Scaling now actually supported, in all three dimensions. It used to possible to specify in ANI files, but was never used. Each level can now have separate animation framerates and cycle counts (how many times to run an animation, zero for infinity). Currently implemented for structures and droid bodies (which includes cyborg feet). The treatment of burning running and burning dying babas needs further elaboration, but is currently broken anyways. Dying animation needs to be triggered and removed somewhere.
- Loading branch information
Showing
60 changed files
with
1,226 additions
and
3,503 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
PIE 2 | ||
TYPE 200 | ||
TEXTURE 0 page-14-droid-hubs.png 256 256 | ||
EVENT 0 cybd_run.pie | ||
LEVELS 1 | ||
LEVEL 1 | ||
POINTS 26 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.