POV-Ray : Newsgroups : povray.newusers : Making a plane transparent : Re: Making a plane transparent Server Time
25 Apr 2024 01:41:45 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-2023 Persistence of Vision Raytracer Pty. Ltd.