Author Topic: 24 bit vs 32 bit  (Read 3746 times)

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
24 bit vs 32 bit
« on: 2007-08-25, 05:55:05 AM »
i was just wondering, if SGDK2 involves having alpha transparency, shouldn't a 32 bit graphics card be required for running SGDK2. My (outdated) graphics card only supports up to 24 bit color and cannot correctly view PNG graphics without clogging up my system. (usually i can have up to two large size pictures doing this)
Looking to the skies.....

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: 24 bit vs 32 bit
« Reply #1 on: 2007-08-25, 09:59:09 AM »
Sometimes alpha translucency can be emulated in software, I think, depending on the driver.  I'm not sure how this works.  Does SGDK2 work on your video card?

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
Re: 24 bit vs 32 bit
« Reply #2 on: 2007-08-25, 03:58:36 PM »
it does, only the map editor doesn't work. the graphics editor works, but really slows down my system. my compute is a 98se with only 256 MB of memory. I'm planning to get a new one soon anyway.
Looking to the skies.....

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: 24 bit vs 32 bit
« Reply #3 on: 2007-08-26, 06:33:50 AM »
I suspect the slowness might be DirectX emulating alpha translucency in software.

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
Re: 24 bit vs 32 bit
« Reply #4 on: 2007-08-26, 01:08:38 PM »
i just went through the dxdiag thing and it worked just fine. i also noticed i get two diferent messages whether im in 16 bit or 24 bit (see attatchments) the error message is the same
Looking to the skies.....

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: 24 bit vs 32 bit
« Reply #5 on: 2007-08-26, 06:00:30 PM »
The 16-Bit mode would never work. The error message displayed makes sense, in that case, since the 16-bit hardware mode doesn't even support the full color range.
Edward Dassmesser

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
Re: 24 bit vs 32 bit
« Reply #6 on: 2007-08-27, 08:51:22 AM »
there are some image files that support 16 bit color with transparency, 15bit is color and 1bit is the alpha channel
Looking to the skies.....

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: 24 bit vs 32 bit
« Reply #7 on: 2007-08-27, 03:30:39 PM »
If 1 bit is the alpha channel, it's not very alpha.  More like boolean transparency in that case, in which case it would be better to just define some color that doesn't show up in the image as the transparent color like GIF does.  Anyway, PNG is not one of those formats, and PNG is the format that SGDK2 uses.
Edward Dassmesser