nanim: an easy 2d animation file formats optimized for games

nanim: an easy 2d animation file formats optimized for games

Postby devnewton » 05 Oct 2012, 11:26

For my game, Newton Adventure, I wrote a specification for a 2d animation file format and a set of tools to work with.

http://devnewton.bci.im/projects/nanim

Existing 2d animation file formats have severe limitations (gif max colors) or complex to parse (apng, mng) and most are unoptimized for today GPU which demands to store in "power of two" sized textures.

Most modern games use a custom file format, generally png textures with xml metadata for animations. I took another approach of the problem:

- a protobuf specified file format: no need to write a parser, just generate one for your preferred programming language: https://code.google.com/apis/protocolbuffers/
- simple, stupid : https://devnewton.bci.im/projects/nanim ... 60ffc66e84
- with the nanimopt tool, all the animation frame are stored in power of two sized textures using a bin packing algorithm.
- extensible: protobuf allow to add extension to the file format to handle specific needs of other games.
devnewton
 
Posts: 78
Joined: 25 Sep 2012, 13:21

Re: nanim: an easy 2d animation file formats optimized for g

Postby Pix3l » 15 Oct 2012, 19:50

Really interesting project, maybe I will use it for my future projects. Good job! :]
http://www.pix3lworkshop.altervista.org/ - Your 8bit choice since 2006!
User avatar
Pix3l
 
Posts: 55
Joined: 10 Sep 2010, 21:00
Location: Italy

Who is online

Users browsing this forum: No registered users and 1 guest