PolyAnim

Free Java library that can be used for animations
Download

PolyAnim Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT License
  • Price:
  • FREE
  • Publisher Name:
  • Mika Halttunen
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 1.9 MB

PolyAnim Tags


PolyAnim Description

Free Java library that can be used for animations PolyAnim is a free and open source Java library for animations consisting of groups of 2d polygons. PolyAnim is mainly intended for animated game sprites, not for movies really. NOTE: Some building instructions are available HERE. Here are some key features of "PolyAnim": Animation features: Animations: · Building animations using key frames, polygon groups, polygons and vertices. (done) · Interpolating smoothly between key frames (done) · Polygon groups have flexible transformations: scale, rotate (around pivot point) and offset (= translate) (done) · Groups are sorted (and thus drawn) by their depth-level (done) · Group polygons can itself be animated by moving their vertices (done) · Polygon color interpolation (done) · Blending settings per polygon: alpha, additive, none · Performs transformations on the renderer side (e.g. glRotatef() in OpenGL) but can optionally compute transformation matrices for renderers that don't have transformations built-in. (done) · Alternative "smooth step" (a cubic curve) interpolation (done) · Linear interpolation is the default and works nicely in most cases. Smooth step may look better in some animations. Looping: · Variable start and end points (done) · Bidirectional and ping-pong playback (done) · Animations can be set to "lazy updates" mode, where they will keep their state updated but skip the frame interpolation, which saves CPU time. This is useful, for example when game sprites are out of the view. (done) · Animations can share the key frame data between many instances, saving memory. This is useful for several enemies using the same animation but each with their own state. (done) · Anchor point system · Allows implanting anchor points with specific offset, direction to the animation frames. The anchors will be animated along with the rest. · Game code can query for example an anchor in players hand, and render a gun sprite there. Animation I/O: · XML read and write (done) · Custom binary format · Experimental (+ unsupported) Inkscape SVG --> PolyAnim XML animation converter (done) · Tutorial here! · Animation collections (store several animations in one file; for example player run, walk and jump animations) Rendering features: Different renderers: · OpenGL (LWJGL) renderer (done) (recommended for games, but doesn't natively support concave polygons) · Since version 0.69 it is possible to automatically triangulate concave polygons. Convex polygons should be preferred still for speed reasons. · Java 2D renderer (done) (supports concave polygons) · Easy to implement new renderers, as long as drawing polygons is supported by the platform! Render modifiers: · Can be used to modify the animation rendering. Useful for game sprites! · Flip (mirror) vertically and horizontally (done) · Scale, rotate (done) · HSL (Hue-Saturation-Lightness) modifier (effects such as desaturation and hue rotation) (done) · Color modifier: blending to color, additive blending to color, conversion to grey scale (done) · Alpha modifier: multiply the polygon alpha with a specified alpha factor (done) PolyAnim Editor: · Allows creation of the animations · Uses Qt Jambi · Has its own renderer using Qt (supports concave polygons)


PolyAnim Related Software