POV-Ray : Newsgroups : povray.general : PNG and Alpha Server Time
7 Aug 2024 07:17:41 EDT (-0400)
  PNG and Alpha (Message 1 to 10 of 24)  
Goto Latest 10 Messages Next 10 Messages >>>
From: QuadHall
Subject: PNG and Alpha
Date: 10 Nov 2001 06:04:00
Message: <3bed09a0$1@news.povray.org>
Recently (I think) there were some postings in one of the povray newsgroups
involving POV produced PNG files (with an alpha channel) and the internet
browsers that properly displayed such images.  One of these postings, if my
questionable memory serves me, had a link to an example web page-->I think
it had a png image of a lit match against some sort of varied background .
Does anyone remember seeing these posts? (and if so, which newsgroup, date,
etc?)  thanks.....

Quadhall


Post a reply to this message

From: Warp
Subject: Re: PNG and Alpha
Date: 10 Nov 2001 07:24:58
Message: <3bed1c99@news.povray.org>
QuadHall <tre### [at] ww-interlinknet> wrote:
: Recently (I think) there were some postings in one of the povray newsgroups
: involving POV produced PNG files (with an alpha channel) and the internet
: browsers that properly displayed such images.  One of these postings, if my
: questionable memory serves me, had a link to an example web page-->I think
: it had a png image of a lit match against some sort of varied background .
: Does anyone remember seeing these posts? (and if so, which newsgroup, date,
: etc?)  thanks.....

  I think that post was made by me. I don't remember which thread it was,
though.
  The page is this one:

http://www.cs.tut.fi/~warp/alphatest.html

  If the browser supports alpha properly, it should look like this:

http://www.cs.tut.fi/~warp/alphatestsnapshot.jpg

  The only browsers I know that support the alpha channel properly are
Netscape 6.x, Mozilla 0.9.x (which is practically the same thing) and
Internet Explorer 5.x for MacOS (the Windows version has no proper support).

-- 
#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

From: Mahalis
Subject: Re: PNG and Alpha
Date: 10 Nov 2001 08:00:12
Message: <3bed24dc$1@news.povray.org>
Does IE6 show PNG transparency properly?

--

//Mahalis
camera{location<0,0.25,-2> look_at 0.5*y} #declare T=texture{pigment{crackle
scale 0.5 rotate 90 turbulence 0.75 color_map{[0 rgb 1][0.05 rgb 1][0.1
rgb<1,0.25,1>][0.25 rgbf 1][1 rgbf 1]}} finish{ambient 1}} #declare
c=difference{torus{0.5,0.1 rotate -90*x}box{<0.7,0,0.2>,<-0.7,-0.7,-0.2>}}
merge{object{c translate<0.5,0.5,0>} object{c translate<-0.5,0.5,0>}
cylinder{<1,0.5,0>,<1,0,0>,0.1} cylinder{<-1,0.5,0>,<-1,0,0>,0.1}
cylinder{0.5*y,0,0.1} texture{T}}
--


"Warp" <war### [at] tagpovrayorg> wrote in message
news:3bed1c99@news.povray.org...
> QuadHall <tre### [at] ww-interlinknet> wrote:
> : Recently (I think) there were some postings in one of the povray
newsgroups
> : involving POV produced PNG files (with an alpha channel) and the
internet
> : browsers that properly displayed such images.  One of these postings, if
my
> : questionable memory serves me, had a link to an example web page-->I
think
> : it had a png image of a lit match against some sort of varied background
.
> : Does anyone remember seeing these posts? (and if so, which newsgroup,
date,
> : etc?)  thanks.....
>
>   I think that post was made by me. I don't remember which thread it was,
> though.
>   The page is this one:
>
> http://www.cs.tut.fi/~warp/alphatest.html
>
>   If the browser supports alpha properly, it should look like this:
>
> http://www.cs.tut.fi/~warp/alphatestsnapshot.jpg
>
>   The only browsers I know that support the alpha channel properly are
> Netscape 6.x, Mozilla 0.9.x (which is practically the same thing) and
> Internet Explorer 5.x for MacOS (the Windows version has no proper
support).
>
> --
> #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

From: ARTis
Subject: Re: PNG and Alpha
Date: 10 Nov 2001 12:09:16
Message: <3bed5f3c@news.povray.org>
>   I think that post was made by me. I don't remember which thread it was,
> though.
>   The page is this one:
>
> http://www.cs.tut.fi/~warp/alphatest.html
>
>   If the browser supports alpha properly, it should look like this:
>
> http://www.cs.tut.fi/~warp/alphatestsnapshot.jpg
>
>   The only browsers I know that support the alpha channel properly are
> Netscape 6.x, Mozilla 0.9.x (which is practically the same thing) and
> Internet Explorer 5.x for MacOS (the Windows version has no proper
support).

Can someone explain how to make PNG's with an alpha channel with POV?


Post a reply to this message

From: Adrien Beau
Subject: Re: PNG and Alpha
Date: 10 Nov 2001 12:30:20
Message: <3BED6437.7461EAD7@free.fr>
ARTis wrote:
> 
> Can someone explain how to make PNG's with an alpha channel with POV?

IIRC, use PNG as output format, and add the +UA switch to the
command-line. It's in the docs.

-- 
Adrien Beau   adr### [at] freefr   http://adrien.beau.free.fr/


Post a reply to this message

From: Slime
Subject: Re: PNG and Alpha
Date: 10 Nov 2001 15:30:15
Message: <3bed8e57@news.povray.org>
No, but if you work with web pages at all, and you're interested in using
transparent images in IE, there's an Active-X object that loads a PNG file
and displays it as a transparent image, basically simulating as though the
PNG were just any other image on the page. There's a script which does the
conversion from image tags to this Active-Xobject easily at
http://www.youngpup.net/?request=/snippets/sleight.xml

- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]

"Mahalis" <don### [at] fakeycom> wrote in message
news:3bed24dc$1@news.povray.org...
> Does IE6 show PNG transparency properly?
>
> --
>
> //Mahalis
> camera{location<0,0.25,-2> look_at 0.5*y} #declare
T=texture{pigment{crackle
> scale 0.5 rotate 90 turbulence 0.75 color_map{[0 rgb 1][0.05 rgb 1][0.1
> rgb<1,0.25,1>][0.25 rgbf 1][1 rgbf 1]}} finish{ambient 1}} #declare
> c=difference{torus{0.5,0.1 rotate -90*x}box{<0.7,0,0.2>,<-0.7,-0.7,-0.2>}}
> merge{object{c translate<0.5,0.5,0>} object{c translate<-0.5,0.5,0>}
> cylinder{<1,0.5,0>,<1,0,0>,0.1} cylinder{<-1,0.5,0>,<-1,0,0>,0.1}
> cylinder{0.5*y,0,0.1} texture{T}}
> --
>
>
> "Warp" <war### [at] tagpovrayorg> wrote in message
> news:3bed1c99@news.povray.org...
> > QuadHall <tre### [at] ww-interlinknet> wrote:
> > : Recently (I think) there were some postings in one of the povray
> newsgroups
> > : involving POV produced PNG files (with an alpha channel) and the
> internet
> > : browsers that properly displayed such images.  One of these postings,
if
> my
> > : questionable memory serves me, had a link to an example web page-->I
> think
> > : it had a png image of a lit match against some sort of varied
background
> .
> > : Does anyone remember seeing these posts? (and if so, which newsgroup,
> date,
> > : etc?)  thanks.....
> >
> >   I think that post was made by me. I don't remember which thread it
was,
> > though.
> >   The page is this one:
> >
> > http://www.cs.tut.fi/~warp/alphatest.html
> >
> >   If the browser supports alpha properly, it should look like this:
> >
> > http://www.cs.tut.fi/~warp/alphatestsnapshot.jpg
> >
> >   The only browsers I know that support the alpha channel properly are
> > Netscape 6.x, Mozilla 0.9.x (which is practically the same thing) and
> > Internet Explorer 5.x for MacOS (the Windows version has no proper
> support).
> >
> > --
> > #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

From: QuadHall
Subject: Re: PNG and Alpha
Date: 10 Nov 2001 23:38:28
Message: <3bee00c4$1@news.povray.org>
Thanks, that's what I was looking for.  I had just downloaded IE6 and wanted
to see if it properly supported PNG alpha channels.....it doesn't.  Oh
well.......anyways, thanks again,

Quadhall

"Warp" <war### [at] tagpovrayorg> wrote in message
news:3bed1c99@news.povray.org...
> QuadHall <tre### [at] ww-interlinknet> wrote:
> : Recently (I think) there were some postings in one of the povray
newsgroups
> : involving POV produced PNG files (with an alpha channel) and the
internet
> : browsers that properly displayed such images.  One of these postings, if
my
> : questionable memory serves me, had a link to an example web page-->I
think
> : it had a png image of a lit match against some sort of varied background
.
> : Does anyone remember seeing these posts? (and if so, which newsgroup,
date,
> : etc?)  thanks.....
>
>   I think that post was made by me. I don't remember which thread it was,
> though.
>   The page is this one:
>
> http://www.cs.tut.fi/~warp/alphatest.html
>
>   If the browser supports alpha properly, it should look like this:
>
> http://www.cs.tut.fi/~warp/alphatestsnapshot.jpg
>
>   The only browsers I know that support the alpha channel properly are
> Netscape 6.x, Mozilla 0.9.x (which is practically the same thing) and
> Internet Explorer 5.x for MacOS (the Windows version has no proper
support).
>
> --
> #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

From: QuadHall
Subject: Re: PNG and Alpha
Date: 11 Nov 2001 00:34:13
Message: <3bee0dd5@news.povray.org>
Just tried the script with IE6 and Warp's example page-->works fine, now
I've got to try getting POV to make a few PNG files with alpha channels and
slap 'em into some web pages...........

Quadhall

"Slime" <noo### [at] hotmailcom> wrote in message
news:3bed8e57@news.povray.org...
> No, but if you work with web pages at all, and you're interested in using
> transparent images in IE, there's an Active-X object that loads a PNG file
> and displays it as a transparent image, basically simulating as though the
> PNG were just any other image on the page. There's a script which does the
> conversion from image tags to this Active-Xobject easily at
> http://www.youngpup.net/?request=/snippets/sleight.xml
>
> - Slime
> [ http://www.slimeland.com/ ]
> [ http://www.slimeland.com/images/ ]
>
> "Mahalis" <don### [at] fakeycom> wrote in message
> news:3bed24dc$1@news.povray.org...
> > Does IE6 show PNG transparency properly?
> >
> > --
> >
> > //Mahalis
> > camera{location<0,0.25,-2> look_at 0.5*y} #declare
> T=texture{pigment{crackle
> > scale 0.5 rotate 90 turbulence 0.75 color_map{[0 rgb 1][0.05 rgb 1][0.1
> > rgb<1,0.25,1>][0.25 rgbf 1][1 rgbf 1]}} finish{ambient 1}} #declare
> > c=difference{torus{0.5,0.1
rotate -90*x}box{<0.7,0,0.2>,<-0.7,-0.7,-0.2>}}
> > merge{object{c translate<0.5,0.5,0>} object{c translate<-0.5,0.5,0>}
> > cylinder{<1,0.5,0>,<1,0,0>,0.1} cylinder{<-1,0.5,0>,<-1,0,0>,0.1}
> > cylinder{0.5*y,0,0.1} texture{T}}
> > --
> >
> >
> > "Warp" <war### [at] tagpovrayorg> wrote in message
> > news:3bed1c99@news.povray.org...
> > > QuadHall <tre### [at] ww-interlinknet> wrote:
> > > : Recently (I think) there were some postings in one of the povray
> > newsgroups
> > > : involving POV produced PNG files (with an alpha channel) and the
> > internet
> > > : browsers that properly displayed such images.  One of these
postings,
> if
> > my
> > > : questionable memory serves me, had a link to an example web page-->I
> > think
> > > : it had a png image of a lit match against some sort of varied
> background
> > .
> > > : Does anyone remember seeing these posts? (and if so, which
newsgroup,
> > date,
> > > : etc?)  thanks.....
> > >
> > >   I think that post was made by me. I don't remember which thread it
> was,
> > > though.
> > >   The page is this one:
> > >
> > > http://www.cs.tut.fi/~warp/alphatest.html
> > >
> > >   If the browser supports alpha properly, it should look like this:
> > >
> > > http://www.cs.tut.fi/~warp/alphatestsnapshot.jpg
> > >
> > >   The only browsers I know that support the alpha channel properly are
> > > Netscape 6.x, Mozilla 0.9.x (which is practically the same thing) and
> > > Internet Explorer 5.x for MacOS (the Windows version has no proper
> > support).
> > >
> > > --
> > > #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

From: Warp
Subject: Re: PNG and Alpha
Date: 11 Nov 2001 02:44:34
Message: <3bee2c61@news.povray.org>
Slime <noo### [at] hotmailcom> wrote:
: No, but if you work with web pages at all, and you're interested in using
: transparent images in IE, there's an Active-X object that loads a PNG file

  And makes the page Windows-IE-only?

  (And you could people PLEASE quote properly?)

-- 
#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

From: Thorsten Froehlich
Subject: Re: PNG and Alpha
Date: 11 Nov 2001 04:42:08
Message: <3bee47f0$1@news.povray.org>
In article <3bee2c61@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>   And makes the page Windows-IE-only?

What, the web wasn't invented by Microsoft?

    Thorsten


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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