POV-Ray : Newsgroups : povray.general : How to make object be transparent with alpha channel in the final image? : Re: How to make object be transparent with alpha channel in the final image= Server Time
31 Jul 2024 06:23:25 EDT (-0400)
  Re: How to make object be transparent with alpha channel in the final image=  
From: Tim Attwood
Date: 11 Sep 2007 02:29:10
Message: <46e635b6@news.povray.org>
>> You can then compose your object layers seperately.
>
> Sorry, I didn't get your idea.

If the objects are separate you could render them separately,
but I now see from your example that they aren't really
separate.  With the overlapping rings which image would
be on top?  The way that you envision it either of the rings
might be.  In order to cut up your object you will need to
resort to further CSG or use clipped_by.
Example of cutting by depth...

difference {
   union {
      torus {0.5,0.1
         rotate <75,0,0>
         translate <-0.3,0,0>
         texture {pigment {Red}}
         interior_texture{pigment {Clear}}
      }
   torus {0.5,0.1
      rotate <-75,0,0>
      translate <0.3,0,0>
      texture {pigment {Blue}}
      interior_texture{pigment {Clear}}
   }
}
plane {z,-0.08 pigment {Clear} } // show rear part
//plane {z,-0.08 inverse pigment {Clear} } // show front part
}


Post a reply to this message

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