POV-Ray : Newsgroups : povray.newusers : Semitransparent objects on transparent background? : Re: Semitransparent objects on transparent background? Server Time
29 Jul 2024 14:15:58 EDT (-0400)
  Re: Semitransparent objects on transparent background?  
From: Christoph Hormann
Date: 20 Sep 2005 16:15:01
Message: <dgpqia$dnh$1@chho.imagico.de>
Maciej wrote:
> 
> In particular I would like to render a semi-transparent object, e.g. a glass
> pane with shiny edges, on a transparent background. Of course I would like
> it to cast some soft shadow. Is it currently possible with POV-Ray?

Of course there are limitations due to the fact that an alpha channel in 
an image file only allows to linearly mix the background color with the 
image color.  Fancy things like 'pixel appears blue if the background is 
red but red if the background is blue' are not possible but this is not 
a limit of POV-Ray.

Apart from that you can do pretty much anything you want by rendering 
multiple variants of a scene and combining the results.  I included a 
demonstration how this can be done in the KIO-POV package (icons/source 
subdir):

http://www.tu-bs.de/~y0013390/kiopov/index.html

It uses ImageMagick to assemble the images.

Christoph

-- 
POV-Ray tutorials, include files, Landscape of the week:
http://www.tu-bs.de/~y0013390/ (Last updated 24 Jul. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/


Post a reply to this message

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