POV-Ray : Newsgroups : povray.general : Can use TWO image_map on ONE heigh_field? : Re: Can use TWO image_map on ONE heigh_field? Server Time
3 Aug 2024 06:19:53 EDT (-0400)
  Re: Can use TWO image_map on ONE heigh_field?  
From: Mike Williams
Date: 14 Apr 2004 14:42:17
Message: <Khme2DAb2XfAFwwa@econym.demon.co.uk>
Wasn't it jong who wrote:
>Hi,
>
>I try to use two image_map on the heigh_field.
>But the result always show the later one.
>Here is the simplified scene:
>
>height_field {jpeg "mount.jpg" smooth
>pigment {image_map{jpeg "mount_green.jpg"}}
>pigment {image_map{jpeg "road.jpg"}}
>finish  {ambient 0.1 diffuse 0.9 phong 0.5}
>             }
>
>I also try to use pigment_map. But the result
>is not change. It always only show the later one
>(road.jpg) on the heigh_field.
>
>Is there any mistake in the syntax?
>How can I do to show both of them?

1. You can't layer just the pigments, you can only layer complete
textures.

2. When you layer textures, the last one needs to have some sort of
transparency (filter or transmit) otherwise you can't see through it to
the underlying layer.


 height_field {jpeg "mount.jpg" smooth
   texture {pigment {image_map{jpeg "mount_green.jpg"}}}
   texture {
     pigment {image_map{jpeg "road.jpg" transmit all 0.75}}
     finish  {ambient 0.1 diffuse 0.9 phong 0.5}
   }
 }


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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