Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Alternative Civs > Clash of Civilizations > Coding question: Good way to handle TIF or TGA grafix in Java?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
04.Sep: `FC` 2.0.5 COMPLETED AND RELEASED
27.Jul: `FC` 2.0.4 COMPLETED AND RELEASED
16.Jul: `FC` 2.0.3 COMPLETED AND RELEASED

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:13
  Old Post 21-05-1999 03:26 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Coding question: Good way to handle TIF or TGA grafix in Java? Full PM-box? Change here!

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 is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:13
  Old Post 25-05-1999 18:23 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

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 is offline Dominique
Warlord
Bonn, Germany
May 1999
time: 05:13
  Old Post 25-05-1999 20:09 Visit Dominique's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Get a bigger avatar today!

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 is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:13
  Old Post 25-05-1999 20:37 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Full PM-box? Change here!

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 is offline Blade Runner
Prince
Belgium
Jan 1970
time: 06:13
  Old Post 27-05-1999 15:33
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Lose 30 kilos (of popups)

I find an easy to use method to use BMP graphics wit java:

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

Blade Runner

Rong is offline Rong
Chieftain
Euless, Texas, USA
Apr 1999
time: 05:13
  Old Post 28-05-1999 01:19
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton or Terrorists Win

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 is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:13
  Old Post 28-05-1999 01:26 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Put an end to popups!

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

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:13.
Apolyton Time is 00:13.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0341 seconds (86.29% PHP - 13.71% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net