Author Topic: I'm wondering something...  (Read 883 times)

0 Members and 1 Guest are viewing this topic.

Offline Magic Odd Effect

  • Camper
  • ***
  • Posts: 371
I'm wondering something...
« on: May 07, 2007, 08:32:18 am »
Not a suggestion, I'm just trying to discuss one thing in the "Do not Suggest" list.

This:

Quote
animated graphics in maps

What I'm wondering is if this would really cause a change in the map format. I had an idea of making Soldat compatible with GIF scenery, therefore allowing animations to be in the map. Note, GIF is an image format, but can be animated.

If bitmaps are allowed, why not expand it to other formats? Such as GIF or JPG, or maybe PNG?

Would it really change the map format?

And, don't kill me for this. I'm trying to find an answer for that rule. I'm not sure what format of animation MM was thinking about when he thought up that rule.

NO, I'm not suggesting that we allow animations in the maps. Sorry. I just want to see if it would be possible without changing the map format.
Don't say that you're Magic. Because you aren't, and I am.
All-around good with weapons that aren't long range, except in TW.
Now be careful out there, soldier.
Best Newbie in the May 2007 Soldatforums Member Awards!

Offline Sytrus

  • Flagrunner
  • ****
  • Posts: 862
  • English Teech0r
    • AtlanticProject
Re: I'm wondering something...
« Reply #1 on: May 07, 2007, 09:44:13 am »
The map format used for Soldat can do way more. Way more than it's used for at the moment. I think that PNGs are already used, so GIF should be possible, too, I think.

Offline Veritas

  • Camper
  • ***
  • Posts: 271
  • Waco
Re: I'm wondering something...
« Reply #2 on: May 07, 2007, 11:38:08 am »
Its on the Do Not Suggest list because its been suggested a million times before. You're welcome to read those threads as to why Soldat doesn't support it, this is a really good explanation though:
Quote
Yes, this has been suggested before a few times. There is a lot of wrong things being said about GIFs and BMPs... I've spent some time as a programmer and know a few things about GIFs and BMPs.

Both a GIF and a BMP are pure data files. They contain no "code" or commands that are intended to be run, just graphical data. Both have a specific format, basically, a set of rules (not included in the actual image files) that different programs use to convert the data in the file to something it can use on screen and converting something on screen to data it can store in the file type correctly.

BMP's format has very little in the way of "rules"; it stores only the pixel width, pixel height, and each pixel in the image, based on a starting pixel (I believe it is top left, but I'm not sure) and then continuing pixels based on the width/height. It also has some info about bit settings for valid colors, but that gets really complicated and doesn't help this explanation.

GIF's format has a lot more in it in terms of "rules"; it stores info such as the number of frames, the width and height, repeat length, and bit information. It also supports transparency. GIF is useful for image animations and also in the fact that images can be "compressed" in GIFs; patterns of pixels can be recorded and repeated throughout the image to save space.

The major difference between the two is that, while BMPs generally have a larger size due to lack of some form of compression in the format, they are the fastest to render because they can be pulled directly from the file and put onto the screen with little effort of the processor. GIFs, while usually smaller, allow for animations; but they require a lot more processor power to draw, especially with multiple frames or large image dimensions.

That said, both need the program that is drawing them to have a sort of "reader" in the code; and MM doesn't really want to program in a GIF reader, because a BMP reader is much easier to code and makes the game run faster; plus, image size doesn't really matter for a 640x480 game.
DEHUMANIZE YOURSELF AND FACE TO BLOODSHED

Offline Magic Odd Effect

  • Camper
  • ***
  • Posts: 371
Re: I'm wondering something...
« Reply #3 on: May 07, 2007, 12:16:56 pm »
Thanks for that.

I wasn't really sure what they meant in that "Do Not Suggest" list when they said animations.

So it involves building a GIF reader.....Hmmm.....
Don't say that you're Magic. Because you aren't, and I am.
All-around good with weapons that aren't long range, except in TW.
Now be careful out there, soldier.
Best Newbie in the May 2007 Soldatforums Member Awards!