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:18:47 EDT (-0400)
  Re: Leveller 2 and using hf pigments in iso-functions  
From: Christopher James Huff
Date: 17 Jan 2004 10:56:22
Message: <cjameshuff-A13909.10564417012004@netplex.aussie.org>
In article <rdg### [at] tritonimagicode>,
 Christoph Hormann <chr### [at] gmxde> 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.


> Note the code did not even work with final POV-Ray 3.5, for some reason 
> image_pattern is not allowed in pattern functions (it is commented out 
> in Parse_PatternFunction()).

#declare InterpFn = function {pigment {image_map {tga "hfimage.tga" 
interpolate 4}}}

isosurface {
    function {y - InterpFn(x, z, y).hf}
...

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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