POV-Ray : Newsgroups : povray.general : Transparency maps : Re: Transparency maps Server Time
8 Aug 2024 14:16:04 EDT (-0400)
  Re: Transparency maps  
From: Nathan Kopp
Date: 3 Dec 2000 00:53:08
Message: <3a29dfc4$1@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> wrote...
>
> You might have a look at the material_map section in the pov docu,
> furthermore you can also specify a transmit value for the different color
> indices in an indexed image_map.

Alternatavely, with MegaPov you can use an image_pattern to create a pattern
and then use your texture and a clear texture for the two entries.  For
example, you could use something like this (syntax may be a bit off):
texture{
  image_pattern{ png "img.png" }
  texture_map{
    [0 pigment{rgbt 1}]
    [1 MyTexture]
  }
}

Black parts of img.png will turn out clear, white parts will show MyTexture,
and anything in between will have a blend of the two.

-Nathan


Post a reply to this message

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