Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [LibGDX] Creating 2D Animations with Blender  (Read 1569 times)
0 Members and 1 Guest are viewing this topic.
Offline Clepto

Senior Newbie


Exp: 3 years



« Posted 2014-08-11 14:54:26 »

So I've decided to use Skeletal animation techniques for a game. My artists use a plethora of different tools(GIMP, Paint.NET, Photoshop) to create sprites.

We then tear apart the sprites, create bone structures in Blender in a pseudo 2D environment(Basically just ignoring the z-axis), and animate them. We import the images using the "Import Image as Planes" add-on within Blender.

Now here is my question, how would I go about importing these into LibGDX. I know that LibGDX has tools for importing Blender models and animations, but I'm not sure if these will work with a 2D animation from it.

So is there some way to import these into LibGDX already, or will I need to manually export bone structures and animations to something like XML and read it in myself?
Offline atombrot
« Reply #1 - Posted 2014-08-11 17:04:30 »

I'm not very familiar with blender and I cannot really answer your question. But have you thought about using spine2d? Maybe this could be an alternative to blender.

http://esotericsoftware.com/

Spine is made exactly for this and it also provides a runtime for libgdx (and many other game libraries), which lets you integrate your spine animations with some lines of code into your project. It costs a bit (not sure what you pay now), but it's definitely worth it, if you plan to do much animated content.
Offline thedanisaur
« Reply #2 - Posted 2014-08-11 18:48:44 »

First thing, if your artist is not familiar with blender then I'd just use spine2d, anyway back to your question...

Yes blender will work for 2D animation, just create the 2D animation and export to .fbx then you can convert to .g3db. Then you can load it.

you can check out http://blog.xoppa.com/ for more info. He does 2D animation in blender so that could be useful.

Every village needs an idiot Cool
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pitbuller
« Reply #3 - Posted 2014-08-11 21:37:34 »

Just use Spine. http://esotericsoftware.com/
Offline Clepto

Senior Newbie


Exp: 3 years



« Reply #4 - Posted 2014-08-11 23:01:10 »

Unfortunately I'm not able to use Spine. We're using only open source software for most of our projects.

I've looked into Blender, and it seems that importing models and rendering them with ModelInstance and ModelBatch like normal, with just a Z-value of zero then using an OrthographicCamera instead of Perspective will work perfectly fine.
Offline pitbuller
« Reply #5 - Posted 2014-08-11 23:02:45 »

Unfortunately I'm not able to use Spine. We're using only open source software for most of our projects.

I've looked into Blender, and it seems that importing models and rendering them with ModelInstance and ModelBatch like normal, with just a Z-value of zero then using an OrthographicCamera instead of Perspective will work perfectly fine.

Runtimes are open source tought. Why such restriction for used tools?
Offline Clepto

Senior Newbie


Exp: 3 years



« Reply #6 - Posted 2014-08-11 23:06:05 »

Runtimes are open source tought. Why such restriction for used tools?

We want to have it be very moddable by a community. So we want all of the tools we use to be available to them. If we used Spine our animation technique wouldn't be freely available to everyone, with Blender, it is.

I've used Spine before and I do agree that it's wonderful, however it's not open source or free.

This technique also does have some advantages, we can create 3D models of everything, then render them as 2D, which would allow us to easily show them from a different perspective without drawing another Sprite, and it would allow us to easily mix 3D and 2D elements into the same environment.
Offline pitbuller
« Reply #7 - Posted 2014-08-12 21:12:32 »

Runtimes are open source tought. Why such restriction for used tools?

We want to have it be very moddable by a community. So we want all of the tools we use to be available to them. If we used Spine our animation technique wouldn't be freely available to everyone, with Blender, it is.

I've used Spine before and I do agree that it's wonderful, however it's not open source or free.

This technique also does have some advantages, we can create 3D models of everything, then render them as 2D, which would allow us to easily show them from a different perspective without drawing another Sprite, and it would allow us to easily mix 3D and 2D elements into the same environment.

Modding support make sense. In our up coming game Hardland we also allow modding and we use blender based art pipeline for same reasons.
Offline Nate

« JGO Bitwise Duke »


Medals: 158
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #8 - Posted 2014-08-15 07:33:36 »

Modding support with Spine is fine, everyone just needs to buy Spine! Wink Cheesy

Offline Clepto

Senior Newbie


Exp: 3 years



« Reply #9 - Posted 2014-08-22 00:02:21 »

Modding support make sense. In our up coming game Hardland we also allow modding and we use blender based art pipeline for same reasons.

Is your game 2D? I'm working on my system for rendering Blender models and stuff in 2D. I've got the animation and everything going good with it. However I'm having a few troubles rendering them. I'm not quite sure how to load in a .obj or .fbx if it's converted and render it in 2D with an OrthographicCamera. Something is always messed up with it.

Does anyone else have any experience with this?
Pages: [1]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xFryIx (57 views)
2014-11-13 12:34:49

digdugdiggy (35 views)
2014-11-12 21:11:50

digdugdiggy (29 views)
2014-11-12 21:10:15

digdugdiggy (23 views)
2014-11-12 21:09:33

kovacsa (46 views)
2014-11-07 19:57:14

TehJavaDev (50 views)
2014-11-03 22:04:50

BurntPizza (50 views)
2014-11-03 18:54:52

moogie (65 views)
2014-11-03 06:22:04

CopyableCougar4 (63 views)
2014-11-01 23:36:41

DarkCart (148 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!