POV-Ray : Newsgroups : povray.advanced-users : "mirror image" of image_map used in HF function : "mirror image" of image_map used in HF function Server Time
5 Jul 2024 14:48:15 EDT (-0400)
  "mirror image" of image_map used in HF function  
From: Kenneth
Date: 1 Apr 2008 23:05:01
Message: <web.47f304325a8bc21378dcad930@news.povray.org>
When an image_map is used in a height_field function, the resulting HF shows a
"mirror image"...lower corner of the image_map at x=0, z=1 of the HF, rather
than at x=0, z=0. Adding rotate 180*x or scale -y corrects this (no
translations needed):

height_field{
   function 300,300{
       pigment{image_map{sys "my_image.bmp" map_type 0 interpolate 2}
               rotate 180*x // or scale -y
              }
                   }
            }

Not a problem, once you know that it's necessary.  But I was wondering what the
underlying reason is for the mirror imaging.

Ken W.


Post a reply to this message

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