POV-Ray : Newsgroups : povray.newusers : multiple image_maps Server Time
26 Nov 2024 19:26:49 EST (-0500)
  multiple image_maps (Message 1 to 3 of 3)  
From: Michael Cooper
Subject: multiple image_maps
Date: 4 Dec 2003 10:02:52
Message: <3FCF4E34.5040707@carto.net>
Is it possible to place more than one image_map into a height_field. I 
have two tga images I would like to overlay onto a height_field created 
from a DEM (imported into POVRay as a tga image).

The two images make up different parts of the overall image, i.e., land 
and water. Each image_map is brought in as a pigment object.

I have tried applying to pigments (image_maps) to the same height_field, 
but POVRay only draws the second pigment. I have also tried using 
texture layers to do this. That didn't work as well.

Does anybody have any clues that might help?

Thanks?


Post a reply to this message

From: Tom Melly
Subject: Re: multiple image_maps
Date: 4 Dec 2003 11:20:00
Message: <3fcf5eb0$1@news.povray.org>
"Michael Cooper" <coo### [at] cartonet> wrote in message
news:3FC### [at] cartonet...
>
> Does anybody have any clues that might help?

The following would layer to image maps, one on top of the other. The top layer
would be 50% transparent.

box{
  0, 1
  texture{
    pigment{
      image_map {
        gif "under.gif"
        map_type 0
        interpolate 2
      }
    }
  }

  texture{
    pigment{
      image_map {
        gif "over.gif"
        map_type 0
        interpolate 2
        transmit all 0.5
      }
    }
  }

}

If you wanted just parts of the top image to be transparent, then you can
specify a colour index, rather than 'all' - e.g.:

transmit 0, 0.5 // filters color index 0 by 50%


Post a reply to this message

From: Michael Cooper
Subject: Re: multiple image_maps
Date: 5 Dec 2003 03:38:16
Message: <3FD04593.903@carto.net>
Tom Melly wrote:

> 
> transmit 0, 0.5 // filters color index 0 by 50%
> 

Excellent, I worked!! Thanks for the help.


Post a reply to this message

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