Sign in to follow this  
luckylavs

Question About Animation

Recommended Posts

I would like to use animation in my video games. Suppose I am considering a 30 frame sequence of a person walking.

I have Poser, and I can render out 1 frame at a time, for example, as 30 separate .PNG files.
The other option I have is to make a movie -- an .AVI file. (I read somewhere you can use alpha channels in .AVI files if you have the right video codec).


What is the better approach here? I will be having a lot of these persons in the game... like 8 or 9 on the screen at any one time. I figure each person would need 4 separate AVIs -- one for walking up, down, left, and right.

And are AVIs something that C++ can handle easier than PNGs?

Thanks in advance

Share this post


Link to post
Share on other sites
[quote name='luckylavs' timestamp='1317420405' post='4867747']
I would like to use animation in my video games. Suppose I am considering a 30 frame sequence of a person walking.

I have Poser, and I can render out 1 frame at a time, for example, as 30 separate .PNG files.
The other option I have is to make a movie -- an .AVI file. (I read somewhere you can use alpha channels in .AVI files if you have the right video codec).


What is the better approach here? I will be having a lot of these persons in the game... like 8 or 9 on the screen at any one time. I figure each person would need 4 separate AVIs -- one for walking up, down, left, and right.

And are AVIs something that C++ can handle easier than PNGs?

Thanks in advance
[/quote]


99.99999 times out of 100, if you are dealing with a 2D game, you want to deal with PNGs ( or another 2D file format ). What you will ultimately want to research is a "spritesheet", which is basically just all your images/frames smushed together into a single image. This is pretty much the way everyone does it.

There are some occasions where a movie would be the way to go, but they are exceptional and probably beyond the scope of a beginner.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this