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
2 Nov 2024 09:19:15 EDT (-0400)
  Re: Can use TWO image_map on ONE heigh_field?  
From: Alain
Date: 14 Apr 2004 21:29:30
Message: <407de57a$1@news.povray.org>
jong nous apporta ses lumieres ainsi en ce 2004/04/14 13:26... :

>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?
>
>Thanks all,
>
>Shiann-Jong
>
>
>
>  
>
OK you have the hight_map and want to apply both images to it.
Have the second image be a 4 chanels PNG or TGA (RedGreenBlueAlpha). The 
alpha chanel can make the image transparent where you want the 
underlaying image to be seen.
Your third sample line will then read as: pigment{image_map{png "road.png"}}
This should work on any type of object, not just height_fields.
POVRay, Gimp, Paintshop can produce 4 chanels PNGs and TGAs. Others can 
surely do the same.

Alain


Post a reply to this message

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