|
|
Tom Melly wrote:
>
> have I imagined it, or can you use an hf as a pigment and then use that in an
> iso-function?
You obviously cannot use a heightfield in an isosurface, but of course you
can use an image_map/image_pattern is an isosurface function just like any
other pigment/pattern. Make sure you use 'interpolate 2', otherwise you
will get problems with the gradient.
>
> If so, can someone post a quick example?
>
The following should give an idea (not tested)
#declare fn_Img=function {
pigment {
image_map {
png "file.png"
map_type 0
interpolate 2
once
}
}
}
#declare fn_iso=function {
z - fn_Img(x, y, 0).gray*0.1
}
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 06 Feb. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|