TGA or BMP?

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

TGA or BMP?

Post by metal_head » Mon Apr 27, 2009 4:05 pm

I downloaded a pack of textures, but they are all in tga format (without alphamaps, just tga). Will there be any difference in the framerate if I use the textures like the way they are (in tga format) or if I convert them to BMPs and than use them?

User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Re: TGA or BMP?

Post by zany_001 » Mon Apr 27, 2009 11:52 pm

TGA can have colours stored in 32 bit format, which would probably have more data in it, however TGA's can be compressed. With BMPs, while you can compress them, RF probably can't read the compressed versions, although I don't know for sure. BMPs can only store data in 16 and 256 colour, which should contain less information per file. T o tell you the truth, you can find out the easiest by taking the TGA, noting the file size, and converting to a BMP, and then comparing.
Once I was sad, and I stopped being sad and was awesome instead.
True story.

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: TGA or BMP?

Post by metal_head » Tue Apr 28, 2009 12:25 pm

Yeah, that sounds logical, I'll give it a try (the only problem is that the tetures are so much :D:D )

Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Re: TGA or BMP?

Post by Jay » Wed Apr 29, 2009 8:16 pm

I don't think it will make a speed difference, because both are loaded into an internal genesis3d-bitmap-format by RF.

RF can load 32Bit TGAs with Alpha-channel (I don't think compressed tgas are allowed) and 24Bit and 8Bit (256 colors) BMPs.
Everyone can see the difficult, but only the wise can see the simple.
-----

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: TGA or BMP?

Post by metal_head » Wed Apr 29, 2009 9:24 pm

So I don't need to bother for that eh? Bad, because I spotted a slight FPS decrease in a part of a level that I'm working on. It's still about 70 FPS per second, but I don't like that when I jump and the FPS is low, I jump higher...also the headbobbing (which I'm not using) is slower when the FPS is slower, so I try to keep the FPS at it's maximum at all the time :D

User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: TGA or BMP?

Post by QuestOfDreams » Thu Apr 30, 2009 2:43 pm

Jay wrote:RF can load 32Bit TGAs with Alpha-channel (I don't think compressed tgas are allowed) and 24Bit and 8Bit (256 colors) BMPs.
RF supports uncompressed and run length encoded (RLE) TGA files.

If you put the images into a TXL file then there would be no difference at all because they are stored in the genesis3d image format. For other images (such as flipbooks for example) you may save some disk space if you're using rle TGA files (but you could also use other file formats like JPG for those).

Post Reply