Jump to content


alpha channels


7 replies to this topic

#1 coolgroupsdotcom

    New Member

  • Members
  • PipPip
  • 16 posts

Posted 07 September 2005 - 07:09 PM

Could someone tell me which image formats support alpha channels? (out of GIF, JPEG, and PNG)

Thanks.

mike
http://www.coolgroups.com/

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4979 posts
  • LocationBellevue, WA

Posted 07 September 2005 - 08:49 PM

of those three, only PNG supports alpha channels.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 geon

    Senior Member

  • Members
  • PipPipPipPip
  • 893 posts

Posted 07 September 2005 - 10:35 PM

True. But GIF support simple on/off transparency, wich migt be enough in some cases.

#4 Kippesoep

    New Member

  • Members
  • PipPip
  • 21 posts

Posted 08 September 2005 - 04:42 AM

And, although it's not in the short list, there's also TGA. That supports alpha and is very easy to handle in code.

#5 geon

    Senior Member

  • Members
  • PipPipPipPip
  • 893 posts

Posted 08 September 2005 - 07:58 AM

BMP also handle alpha.

My favorite, though for quick tests is PSD. It is pretty bloated, so I would not use it in a final release, but it Is really convienient to just load the layer you want directly from your photoshop document.

I have some loading code here, buried in some useless alphablending stuff:
http://www.ds.hj.se/~geon/image/

#6 servo

    New Member

  • Members
  • Pip
  • 5 posts

Posted 16 September 2005 - 06:33 AM

Ordinary the bitmap file cannot handle alpha blending
Maybe it is in 24 bit, but we must make the mask bitmap for blending. So just have two bitmap, one is original bitmap and other is mask bitmap...
It depends on the code in program.

#7 SigKILL

    Valued Member

  • Members
  • PipPipPip
  • 200 posts

Posted 16 September 2005 - 09:03 AM

When we're allready suggesting other formats, the .dss format also handles alpha channels and is probably the easiest to write an importer for as long as you include the ddraw.h or copy/paste whatever you need. The best bit is that it supports handy stuff like mipmaps, cubemaps, 3d-textures etc.etc.

-si

#8 isolier

    New Member

  • Members
  • Pip
  • 7 posts

Posted 19 September 2005 - 03:04 AM

I second the .tga format. Very easy to implement...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users