Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  Clash of Civilizations
  Coding question: Good way to handle TIF or TGA grafix in Java?

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   Coding question: Good way to handle TIF or TGA grafix in Java? Format for Better Printing
Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted May 20, 1999 18:26   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
The subject about says it all... Our art guy, Dominique says:

As I said to Mark, neither GIF nor JPG are the ideal formats:

JPG is lossy at for this reason alone a no-no. Furthermore, it's quality lessens with each "load-change-save" procedure, and you never know when you have to edit an image for the xth time (let alone making it harder for the players to edit their images).

GIF can use only up to 256 colors - not a problem as such (AoE is done in only 256
colors!), but MUCH harder to do convincingly for the artist - especially in a situation like ours, who are spread all over the world.

Isn't there any way to import TIF or TGA? I'd even settle for BMP or IFF (both should be
easy to use in your code).


I don't know how to do this kind of stuff in Java, who knows how? And what are the limitations, losses in speed etc.

Thanks,

Mark

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted May 25, 1999 09:23   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I guess if worse comes to worse we could use TIFF or TGA for design and user mods, and just convert to jpg to have the Java code run. Its a bit kludgey, but then at worst all we'd need to do is write one converter (if one's not already available).
Dominique
Warlord
Bonn, Germany
May 99
posted May 25, 1999 11:09   Click Here to See the Profile for DominiqueClick Here to Email Dominique  send a private message to Dominique Visit Dominique's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Sorry, Mark, JPG is a no-no; I'm sire you won't find a single professional game out there using JPG, maybe with the exception for large screenshots / illustrations. Ever wondered why that crappy old BMP format is use so often? Well, JPG doesn't allow for exact pixel placement, which is a MUST when dealing with small zile / unit graphics.

A better, but by far not the best solution would be to use 256 color GIF graphics with their INDIVIDUAL palettes, i.e. the tiles are GIF, but the screen as a whole is 16 / 24 bit.

But is it really THAT hard to use something different than GIF / JPG???

Look what I have found:

http://www.javacats.com/US/search/rid00003682.html

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted May 25, 1999 11:37   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Dominique:

Yes, the library you found looks great, and is clearly the way to go. I had searched for such a thing but didn't find anything useful. I withdraw my previous comments as they're clearly irrelevant.

For others' info it says:

JIMI - Java Image Management Interface 1.0.1(ClassLibrary)
By Activated Intelligence, LLC

JIMI gives Java the power to read & write numerous graphics file formats - JPEG, TIFF, PNG, GIF, BMP, PSD, TGA, PICT, PCX, XBM, XPM, RAS, ICO, CUR & more. JIMI is 100% Pure Java , compatible with JDK 1.1 and JDK 1.2 betas - free for non-commercial use.

Congratulations. We will have to make sure the speed is ok using this library, but it looks good.

-Mark

Blade Runner
Warlord
Belgium
b.02-15-99
posted May 27, 1999 06:33   Click Here to See the Profile for Blade RunnerClick Here to Email Blade Runner  send a private message to Blade Runner
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I find an easy to use method to use BMP graphics wit java:

http://www.javaworld.com/javaworld/javatips/jw-javatip43.html

Blade Runner

Rong
Chieftain
Euless, Texas, USA
Apr 99
posted May 27, 1999 16:19   Click Here to See the Profile for RongClick Here to Email Rong  send a private message to RongSend a Message to UIN: 13872593
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
quote:
...free for non-commercial use.

Wouldn't that be a problem?

Here is a GPL'ed class library from LizardWorks:

http://www.lizardworks.com/java.html

[This message has been edited by Rong (edited May 27, 1999).]

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted May 27, 1999 16:26   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Hey Rong:

We're not commercial yet... We only Aspire to Become So .

Looks like the open-source discussion is going your way so far too! I'll actually need to Read the GNU license is it, at some point to see what potential it allows us if we go open.

-Mark

Apolyton Civilization Site Forums
> > > Clash of Civilizations Forum

next newest topic | next oldest topictop of page

All times are EDT

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

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site