POV-Ray : Newsgroups : povray.newusers : media and output_alpha ? Server Time
13 Nov 2024 03:45:41 EST (-0500)
  media and output_alpha ? (Message 1 to 6 of 6)  
From: Elias Pschernig
Subject: media and output_alpha ?
Date: 3 Jul 2001 10:16:49
Message: <3b41d3d1$1@news.povray.org>
When I set output_alpha to on, it sets the whole media container to alpha 255.

What am I doing wrong?

Thanks

--
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

From: Peter Popov
Subject: Re: media and output_alpha ?
Date: 3 Jul 2001 16:54:11
Message: <i6c4ktob6q2jiooa385emoood1nv2eoghm@4ax.com>
On Tue, 3 Jul 2001 16:16:48 +0200, "Elias Pschernig"
<eli### [at] aonat> wrote:

>When I set output_alpha to on, it sets the whole media container to alpha 255.
>
>What am I doing wrong?

POV's alpha channel only indicates the presence of an object. It is
not affected by transparency nor any interior you give to transparent
objects.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Elias Pschernig
Subject: Re: media and output_alpha ?
Date: 3 Jul 2001 17:28:44
Message: <3b42390c@news.povray.org>
> POV's alpha channel only indicates the presence of an object. It is
> not affected by transparency nor any interior you give to transparent
> objects.
 
Ok, thanks. (I already suspected something like that after seeing it
behaves the same for standard objects.) If I need output with an alpha
channel, are there any options I have with povray ? I don't like
switching to something else at all of course..


Post a reply to this message

From: Peter Popov
Subject: Re: media and output_alpha ?
Date: 3 Jul 2001 17:46:45
Message: <c6f4ktc1e2jm1ai53vrjeebetcvnqdcmi9@4ax.com>
On Tue, 3 Jul 2001 23:28:43 +0200, "Elias Pschernig"
<eli### [at] aonat> wrote:

>Ok, thanks. (I already suspected something like that after seeing it
>behaves the same for standard objects.) If I need output with an alpha
>channel, are there any options I have with povray ? I don't like
>switching to something else at all of course..

Aside from rendering you media container in black and white and using
that as the alpha channel... I am afraid not much can be done within
POV at this stage. Various techniques can be used to make POV render
all your alpha for you, but I need to know more about your particular
case.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Warp
Subject: Re: media and output_alpha ?
Date: 3 Jul 2001 18:14:13
Message: <3b4243b4@news.povray.org>
Peter Popov <pet### [at] vipbg> wrote:
: Aside from rendering you media container in black and white and using
: that as the alpha channel... I am afraid not much can be done within
: POV at this stage.

  AFAIK some work has been/is being done in pov3.5 to make the alpha channel
work better.

-- 
#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: Elias Pschernig
Subject: Re: media and output_alpha ?
Date: 3 Jul 2001 18:15:10
Message: <3b4243ee@news.povray.org>
> Aside from rendering you media container in black and white and using
> that as the alpha channel... I am afraid not much can be done within
> POV at this stage. Various techniques can be used to make POV render
> all your alpha for you, but I need to know more about your particular
> case.

It would really have been nice if it was supprted directly. I use it for some
animations with an alpha channel. (They will be used in a game to do some explosion
and light effects.) The black-and-white options would be better than nothing, i could
at least do something like smoke effects with media. (But would have no alpha channel
as well i guess.) Are there any documents with information for the other techniques ?
All i'd need is instead of just r, g and b for every pixel, also a component
specifying how transparent it is over the background.


Post a reply to this message

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