Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, bigsmack, 7th_zorro, dr_panther), 1,364 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with bitmaps??? #25280
04/08/04 15:22
04/08/04 15:22
Joined: Dec 2003
Posts: 121
Living in a fantasy world!!
Tseggena Offline OP
Member
Tseggena  Offline OP
Member

Joined: Dec 2003
Posts: 121
Living in a fantasy world!!
I'm wondering if anyone else has had this problem.

I made a panel, had 32bit depth on, and inserted the bitmap in. At first I thought I was doing something wrong with the setting of the colordepth (I was getting color banding), but then tried a tga instead of the bitmap. My results:



Tga on the left, Bmp on the right. And so you know, I made the TGA from the BMP that's visible there. In my image editor both look identical.

To be honest, I REALLY don't care that much. They're the same filesize. I just was in a habit of using .bmp's for the longest time (current "save as" default on my editor), and I thought I was doing something wrong with my color settings. I'm just wondering if anyone else has had this problem, and just making sure anyone might be aware of it.


"To do something right takes Skill, ... To do something well takes Style!" - Me
Re: Problem with bitmaps??? [Re: Tseggena] #25281
04/09/04 01:06
04/09/04 01:06
Joined: Oct 2003
Posts: 88
Ultra Offline
Junior Member
Ultra  Offline
Junior Member

Joined: Oct 2003
Posts: 88
BMP and TGA just have different compression methods. TGA just does a much better job. When you're making a fairly large image though, TGA file sizes can get very huge. BMP on the hand likes to butcher the images the best it can. Unfortunately this make the images look awful.

Re: Problem with bitmaps??? [Re: Ultra] #25282
04/09/04 01:08
04/09/04 01:08
Joined: Oct 2003
Posts: 88
Ultra Offline
Junior Member
Ultra  Offline
Junior Member

Joined: Oct 2003
Posts: 88
I should also add, that BMP has three channels (RGB) where as TGA has a 4th (RGB and Alpha)

Re: Problem with bitmaps??? [Re: Ultra] #25283
04/09/04 02:42
04/09/04 02:42
Joined: Dec 2003
Posts: 121
Living in a fantasy world!!
Tseggena Offline OP
Member
Tseggena  Offline OP
Member

Joined: Dec 2003
Posts: 121
Living in a fantasy world!!
Wha? They have different compression methods for gamestudio??

The images look exactly the same in the image editor. It's only in gamestudio they look different. In that picture I showed, both are from gamestudio. In fact I made the left image from the right one.

I've never had bitmaps "butcher" any image in any other software, and they always are the same size unless I compress my TGA's, or add the Alpha Channel.

EDIT: I just did a test, and the bitmap output is the same in 16-bit to 32-bit modes. I'll ask around on the bug forum and see what's up.

Last edited by Tseggena; 04/09/04 02:51.

"To do something right takes Skill, ... To do something well takes Style!" - Me
Re: Problem with bitmaps??? [Re: Tseggena] #25284
04/09/04 05:21
04/09/04 05:21
Joined: Oct 2003
Posts: 88
Ultra Offline
Junior Member
Ultra  Offline
Junior Member

Joined: Oct 2003
Posts: 88
no no.. the BMP and TGA formats have different methods for image compression. It's not A6 related. The BMP is a fairly old compression method. JPEG was then invented to compensate. However JPegs did not support animation. So, Gif was formed, but people didnt like how Gif compressed a series of images, so png was made. Also, each of these formats had their own variation of competition...

BMP, JPEG, TARGA, etc
Gif, png, (cant remember, but i know theres more)

The two formats look the same in an image editor because the both images are uncompressed in the program. What is being displayed is "Raw" data. The reason it uncompresses it is so that you CAN save it under another format.

Re: Problem with bitmaps??? [Re: Ultra] #25285
04/09/04 05:43
04/09/04 05:43
Joined: Dec 2003
Posts: 121
Living in a fantasy world!!
Tseggena Offline OP
Member
Tseggena  Offline OP
Member

Joined: Dec 2003
Posts: 121
Living in a fantasy world!!
Uhmm... I think you are confusing your terms and image format information.

Bitmaps usually aren't compressed. They are an older file format, however. TGA images can be either or, hence why my images are almost the exact same filesize when either in TGA or BMP (sans tga alpha). Also, quality loss via some forms of compression (lossy) is usually visible in image editors, while sometimes not being that apparent. Try opening and saving a Jpg repeatedly at a low compression factor, and you might slowly see a "checkerboard" pattern start to emerge.

Trust me, I know alot about my image formats. I've been working with them in windows since the good ol' 486 and MS Paint.

But besides that, this has nothing to do with the file format. I tried running 3dgs at 16 and 8 bit modes, and nothing changed with the tga's. I had to alter my actual desktop color to 16.. and then the tga and the bmp looked the same.

For some reason the tga's are at 24-bit, and the bmp's at 16-bit in gamestudio.... at least for me. This has nothing to do with the image itself.

Last edited by Tseggena; 04/09/04 06:06.

"To do something right takes Skill, ... To do something well takes Style!" - Me
Re: Problem with bitmaps??? [Re: Tseggena] #25286
04/09/04 06:20
04/09/04 06:20
Joined: Oct 2003
Posts: 88
Ultra Offline
Junior Member
Ultra  Offline
Junior Member

Joined: Oct 2003
Posts: 88
Crap you're right, I did screw up when i said compression... It's been a while since i learned these things. Have pity for my weak mind.

In any case, check out this page http://www.dcs.ed.ac.uk/home/mxr/gfx/2d/BMP.txt

and can find more about other formats here http://www.dcs.ed.ac.uk/home/mxr/gfx/2d-hi.html

Last edited by Ultra; 04/09/04 06:21.
Re: Problem with bitmaps??? [Re: Ultra] #25287
04/09/04 06:41
04/09/04 06:41
Joined: Dec 2003
Posts: 121
Living in a fantasy world!!
Tseggena Offline OP
Member
Tseggena  Offline OP
Member

Joined: Dec 2003
Posts: 121
Living in a fantasy world!!
I've been there before, nothing new. I know alot about image formats already. I've been working with them for almost 10 years now. My question was more on how Gamestudio is handling the images themselves.

But even if there was an image using lossless compression, it wouldn't look like that. That's color-banding brought on by 16-bit display, and is caused by Gamestudio.

My problem was I don't know if that's a bug, or just the way they set it up.

It doesn't really matter. Tga's are more versatile, and work well with their lossless compression if I decide to use it.



"To do something right takes Skill, ... To do something well takes Style!" - Me

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1