POV-Ray : Newsgroups : povray.binaries.images : Alpha channel with background color Server Time
1 Nov 2024 22:18:51 EDT (-0400)
  Alpha channel with background color (Message 1 to 3 of 3)  
From: Cousin Ricky
Subject: Alpha channel with background color
Date: 15 Jan 2012 20:12:20
Message: <op.v75kb7zx6b35ac@rickycallwood.vipowernet.net>
See povray.beta-test.

Note the red and white fringes in the images with the respective POV  
background colors.  The screen shots are from Opera, but Micro$oft  
Internet Explorer and Google Chrome show the same result.  Also, it  
doesn't matter whether +AM1 or +AM2 is used.

#version 3.7;

global_settings { assumed_gamma 1 }

sphere { 0, 1 pigment { rgb 1 } }

light_source { <-1, 1, -1> * 1000, rgb 1 }

camera
{  location <0, 0, -2.5>
    right x
}

#switch (mod (frame_number - 1, 4))
#case (0) #break
#case (1) background { rgb 0 transmit 1 } #break
#case (2) background { rgb x transmit 1 } #break
#case (3) background { rgb 1 transmit 1 } #break
#end

-- 
<Insert witty .sig here>


Post a reply to this message


Attachments:
Download 'alpha_background-screenshot1.png' (37 KB) Download 'alpha_background-screenshot2.png' (37 KB)

Preview of image 'alpha_background-screenshot1.png'
alpha_background-screenshot1.png

Preview of image 'alpha_background-screenshot2.png'
alpha_background-screenshot2.png


 

From: clipka
Subject: Re: Alpha channel with background color
Date: 15 Jan 2012 21:57:47
Message: <4f13922b$1@news.povray.org>
Am 16.01.2012 02:13, schrieb Cousin Ricky:

> #case (2) background { rgb x transmit 1 } #break

Just as a side note, I suggest "red 1" instead of "rgb x". It's a lot 
less cryptic, and about just as easy and compact to type (especially for 
the red color component ;-))


Post a reply to this message

From: clipka
Subject: Re: Alpha channel with background color
Date: 15 Jan 2012 22:00:39
Message: <4f1392d7$1@news.povray.org>
Am 16.01.2012 02:13, schrieb Cousin Ricky:
> See povray.beta-test.
>
> Note the red and white fringes in the images with the respective POV
> background colors. The screen shots are from Opera, but Micro$oft
> Internet Explorer and Google Chrome show the same result. Also, it
> doesn't matter whether +AM1 or +AM2 is used.

That looks fishy indeed. I'll have a look at it.


Post a reply to this message

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