Announcement

Collapse
No announcement yet.

32-bit vs. 24-bit colour?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 32-bit vs. 24-bit colour?

    This may sound like a stupid question to many of you, but it has been a question that has nagged me every since this 32-bit rendering argument started.

    I keep hearing over and over that 32-bit rendering is 16.7 million colors. This does not seem to support the math. A few years ago, 24-bit was the standard for desktop resolution. 24-bit also had 16.7 million colors. If you do the math, by raising 2 to the power of 24 you get 16.7 million. (2^24 = 16777216 colors)

    Now this seems very strange to me, but 32-bit has a hell of a lot more colors than 24-bit (2^32 = 4294967296 colors)!!!!!

    So could someone please explain to me why 32-bit rendering only supports 16.7 million colors? And if so, why then even bother to use 32-bit? Why not just use 24-bit? As far as I know, games would look perfectly fine in 24-bit color and probably run faster.

  • #2
    Hi Jon,

    The extra 8 bits are used for the alpha channel.
    And on Matrox cards at least, 24 bit is non-accelerated.

    ------------------
    Cheers,
    Steve

    My PC? Not that bad, got all sorts of crap in it, and all sorts of crap around it and my desk is also messy. Now what does that say about me? ;¬)

    Comment


    • #3
      Okay, I'll accept that answer. So on the 16-bit rendering for the Voodoo3 there's no alpha channel?


      Also, what's with the 32-bit DESKTOP display depths used on most new video cards? I remember my old Matrox mystique supported 24-bit only, but my new Fire GL supports 32-bit. I can't see any difference between the two. Image files like .jpg and .bmp only use 16.7 million colors anyway, so in theory 32-bit color wouldn't benefit them.

      Comment


      • #4
        The alpha channel is used mainly for transparencies and other effects. There are only 16.7 million true refracted colors. Or at least that's what everybody tells me

        Jammrock

        ------------------
        PIII 540, 256 MB SDRAM, ASUS P3B-F, Winblows 98 SuckyEdition, 18 GB HDD, 6x DVD w/ decoder, (TEMPORARY!!!) Voodoo 3 2000 which will be replaced by a Matrox G400, SB Live!
        “Inside every sane person there’s a madman struggling to get out”
        –The Light Fantastic, Terry Pratchett

        Comment


        • #5
          Now I knew that, but I've always wanted to ask how excatly are those 8 bits used in practise?
          I know that Alpha means transparency, but what does it have to do with 3D graphics?
          .
          .
          Oh, now I get it! You mean that for example clouds are rendered separately and then layered on top of the background using Alpha information.. eh?

          B

          Comment


          • #6
            You have mixed up 2 things:
            1. Desktopresolution with 24/32 bit colordepth where the difference is only in the way the pixels are stored in videomemory. in 24bit mode (packed pixel mode) the 3 bytes of a pixel a stored one after the other. This stands in conflickt with the memory organization. The controller can 'only' handle 32bit 64bit 128... parts of the memory. Because of this there is a lot to calculate for the controller.
            in 32bit the 3 bytes of a pixel are stored together with a 'spare' byte.
            In times where videocards had only 1 2 or 4 MB memory you can achieve a higher resolution with 24bit mode but the display worked much slower. I think today there's no need for a 24 bit mode because the cards have enough memory to display all resolutions with 32 bit.
            2. 32bit rendering on 3D cards this is something complete different there is the 24bit mode used to have the other 8bit as stencil buffer.

            Hope this helps

            Helmchen

            Comment


            • #7
              Helmchen2000 got it right .. i read it somewhere that 32 bit is faster in desktop than 24 bit coz it's in power of .. while 24 isn't .. so the card need to do more calculations ..
              dunno about the 3D difference though ..


              ------------------
              GigaByte 6BXE, celeron 300A@464, 128 PC100 RAM,
              G200 8 M SD @112.5 core. driver 5.13, bios 1.6.


              GigaByte 6BXC, celeron300A@450, 128 Ram, G200 8M SD

              Comment


              • #8
                see my answer over here:

                http://forums.gagames.com/forums/For...ML/002895.html



                ------------------
                Cheerio,
                Maggi

                Asus P2B-S @ 112MHz FSB - Bios 1009 final
                Celeron300A @ 504Mhz
                128MB 7ns SDRAM
                G400 DualHead 32MB SGRAM @ 201 MHz memory clock
                Despite my nickname causing confusion, I am not female ...

                ASRock Fatal1ty X79 Professional
                Intel Core i7-3930K@4.3GHz
                be quiet! Dark Rock Pro 2
                4x 8GB G.Skill TridentX PC3-19200U@CR1
                2x MSI N670GTX PE OC (SLI)
                OCZ Vertex 4 256GB
                4x2TB Seagate Barracuda Green 5900.3 (2x4TB RAID0)
                Super Flower Golden Green Modular 800W
                Nanoxia Deep Silence 1
                LG BH10LS38
                LG DM2752D 27" 3D

                Comment


                • #9
                  forgot to mention that there is a way to use 32bpp in 2D ...

                  Use a 24bpp RGB image and add an 8bit alpha channel for transparency ... the additional 8 bits can be used by Photoshop via hardware.

                  For example:





                  ------------------
                  Cheerio,
                  Maggi

                  Asus P2B-S @ 112MHz FSB - Bios 1009 final
                  Celeron300A @ 504Mhz
                  128MB 7ns SDRAM
                  G400 DualHead 32MB SGRAM @ 201 MHz memory clock
                  Despite my nickname causing confusion, I am not female ...

                  ASRock Fatal1ty X79 Professional
                  Intel Core i7-3930K@4.3GHz
                  be quiet! Dark Rock Pro 2
                  4x 8GB G.Skill TridentX PC3-19200U@CR1
                  2x MSI N670GTX PE OC (SLI)
                  OCZ Vertex 4 256GB
                  4x2TB Seagate Barracuda Green 5900.3 (2x4TB RAID0)
                  Super Flower Golden Green Modular 800W
                  Nanoxia Deep Silence 1
                  LG BH10LS38
                  LG DM2752D 27" 3D

                  Comment

                  Working...
                  X