Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Alternatives to .TGA

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
Lachlan87 Posted - May 30 2004 : 08:04:56 AM
I've been using .tga's for my game, basically for no reason except that they were smaller than .bmp's and had alpha channels. Recently I took a look at how big my graphics folder was and just about choked. Over 40MB and I'm still just starting!!!

Can anyone recommend a better format for games? I need an Alpha Channel and 16 bit color. If possible, I would prefer a format that DirectX 9 can load for me, but that is not a requirement.
15   L A T E S T    R E P L I E S    (Newest First)
Sr. Guapo Posted - Jun 02 2004 : 3:33:32 PM
find out... Use QueryPerformanceCounter and have fun. There is a good tutorial on using it here. It is really easy. I'm just too lazy during summer vacation...
VBBR Posted - Jun 02 2004 : 3:29:02 PM
But which is faster to load, a PNG or a BMP (decompressed on-the-fly) ?
Sr. Guapo Posted - Jun 02 2004 : 09:06:45 AM
Interesting... I zipped both a 32X32 .png and a 32X32 .bmp... originally, the bitmap was 3126 bytes, and the PNG was 313 bytes. After zipping, the PNG was 309 bytes, and the bitmap was 129 bytes!

Yes, those numbers are correct... It seems a bitmap is alot smaller once compressed by winzip than a PNG...
Almar Posted - Jun 02 2004 : 02:34:44 AM
in PSP7 you have something like "Options" when saving TGA.. :)

btw: Try compress a BMP, I thought it will be quite the same as PNG.
Sr. Guapo Posted - Jun 01 2004 : 9:02:14 PM
I would like to point out that .pngs are only compressed (zipped) 5% of more than they are normally, meaning they are very compact... compare that with a .bmp - 96%!!!
masterbooda Posted - Jun 01 2004 : 6:26:01 PM
I figured I would have a set up program, that will convert all the images and save them to a folder, this way it will be a one time deal. And they can then run the game using those images. Also the set up will delete the png's. With this method, the export size of the game will not be that large, but the program set up on hard drive will be large.

DaBooda out
Sr. Guapo Posted - Jun 01 2004 : 4:53:24 PM
OK, that makes sense... Anyway, are you going to try and make your own parser, or just loop through with getPixel (or something). Either way, it will take a while for large images, but as long as you are not running them during the game loop...
masterbooda Posted - Jun 01 2004 : 3:34:12 PM
A .dds file can only, as far as I know be made with the dxtex tool, that comes with the directx 8 sdk.... It takes two bitmaps, one of the image, then one of the alpha, which is a grayscale image, with white being solid and black being transparent, and the values in between being variations of the in between... It is a nice little format, because you can have textures in your program with variable alpha... and you can also ignore color keying and all that, it is what I like to use, but like I mentioned earlier, the size is just a little bigger than a bitmap, so they take up quite a bit of room... so if I have two png's representing one image, maybe I can create the alpha channel on the fly from two images, because 2 png's are even smaller than .dds....

DaBooda out..
Sr. Guapo Posted - Jun 01 2004 : 2:55:47 PM
I have a question... What is a .dds file? I realize it is an image file, but I cannot find a program that supports it (PSP, photo editor, MS Paint, etc.). I am confused, and I am sorry if this sounds very "noobish"...
masterbooda Posted - May 31 2004 : 11:43:51 AM
I was wondering about .png alpha channels, because in paintshop you can use a mask to create the alpha channel into the .png, and it becomes part of the image. Anybody who has worked with macromedia flash, will know that you can use .png's and they will be displayed with the alpha channel. So I am wondering if there is a way to create, lets say a .dds image on the fly, by bringing out the alpha channel in directx8. This way all the images you will need will be .png files.

DaBooda out..
Sr. Guapo Posted - May 31 2004 : 11:25:02 AM
JPGs compression is very bad if you want colorkey values. Some of the colors will be blended, and the texture will look very strange...

About the compression... I have no idea, that is what happened when I "save as..." in PSP. I don't have the TGA compression software/algorithm, so I don't know how to compress it...
Almar Posted - May 31 2004 : 03:29:47 AM
TGA is supported in DirectX8, so it's not our problem I think :).

Anyway, was the TGA file in it's compressed form? :). and GIF is 256 colors, which won't work out most of the time, JPG should NEVED be used for colorkeyed stuff. And there was something with PNG as well.. :)
Sr. Guapo Posted - May 30 2004 : 8:22:19 PM
It is fine to use them, I think, even with the patent, as long as you don't create the same compression algorithm for your own file... I may be wrong, however... The patent just stops everyone from copying the idea and distributing their own version
VBBR Posted - May 30 2004 : 7:58:40 PM
But don't forget Eric, that the GIF patent expired last year (I guess you should know it)... so would it be OK to use TGAs (assuming it falls under the same patent)?
Sr. Guapo Posted - May 30 2004 : 7:06:00 PM
This is just what I found out in 5 minutes using PSP 7, so I may have messed something up...

VBGamer © Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.