POV-Ray : Newsgroups : povray.newusers : How to combine an image map, color and transparency? : Re: How to combine an image map, color and transparency? Server Time
1 May 2024 15:56:15 EDT (-0400)
  Re: How to combine an image map, color and transparency?  
From: Bald Eagle
Date: 24 Nov 2014 15:20:01
Message: <web.547391db54c41e225e7df57c0@news.povray.org>
I THINK what you might want to do is embed those into an IMAGE_PATTERN.

The image_pattern will use the image file to determine the mapping values.
Depending on the mapping value, you can either assign a color, or the "pieces"
of the actual image file using image_map.

So, for example -

#declare ImageMap = pigment {image_map {png "ImageFile.png" once} };

texture {
 image_pattern {png "ImageFile.png" use_alpha once}
 texture_map {
  [0.0 SomePigment ]
  [0.3 AnotherPigment ]
  [0.6 pigment { ImageMap }]
  [1.0 pigment { transmit 1 }]  // fully transparent
 }
}


Post a reply to this message

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