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:16:26 EDT (-0400)
  Re: Can use TWO image_map on ONE heigh_field?  
From: Samuel Benge
Date: 14 Apr 2004 16:01:32
Message: <407D9847.6070407@hotmail.com>
jong wrote:

> Hi,
> 
> I try to use two image_map on the heigh_field.> 


Do not worry, Shiann-Jong. There is a way to average two images together 
for use in a height_field. Unfortunately each image must be in 24-bit 
color or 8-bit grayscale. 16-bit grayscale images will *not* work with 
this method.

Here's some code which I just tested:

height_field{
  function 200,200{
   pigment{
    average
    pigment_map{
     [1
      image_map{tga"image_1.tga"
      interpolate 2}
     ]
     [1
      image_map{
      jpeg"image_2.jpg" interpolate 2
      }
     ]
    }
   }
  }
}

Look for 'average' in the POV-Ray documentation to learn how to control 
the average pattern and its pigment_map.

-Samuel Benge


Post a reply to this message

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