POV-Ray : Newsgroups : povray.general : Leveller 2 and using hf pigments in iso-functions : Re: Leveller 2 and using hf pigments in iso-functions Server Time
3 Aug 2024 22:13:13 EDT (-0400)
  Re: Leveller 2 and using hf pigments in iso-functions  
From: Christoph Hormann
Date: 17 Jan 2004 12:02:03
Message: <p76od1-hlq.ln1@triton.imagico.de>
Christopher James Huff wrote:
> 
>>It seems to do in case of image_maps, the case where i originally had 
>>problems with it was image_pattern (because it uses GREY_SCALE()).  This 
>>also makes it clear why using two separate images for low and high byte 
>>works.
> 
> 
> I don't know what you were using image_pattern for...the .hf feature 
> takes a vector function, almost always a pigment function. It will never 
> work with image_pattern, because pattern functions return a single float 
> value. And image_pattern won't return any sort of sensible result from a 
> red-green 16-bit data file.

Not for 24 bit tga images (which are a bad choice for heightfield data 
anyway)  If everything works as it should image_pattern in combination 
with a 16 bit grayscale format (png or pgm) would be the most elegant 
solution for this purpose:

#declare fn_Image =
   function {
     pattern {
       image_pattern {
         png "hfimage.png"
         interpolate 2
       }
     }
   }

isosurface {
   function { z - fn_Image(x, y, 0) }
   ...
}

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 11 Jan. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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