Allegro.cc - Online Community

Allegro.cc Forums » Game Design & Concepts » Animation system showoff video

Credits go to Jesse Lenney, OnlineCop, piccolo, Tomoso, and Yodhe23 for helping out!
This thread is locked; no one can reply to it. rss feed Print
Animation system showoff video
Dario ff
Member #10,065
August 2008
avatar

I'm building a new animation system in my actual project, and it performed so well, that I'm proud of it and need to show it to the world :)

The character is bodyless. It's like that because of creative, story and gameplay reasons. This isn't the main character, it's just an NPC.

video

A rush of inspiration came after seeing my NPC move like this, even if animations aren't polished at all :)

As you can see, the big pro is the ability to interpolate from the actual position to the next keyframe, removing the need of making pose-to-pose extra animations, and letting the engine take care of it. Of course, it ain't hard to do this stuff, but it takes some time to develop a good editor and make it easy to use.

Here's a screen of the unorganized, undetailed editor, but that can be arranged my moving the windows:

{"name":"600585","src":"http:\/\/static.allegro.cc\/image\/cache\/e\/1\/e1926ee2e41b5f11f91b5511633b3b95.jpg","w":1024,"h":619,"tn":"http:\/\/static.allegro.cc\/image\/cache\/e\/1\/e1926ee2e41b5f11f91b5511633b3b95"}600585

Most of you should've figured out by now how the engine works by watching the video and the screenshot. Note each object supports playing their own animations by changing the bitmap(watch for the character blinking in idle animation).

Do you think it's a cool system to develop characters and other objects in a game? It saves me a lot of time from rendering various animations, and it has performed great so far. I'd like to hear from any cool addition you might think off(don't even think about skeletal animations ;))

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

OnlineCop
Member #7,919
October 2006
avatar

Very nice rag-doll physics, collision detection, and overall work!

--
You: Yeah! I'm gonna get stuff done today!
Internet: Nope! *POW*

Yodhe23
Member #8,726
June 2007

If I was a "rich" game developer I would hire you!

Amazing stuff in my opinion, and tbh a higher degree calibre than I am used to seeing.

Dario ff
Member #10,065
August 2008
avatar

Thanks for the comments :) I had this in concept stage for some time, and I decided to work these days on it for once and for all.

Yodhe23 said:

If I was a "rich" game developer I would hire you!

Sorry, indie all the way 8-)

Quote:

Amazing stuff in my opinion, and tbh a higher degree calibre than I am used to seeing.

Just imagine when the animations are polished. You'd barely notice the passage from one animation to another. If any of you're interested in trying it out on your PCs, I might upload a binary(No source, top secret!)

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

piccolo
Member #3,163
January 2003
avatar

love it. i was working on somthing just like it my demo was hard coded and not as nice looking as yours.

i also wanted to take it a step forward and have 3d modle to 2d sprite so i can have any view i wanted and also re-use animation used bone animation

wow
-------------------------------
i am who you are not am i

Tomoso
Member #3,128
January 2003
avatar

This looks sweet. Excellent work, I like the GUI as well, at first glance I thought you have some ancient Maya or something :P

dario ff said:

If any of you're interested in trying it out on your PCs, I might upload a binary

I wouldn't mind taking a peek just to be nosey

Lazy Noob - Blog

Jesse Lenney
Member #8,356
February 2007
avatar

Whoa! Nice work!

---
"No amount of prayer would have produced the computers you use to spread your nonsense." Arthur Kalliokoski

Dario ff
Member #10,065
August 2008
avatar

piccolo said:

i also wanted to take it a step forward and have 3d modle to 2d sprite so i can have any view i wanted and also re-use animation used bone animation

Anybody with piccoloish language skills that could translate? I suppose you said something good, and then you mourned about an older project of yours. ;D

Tomoso said:

I wouldn't mind taking a peek just to be nosey

I'll arrange some stuff and upload it.

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

Arthur Kalliokoski
Member #5,540
February 2005
avatar

piccolo said:

i also wanted to take it a step forward and have 3d modle to 2d sprite so i can have any view i wanted and also re-use animation used bone animation

I also wanted to take it a step forward and capture 3d models using bone animation to 2d sprites so I could easily have any pose I wanted.

Google Translate is teh awesome!!111

I really admire the U.S. Constitution. It's so much better than what we have now.

Kevin Adrian
Member #7,087
April 2006
avatar

Congratulations to you for that professional work :)

My mouth will speak words of wisdom; the utterance from my heart will give understanding. (Psalm 49:3)

GullRaDriel
Member #3,861
September 2003
avatar

Yeah, that dario is tha man. Impressive works, keep it going !

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!
My FlickR ! - Old photo gallery
If no moderator answers you then register and PM here !

Dario ff
Member #10,065
August 2008
avatar

Thanks for the comments very much :) I was impressed that some of you considered this to be of "professional" quality. Really? I mean, this kind of stuff is what I could show off if I want to apply to a job related to this in the future.

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

Felix-The-Ghost
Member #9,729
April 2008
avatar

Reminds me of something someone in my class would make with Flash+ActionScript.
I mean the parts themselves don't animate huh? They just move around a body...force?
Guess it could be like Rayman then :P Nice game that was.

=============================
My Portfolio | My Site

Fishcake
Member #8,704
June 2007
avatar

Great job! I envy your programming skills. :P

Billybob
Member #3,136
January 2003
avatar

dario ff said:

I was impressed that some of you considered this to be of "professional" quality. Really?

I concur with everyone else. Top notch stuff!

One cool idea came to my mind while watching the video. It'd be neat if the character's body bounced a little when he goes to prone. As if he hits the ground really hard and fast and so his whole body bounces upward just a little bit. Just a little extra detail to make it smooth and realistic.

_________________________________________________
"God speed, my lonely angel."
Bitcoin | Bitcoin Ponzi Scheme

Dario ff
Member #10,065
August 2008
avatar

I mean the parts themselves don't animate huh?

Eewww, that's one ugly flash game.

Quote:

They just move around a body...force?

Of course, there's an invisible body in the middle. Otherwise, the joints wouldn't be able to attach well, and you'd surely see glitches.

Fishcake said:

Great job! I envy your programming skills.

It's not really skills, you just gotta push yourself to do something for once and for all. I had been thinking about this for months, and it took me only a couple of days to implement. Thanks for the compliment ;)

Billybob said:

One cool idea came to my mind while watching the video. It'd be neat if the character's body bounced a little when he goes to prone. As if he hits the ground really hard and fast and so his whole body bounces upward just a little bit.

He goes prone that fast because of a duration variable I set when interpolating. The cool stuff is, that if I want to make a slow-motion mode, because the animations are composed by keyframes, it'd look smooth always(as long as floating points have enough precision :P).

But thanks for the detail, though it's most likely none of these animations are going to be in the final model(or I'll just build on top of them ;D).

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

Paul whoknows
Member #5,081
September 2004
avatar

Truly impressive! :o do you have a game of yours already using these animations? BTW, what GUI are you using? did you write the GUI yourself?

____

"The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner.

Dario ff
Member #10,065
August 2008
avatar

do you have a game of yours already using these animations?

Nope, because I'm still writing other parts of the game engine. Once I finish that, I'll get working on the game. Just for testing how it looks, I used one of the future NPCs :)

Quote:

BTW, what GUI are you using? did you write the GUI yourself?

It's my GUI engine. Took me some time to write it, and it works great.

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

cheatscanner
Member #11,712
February 2010

dario ff said:

It's my GUI engine. Took me some time to write it, and it works great

Man, what did you use to write it? Like, which libraries I mean? DirectX? Allegro? none of the above?

sigh I could never hope to be that awesome... =/. Just the physics system of your animations impressed me. Man, I don't even know the definition of interpolation... Scratch that, looked it up.

You wrote something this awesome? Oi... I knew I was a noob in comparison to the majority of the people here, but thats way out of my league man. I guess all I can say is keep up the great work, eh?

-cheat

Tomoso
Member #3,128
January 2003
avatar

sigh I could never hope to be that awesome...

Don't put yourself down just because someone made some thing you couldn't, it should just make your more motivated to do better \ learn more! I always think that if I were the best programmer in the world, everyone else below me would be just about putting together Hello World, and then how crappy would life be? And besides you shouldn't say you can't do something if you haven't tried (unless it's like flying, teleporting, moving stuff with your mind - come on we've all tried that at one point).
After seeing the screen for Dario's sexy GUI it gave me motivation to carry on and make mine a lot better than what I originally had in mind for it, I have a vid in my blog of it / (Shameless I know).

Don't be disheartened, be committed :).

Lazy Noob - Blog

Dario ff
Member #10,065
August 2008
avatar

@cheatscanner: I appreciate the praise, but it shouldn't be directed to me. I'm not much of an experienced programmer(not even close to how awesome some guys are here, who have had years of professional experience). And this system isn't anything overly complex. I think most of the people that saw it here has a pretty good idea of how it works. And there's something I read once in these forums that's really good advice:

Quote:

It's easy to say you can do something. You don't really know until you've done it.

Credits go to bamccaig for the quote, though Thomas gave the idea first :P
This was the case with this animation system. I think I've had the concept for it for quite a time, but never got the motivation to program it.

Tomoso said:

(unless it's like flying, teleporting, moving stuff with your mind - come on we've all tried that at one point).

Hehe, did I tell you the powers the player will obtain during the game? ;D Are you a mind reader or something? (except for the flying part :P)

Quote:

After seeing the screen for Dario's sexy GUI it gave me motivation to carry on and make mine a lot better than what I originally had in mind for it

This happened to me way too much over these years. It happened some days ago with this video. That's way out of my league too, but someday I'll try to best it. ;)

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

Tomoso
Member #3,128
January 2003
avatar

dario ff said:

This happened to me way too much over these years. It happened some days ago with this video. That's way out of my league too, but someday I'll try to best it.

No doubt you will write a wrapper function for it in Allegro.

al_draw_sexy_2d_image_with_real_time_lighting_heightmaps_etc(ALLEGRO_BITMAP* some_crap_2d_programmer_sprite_to_convert);

=D

Lazy Noob - Blog

Dario ff
Member #10,065
August 2008
avatar

Get out of my mind Tomoso >:( You're freaking me out ;D

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

m c
Member #5,337
December 2004
avatar

Cool stuff. You must have been busy lately Dario..

(\ /)_____#_____####__#
(O.o)¯¯¯#¯¯¯¯¯#¯¯¯#¯¯#
(> <)__####__####__####
Megabytes are where I keep my Data.

Dario ff
Member #10,065
August 2008
avatar

Thanks m c. I wish I've been more busy programming these days. I'm enjoying my last days of holidays, so I haven't made much progress. I need to get a map editor running now.

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

Go to: