POV-Ray : Newsgroups : povray.binaries.images : Alpha channel with background color : Alpha channel with background color Server Time
30 Jul 2024 10:22:44 EDT (-0400)
  Alpha channel with background color  
From: Cousin Ricky
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


 

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