POV-Ray : Newsgroups : povray.newusers : Q: Image-Maps in Layered Textures : Re: Image-Maps in Layered Textures Server Time
5 Nov 2024 09:26:14 EST (-0500)
  Re: Image-Maps in Layered Textures  
From: Bob Hughes
Date: 27 Feb 2000 06:53:02
Message: <38b9101e@news.povray.org>
You can't get a transparent palette entry which is set in a image program to
show up as transparent in POV-Ray unless you use the 'transmit' keyword.  Such
as:

#declare t_image=texture{pigment{
 image_map {gif "yourimage.gif" transmit 0,1} // index #0, transmit 1
 }}

 my_texture =
 texture { t_ground }
 texture { t_image }

The once keyword is only for non-tiling.  Be certain of your palette index
number/color relation too.  Black might not always be 0.

Bob

"Hendrik Iben" <Hen### [at] bigfootde> wrote in message
news:38B84DD4.E5340CA8@bigfoot.de...
| Hi,
|
| I want to put a structure from a GIF file on another texture.
| So I defined the ground-texture and the texture with the image map and
| created a new texture like this :
| my_texture =
| texture { t_ground }
| texture { t_image } // Color 0 was set to a transparency of 100%.
|
| and applied it to my object.
| But instead of showing the ground-texture where the image shows color 0
| I only see a black area.
| If I set the once-attribute in the image_map I see the ground-texture
| around the image but still have the black areas in the image.
|
| What am I doing wrong ?
|
| Thanks for any help,
| Hendrik Iben
|


Post a reply to this message

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