|
|
Thanks a lot Bob !
Tommy
Hughes, B. wrote:
>#debug concat ( "\n", str(var,0,-1), "\n" )
>
>
>Simply use a pigment_map. For what you ask it would be like:
>
>#declare ClearPart=pigment {rgbf 1}
>#declare ImageMap=pigment {
> image_map {jpeg "Image.jpg"}
> rotate 90*x // turn to face HF plane
>}
>
>height_field {
> png "HF.png"
>pigment {
> gradient y
> pigment_map {
> [0.2 ClearPart]
> [0.2 ImageMap] // from 0.2 on upward
> }
>}
>}
>
>Hopefully this is obvious and doesn't need any explanation. Although you can
>also use water_level 51/256 (approx.), which will remove the lowest 5th
>part, it would be better to "map" it like this anyway, since the idea is to
>apply an image file within a specific range. And then again, if using a
>planar map type, no matter so water_level would work in that case.
>
>Just occured to me that I should make sure of what I'm telling you. Default
>planar image maps would normally propogate infinitely in two
>directions. ----- Okay, checked and it seems to do fine.
>
>Bob H.
>
Post a reply to this message
|
|