[library/wip] Löve Bone: 2D Skeletal Animations

Showcase your libraries, tools and other projects that help your fellow love users.
Seltzer
Prole
Posts: 10
Joined: Sun Jan 11, 2015 7:02 pm

[library/wip] Löve Bone: 2D Skeletal Animations

Post by Seltzer »

Hello lovers, I made a thing and I want to share it with you! :awesome:

Löve Bone is an object-oriented 2D Skeletal Animation framework.

It's still a WIP, so I'm totally cool with changing how the API is structured if it will make it nicer to use.

Here's the repository. It contains the library and a couple of sample projects.
GitHub Repository
Documentation

Play around with it. Let me know what you think. Suggestions are welcome and encouraged!

The repository has a basic tutorial that shows you how to make this thing.
Image

Feature Demo

The following animations were made using Demina. I included an importer for it in the repository.

Basic animation
Image

Animation Layers
Image

Attachments
Image

Skins (technically attachments)
Image

Bone Modification functions
Image

Some More Cool Features
  • Event triggering
  • Animation blending
  • Debug rendering
  • Vertical/Horizontal flipping
  • And much, much more!
Known Bugs/Issues
  • Vertical/Horizonal flipping is kinda hacky, and doesn't play nice with bone transformation functions without some tweaking.
  • Not completely dummyproof.
  • Making a simple actor with basic animation playback support requires a some extra coding effort. I'd like to find a better balance between usability and robustness.
Last edited by Seltzer on Sun Feb 08, 2015 9:24 am, edited 2 times in total.
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: [library/wip] BÖNER

Post by Karai17 »

This library looks pretty cool, but the name isn't exactly subtle, is it? I think such a name will probably hurt this lib's potential. While I am a fan of the de facto naming convention of love libs, subtlety is important.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
Zarty55
Citizen
Posts: 79
Joined: Thu Jul 25, 2013 2:36 am

Re: [library/wip] BÖNER

Post by Zarty55 »

It looks pretty damn awesome! I can't wait to have a chance to use it.

Uhh, don't you think the name is kind of too bold? I would use it anyways, but still.
Seltzer
Prole
Posts: 10
Joined: Sun Jan 11, 2015 7:02 pm

Re: [library/wip] BÖNER

Post by Seltzer »

Thanks for the feedback. I made sure to structure it so the name could be changed without any fuss. This library is for the community, so I'd be happy to change it. Does anyone have name suggestions?
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: [library/wip] BÖNER

Post by Karai17 »

How did you pull off the animation blending? I have a 3d model library that I need to add animation blending to, it'd be nice to see how others did it. :)

https://github.com/karai17/Lua-IQE-Loader
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
Seltzer
Prole
Posts: 10
Joined: Sun Jan 11, 2015 7:02 pm

Re: [library/wip] BÖNER

Post by Seltzer »

Karai17 wrote:How did you pull off the animation blending? I have a 3d model library that I need to add animation blending to, it'd be nice to see how others did it. :)

https://github.com/karai17/Lua-IQE-Loader

Check out examples/advanced/character.lua
It's a wrapper for the actor class that handles animation blending. All you have to do is smoothly increase the transformation power over time and the library figures out how much control the animation should have over its designated bones (if specified) relative to any other playing animations.

If you want to see the guts of how the animation works, look at the transformer.lua file. I wrote this after having worked on an ASSIMP implementation, so it's modeled after how 3D animation works.
Seltzer
Prole
Posts: 10
Joined: Sun Jan 11, 2015 7:02 pm

Re: [library/wip] Löve Bone: 2D Skeletal Animations

Post by Seltzer »

Decided to rename the library to something a little more appropriate. The new title is Löve Bone. The repository has been renamed as well.

Moved most of the readme content to the wiki. https://github.com/GeekWithALife/love-bone/wiki

I'm hoping to get some more tutorials up for using it soon. :)
User avatar
DmL
Prole
Posts: 18
Joined: Fri Nov 21, 2014 9:09 am

Re: [library/wip] Löve Bone: 2D Skeletal Animations

Post by DmL »

Can you tell me what steps you took to get Demina working?
Seltzer
Prole
Posts: 10
Joined: Sun Jan 11, 2015 7:02 pm

Re: [library/wip] Löve Bone: 2D Skeletal Animations

Post by Seltzer »

DmL wrote:Can you tell me what steps you took to get Demina working?
I don't think I had any particular problems installing/running it. What seems to be the problem?
  1. I downloaded the ZIP from https://demina.codeplex.com/
  2. I extracted it somewhere.
  3. The executable will end up being <path_to_installation>/Demina/Demina.exe
Demina has been pretty buggy for me, and certainly isn't my preference. It's just easy to get a quick-and-dirty test running.

I'm hoping to add importers for Sprited/DragonBone/Spine at some point, as those seem to be the other prominent competitors.
User avatar
DmL
Prole
Posts: 18
Joined: Fri Nov 21, 2014 9:09 am

Re: [library/wip] Löve Bone: 2D Skeletal Animations

Post by DmL »

It simply crashes at start up... however, I discovered spriter today and found hardcrawler's implemention...
http://brashmonkey.com/forum/index.php? ... and-video/

While his library is a bit odd, it works more or less as expected and spriter was a joy to learn!

I'm very interested if you do a spriter, so I'll keep an eye on this!
Image
Spriter + hardcrawler's implementation
Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests