Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

While playing a few games in my personal time off development I've stumbled across a survival 2D/3D survival game. The game was apparently made in SDL and GLUT (Dont starve) but what really amazed me was the animations in the game.

The animations are extremely smooth and fluent. There is no distortion while animating, what usually happens in hand-made animations is that pixels get removed, animations are jaggy and they simply aren't as smooth. That got me thinking on how they managed to accomplish such a quality of animations. Were they really handmade (If they were, then it must've taken a very talented artist), is it bone animation or are they using another technique?

share|improve this question

closed as off-topic by Byte56 Feb 2 at 21:35

  • This question does not appear to be about game development within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
I would suggesting that you contact the developers themselves to have such precise information on technologies used. Anyone that didn't work on the game can just stipulate without being sure. –  DogDog Nov 23 '12 at 19:17
1  
Well when asking this question I made a few assumptions, which are: 1. Contacting the developers themselves has a very low chance of success (why would anyone share their secrets to a random person, and how much time do they have to check their emails?) 2. I can get a much faster answer on this website, which consists of people who have years of background experience and whose answers I value, even if they are merely speculations and last of it, the developers themselves may be using this site and could answer this question but that is very far off. –  Bugster Nov 23 '12 at 19:27
    
Most programmers are really open on sharing their knowledge, and I don't think the way they make their 2d animations that much of a secret, I think it's worth a try. Maybe if you tell them a little about you and why you want that they might be more interesting in helping you or giving you advices. –  DogDog Nov 23 '12 at 19:30
1  
See the FAQ about "what technology some particular game used" Asking how to achieve a similar effect would be a much better question. (Though likely a duplicate to something already on the site.) –  Byte56 Nov 23 '12 at 19:39
    
This question appears to be off-topic because it is about the technology some other game used. –  Byte56 Feb 2 at 21:35
add comment

3 Answers 3

up vote 28 down vote accepted

My name is Kevin, and I'm a programmer/designer at Klei. I wrote a bunch of the animation stuff that we used in the Shank series, Mark of the Ninja, and Don't Starve.

Our animators work in Flash. We have a concept of a character 'build' which is a set of body-part symbols with multiple views. Depending upon the fidelity of the given game, there are more or less body parts with more or less 'view'. I think that Shank had about 30 body parts with 1-2 dozen views each, while Wilson from Don't Starve has about a dozen body parts with only about the same number of views. Custom JSFL scripts are used to analyze the flash symbol timelines, and then bake out the relevant images as a series of high-res PNG files, along with a bunch of metadata that we stick in an XML.

Given a character build, our animators create a new root symbol in another file to contain a chunk of animation for that character. In that timeline, they create the character out of build symbols and move it around, tween it, etc. to create individual animations (which are demarcated using frame labels). The exporter script exports these timelines into XML, taking note of the 2d transform of every build piece, and which view it is showing.

With all of this information exported to XML and PNG, we run a series of Python scripts to convert them into run-time data. One script downsizes, atlases, and mips all of the textures and convert them to (one or more) compressed, platform-specific formats. Another script processes the XML animation data into a more efficient to load binary format.

At run time, It's really just a matter of showing the right build symbols with the right transforms and view.

This system took a long time to build, and has been refined as we've moved it from game to game. There are a lot of details that I'm glossing over (like how we handle layering and run-time costume swapping), but that's the general outline.

Of course, the technology that we use is probably the least important aspect of the 'Klei Look'. The most important part is that we have a bunch of really, really good animators. :)

Anyway, I hope this helps. If you have any more questions about Don't Starve, you can stop by our forums, where I'm usually quite happy to talk shop.

share|improve this answer
1  
thanks for the in-depth. I think that the system you have really helps facilitate a great highly-fluid characters, which most small-budget teams (and some high-budget teams) could only imagine. Its certainly safe to say that if you were just doing sprite art, with no interpolation/transforms of body parts, or just transforms and no states/views, it wouldn't feel quite as incredible. Like you said though, a tool is doing a good job when it gets out of the way and lets the artist shine, which Klei does a lot. I've got to say, I've loved all of your stuff, and thanks for PC ports. –  Norguard Dec 3 '12 at 7:54
1  
Glad I could help! I think our artists would actually prefer to work under a system where we just baked out every frame as a sprite, but then we wouldn't be able to do costume swapping, and the texture sizes would be prohibitive. –  Kevin Dec 3 '12 at 7:56
    
Amazing, I never thought I'd get an answer from a developer of the actual game. I thank you for taking the time to answer this. +1 –  Bugster Dec 4 '12 at 7:24
add comment

Klei typically uses a really nice combination of Skeletal animations and sprite-changes.
They rig a skeleton, apply sprites to the bones and then they'll swap sprites as an animation frame calls for it.

The exact "how" (workflow/tools/etc) can really only come from them, however, they said so themselves when advertising "Shank", pre-release.

And if you look at Shank/ShankII, Mark of the Ninja and Don't Starve, you'll notice that the animation looks a lot like the stuff that might come out of Nickelodeon.

I would imagine that they're working with scene graphs to keep everything sane, as well, but again, that's more an assumption based on complexity and what works for animation (2d/3d) than a guarantee.

share|improve this answer
    
Since this is really just a guess, it would probably work better as a comment. Not really your fault, there's no way to not guess unless you're the developer. (problem with the question not your answer) –  Byte56 Nov 23 '12 at 20:11
    
This pretty much answers the question I asked, I had something similar in mind, but it appears you are right. –  Bugster Nov 24 '12 at 8:03
add comment

I think they definitely use bone animation. They also either use high-res sprites(to prevent jagginess) or they use some form of vector graphics. It is entirely possible, they pre-rendered vector graphics into high res sprites. They definitely did not use pixel art for this one. :)

share|improve this answer
2  
More of a comment than an answer wouldn't you say? –  Byte56 Nov 23 '12 at 20:10
    
vector graphics in openGL? It's possible but I really doubt an indie developer would go to such lengths. –  Eric B Nov 23 '12 at 20:24
    
@EricB Alright, it might be pre-rendered into sprites or it might be hand drawn and rendered in high resolution. It is definitely not sprites in the "classic sense" (ie pixel art) like Spelunky and Cave Story. –  Zehelvion Nov 23 '12 at 20:48
    
@Byte56 I agree with you. I am answering more on how to accomplish similar visuals than what did their artist do on this one. –  Zehelvion Nov 23 '12 at 20:59
    
@Byte56 since the question is so difficult to answer, the only viable answers are assumptions, but this answer could very well be a possibility, thanks. –  Bugster Nov 24 '12 at 8:05
show 1 more comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.