POV-Ray : Newsgroups : povray.newusers : Making a plane transparent : Re: Making a plane transparent Server Time
14 Jun 2021 18:42:08 EDT (-0400)
  Re: Making a plane transparent  
From: kurtz le pirate
Date: 30 Mar 2021 12:16:12
Message: <60634ecc$1@news.povray.org>
On 29/03/2021 14:40, schoeni wrote:
> 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.


Just change your code to :

#declare tr = 0.95;
plane {
   <0,phi,1>, 0
   texture {
   pigment {
     square
       color rgbt <0.50, 0.00, 0.00, tr>
       color rgbt <0.00, 0.50, 0.00, tr>
       color rgbt <0.50, 0.00, 0.00, tr>
       color rgbt <0.00, 0.50, 0.00, tr>
     }
   finish {
     diffuse 0.9
     phong 0.5
     }
   }
   clipped_by {
     box {
       <-2.5,-2.5,-2.5>,<2.5,2.5,2.5>
       }
     }
   }

... and play with <tr> value from 0 to 1


-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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