POV-Ray : Newsgroups : povray.general : PNG And Transparency. : Re: PNG And Transparency. Server Time
7 Aug 2024 17:25:46 EDT (-0400)
  Re: PNG And Transparency.  
From: Warp
Date: 14 Aug 2001 18:58:28
Message: <3b79ad14@news.povray.org>
The PNG format doesn't use a "this color is transparent" value like GIF
does (at least I have never heard of that).
  What PNG uses is a full alpha channel, that is, you can specify an amount
of transparency for each pixel (regardless of its color).
  For example POV-Ray can output PNGs with alpha channel transparency (using
the +UA command line parameter; when a camera ray doesn't hit anything, it's
marked as transparent).

  Now the bad news: No web browser that I know of supports PNG transparency
correctly. So until they do, you'll have to use GIFs.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.