POV-Ray : Newsgroups : povray.general : Image maps and textures : Re: Image maps and textures Server Time
12 Aug 2024 13:13:44 EDT (-0400)
  Re: Image maps and textures  
From: Ken
Date: 10 Feb 1999 07:08:19
Message: <36C17675.1EFE9EBF@pacbell.net>
Chris Field wrote:
> 
> I was wondering if it was possible to overlay an image map on an object that
> already has a texture.
> can you make the image map transparent in parts and put it on top of a
> texture so that the texture shows through?
> any help greatly appreciated.
> 
> Chris.

Yes it is possible. Read up in the docs on filter/transimit for
image maps. Basicaly you need to make the image_map's background
a single filterable color. You also need to know what the pallet
index for that color is. You could also specifiy a filter all
value if you prefer.

If I recall correctly the syntax for filtering a single color in a
image map is:

pigment{
 image_map{
  gif "MyImage.gif
   interpolate 2
  filter 255,1
 }
}

The first number is the pallet index number for the backgound color
( I have choosen 255 = white for this example) and the second is the
filter amount. I may have that backward so check the docs. You can 
also specify a transmit amount the same way. It's best to use .gif
files for this if possible because it uses a 256 color pallet for the
image which is compatible with the pov syntax for the feature.


-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

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