2D Blender animation tests

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
frpnit
Prole
Posts: 21
Joined: Fri Oct 12, 2012 1:05 am
Location: Brazil
Contact:

2D Blender animation tests

Post by frpnit »

Hi all,

I was messing around with Blender 3D for 2D animations. It's not that difficult at all, but consumed a good time of mine, since i had to plan the cutouts, and learn about rigging, uv maps, weight painting... Anyway, i think it might be a good solution for spritesheets, or maybe for a realtime 2d skeletal animation (blender can export the whole thing as a .fbx file, dunno if it's possible to parse it back using Löve).

First test - Bending an arm using two bones and an armature deform:


Second test - A traditional walking cycle, using some old sketch i had here:


Hope you like it :)
FRP
  • Graphic Designer
  • Hobbyst Programmer
[/color]
User avatar
SiENcE
Party member
Posts: 805
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: 2D Blender animation tests

Post by SiENcE »

Interesting. I'm thinking of Spine support for Löve.

Currently supported engines:
https://github.com/EsotericSoftware/spine-runtimes

But i don't know what .fbx are.
User avatar
frpnit
Prole
Posts: 21
Joined: Fri Oct 12, 2012 1:05 am
Location: Brazil
Contact:

Re: 2D Blender animation tests

Post by frpnit »

SiENcE wrote:Interesting. I'm thinking of Spine support for Löve.

Currently supported engines:
https://github.com/EsotericSoftware/spine-runtimes

But i don't know what .fbx are.
Roughly speaking, it's a format that stores data from 3D model, like positions, rotations, rig (bones), textures used, as well as keyframes if there is some animation. My tests uses a png spritesheet as UV Map, dunno how could be possible to import this stuff into love (and if it's possible at all).
FRP
  • Graphic Designer
  • Hobbyst Programmer
[/color]
User avatar
SiENcE
Party member
Posts: 805
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: 2D Blender animation tests

Post by SiENcE »

Maybe a bit to complicated for 2d and love.
twobit
Prole
Posts: 3
Joined: Thu Jul 04, 2013 10:50 am

Re: 2D Blender animation tests

Post by twobit »

I am just starting to learn blender with the intent to use character animations in 2D-games. FBX import appears to be quite feasible and I am rather happy with the results so far. Mesh deformation and texture mapping might also be possible but I haven't tried it yet.
Attachments
run.love
contains the blend file as well as the FBX file exported from blender 2.63
(132.63 KiB) Downloaded 279 times
spectralcanine
Citizen
Posts: 65
Joined: Sat Dec 22, 2012 8:17 am

Re: 2D Blender animation tests

Post by spectralcanine »

You can always make your own Blender exporter, the Python API isn't too bad.

Can't see the images.
User avatar
verilog
Citizen
Posts: 97
Joined: Thu Nov 03, 2011 3:15 am
Contact:

Re: 2D Blender animation tests

Post by verilog »

This is really interesting, I've been toying with the idea of a 2D skeletal system for real-time animation in löve for a while, I'm highly interested on this, mainly because I'm also using blender.
twobit wrote:I am just starting to learn blender with the intent to use character animations in 2D-games. FBX import appears to be quite feasible and I am rather happy with the results so far. Mesh deformation and texture mapping might also be possible but I haven't tried it yet.
I can't run the love file, there appears to be something faulty in main.lua, line 18. :(
twobit
Prole
Posts: 3
Joined: Thu Jul 04, 2013 10:50 am

Re: 2D Blender animation tests

Post by twobit »

I can't run the love file, there appears to be something faulty in main.lua, line 18.
This should be fixed now.

When importing FBX all skeletal information is discarded. I only care for polygon data and object transformations.

A well-adapted custom blender exporter would be ideal! Has anybody of you experience with this?
Attachments
run.love
(132.8 KiB) Downloaded 272 times
spectralcanine
Citizen
Posts: 65
Joined: Sat Dec 22, 2012 8:17 am

Re: 2D Blender animation tests

Post by spectralcanine »

twobit wrote:A well-adapted custom blender exporter would be ideal! Has anybody of you experience with this?
It isn't hard to write an exporter, but I want to see you make a format that is "well-adapted". Every game has its own needs.
User avatar
clofresh
Citizen
Posts: 87
Joined: Sun Jul 26, 2009 4:21 pm
Contact:

Re: 2D Blender animation tests

Post by clofresh »

Ah cool, I should have searched before post my topic about spine vs blender. As for a data format for a custom blender exporter, maybe we could conform to Spine's json data format. Then we'd have a good ol' fashion data standard that other animation software could follow and we can just use the same library to load.
----------------------------------------
Sluicer Games
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest