"UnofficialTRLE Chatbox Network - Live Help & Chat
TRLE FAQ and Community
  Eidos Interactive Forums
  Tomb Raider - The Level Editor
  Anyone interested in a .tga packer prog?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Anyone interested in a .tga packer prog?
Raider Of Tombs' Clone
Member

Posts: 319
From:The mining ship Red Dwarf
Registered: Oct 2001

posted 06-15-2002 07:39 PM     Click Here to See the Profile for Raider Of Tombs' Clone   Click Here to Email Raider Of Tombs' Clone     Edit/Delete Message   Reply w/Quote
I have figured out a way to compress a .tga file to about 75% it's original size. Does this make a difference to you guys, or am I the only one on dial-up left?

The idea is that instead of posting zipped .tga's online, people would post zipped .tpak files, but then there would be the added hassle of uncompressing once you've downloaded it.

The question is, given the choice of a 750k download and a quick unzip, and a 450k download and an unzip that takes twice as long, which would you choose?

I would like to know if this is an issue before I continue coding.

IP: Logged

CroftsGate
Member

Posts: 154
From:
Registered: Jan 2001

posted 06-16-2002 12:25 PM     Click Here to See the Profile for CroftsGate   Click Here to Email CroftsGate     Edit/Delete Message   Reply w/Quote
Sounds like a good idea!

However if you wanted the format to be supported by third party programs (such as Texture Edit) then you will need to make the source code for the format available.

------------------

John "IconJohn" Jones
http://www.croftsgate.co.uk
iconjohn@croftsgate.co.uk

A Member of the GameSpy Network
http://www.gamespy.com
http://www.gamespy.org
http://www.gamespy.net
http://www.3dactionplanet.com

IP: Logged

Raider Of Tombs' Clone
Member

Posts: 319
From:The mining ship Red Dwarf
Registered: Oct 2001

posted 06-16-2002 03:17 PM     Click Here to See the Profile for Raider Of Tombs' Clone   Click Here to Email Raider Of Tombs' Clone     Edit/Delete Message   Reply w/Quote
Forget it. Zip software does it for you. I thought in some stupid way that I had come up with something new...

What I had was this: TGA files are arranged like this: (sort-of)

pixel1 R value, pixel1 G value, pixel1 B value, pixel2 R value, pixel2 G value, pixel2 B value etc etc etc...

And I thought - hey, what if instead of writing the RGB values of a red pixel 84 times, why not write them once, and then an integer, 84? Well, I did it, and it worked, and the resulting file size was smaller.

(it's kind of like the difference between doing 3+3+3+3+3+3, or doing 3x6.)

So I very pleased with myself, until I zipped a regular .tga and a .tpak file generated by my program. They were both the same size. What had happened was that the .zip software was only able to conpress my .tpak file by 50%, and the .tga by 80%.

All I did was cheat WinZip out of some compression.


IP: Logged

All times are PST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Eidos.com

[Copyright 1999/2000 - Eidos Interactive, Inc.; Mpath Interactive]

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c