POV-Ray : Newsgroups : povray.newusers : Making a plane transparent : Making a plane transparent Server Time
18 Jun 2021 02:49:40 EDT (-0400)
  Making a plane transparent  
From: schoeni
Date: 29 Mar 2021 08:45:00
Message: <web.6061cacbc5d043ade47f5359fc7796ae@news.povray.org>
An easy problem here, I want this plane to be somewhat transparent to see the
sphere behind it. I thought 'rgbf' or 'rgbt' should do it but I cannot make it
work.

I use Povray 3.7 for Mac. My Code

"""

#include "colors.inc"

background { colour Black }

#declare phi = (1/2)*(1+sqrt(5));

plane {
 <0,phi,1>, 0
 texture {
  pigment {
        square color rgbt<0.5,0,0,0.5> color rgbt<0,0.5,0,0.5>  color
rgbt<0.5,0,0,0.5> color rgbt<0,0.5,0,0.5>

       }
       finish { diffuse 0.9 phong 0.5}
 }
 clipped_by { box {<-2.5,-2.5,-2.5>,<2.5,2.5,2.5>} }
}

sphere {
 <0,-1,-1>,1
 pigment { Blue }
}


camera {
   //orthographic
   location  <0, 0, 5>
   up        <0.0, 1.0,  0.0>
   right     <4/3, 0.0,  0.0>
   look_at   <0, 0,  0>
   rotate <0,0,0>
}

light_source { <200,500,-100> White
    spotlight
    radius  100
    falloff 200
    point_at <0,0,0>
}

"""


Post a reply to this message


Attachments:
Download 'plane.png' (95 KB)

Preview of image 'plane.png'
plane.png


 

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