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:12:01 EDT (-0400)
  Re: How to make object be transparent with alpha channel in the final image=  
From: Hor
Date: 10 Sep 2007 17:30:01
Message: <web.46e5b4878503f272eeed0020@news.povray.org>
Let me explain. Here is a simple example:

http://www.doublebrick.ru/~hor/rings.png

You'll see two rings there, blue and red. They are do not intersect in 3D,
but they projections to the image plane are overlapped with one another.
What I really need, is to make two separate images, one consists of visible
blue parts only, second one with red parts only.

William Tracy wrote:
> pigment { color rgbt <1, 1, 1, 0.5> }

If I make the object partially or even fully transparent, another object
parts which were clipped before, will be shown. In this example, if I make
the red torus trasparent, the complete blue torus will be shown. It is not
what I needed.

I need to find a way to completely "remove" the object from the final image,
clean its area with transparent color and do not show the objects
which are behind object erased. Something like this (red torus cleared
manually in GIMP):

http://www.doublebrick.ru/~hor/ring_blue.png

Tim Attwood wrote:
> You can then compose your object layers seperately.

Sorry, I didn't get your idea.

> Handling layer interation can be tricky (one object casts
> a shadow on another), but you can manage this with
> the no_image keyword.  It's OK in many cases to
> ignore layer interactions anyways.

It's OK for me to go without shadows. Unfortunately, no_image seems to work
like 100% transparency, all objects behind this are shown.


Post a reply to this message

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