|
|
I assume you are using a gradient pattern to color a height field based
on it's height?
In that case, try applying the texture before you scale the height
field.
height_field {
//blah blah, height field stuff
pigment {gradient y //or planar
color_map {
[0 color Green]
[1 color Red]
}
}
}
Or are you asking about applying an image_map pigment to a height field
and having it align properly? In that case, remember that they are at
right angles to each other, and you have to rotate the image_map by 90
degrees on the x-axis before it will line up.
(image_map uses the xy plane by default, height fields are aligned in
the xz plane)
Post a reply to this message
|
|
|
|
Chris;
I thought this was very straightforward and I think is exactly as you
suggest
This is my code:
height_field {
gif "NewGrey.gif" smooth
pigment { gradient y
color_map {
[0 color Blue]
[0.25 color Blue]
[0.46875 color White]
[(0.46875) color ForestGreen]
[0.6 color red 0.65 green 0.65 blue 0.65]
[1.0 color red 0.85 green 0.85 blue 0.85] } }
scale <1233,250,960>
translate <East,Datum,North > } NB. lift the HF to match the water-line
The result is that the file sits very very low in the scene and all within
the blue band......
Values need to be changed from 0 to a max of 0.01 to achieve the color range
A check on the image shows that there are 207 distinct gray levels within
the 8 bits!!!
Chris Huff <Chr### [at] compuservecom> wrote in message
news:3831E2D8.6F713FCF@compuserve.com...
> I assume you are using a gradient pattern to color a height field based
> on it's height?
> In that case, try applying the texture before you scale the height
> field.
>
> height_field {
> file://blah blah, height field stuff
> pigment {gradient y file://or planar
> color_map {
> [0 color Green]
> [1 color Red]
> }
> }
> }
>
> Or are you asking about applying an image_map pigment to a height field
> and having it align properly? In that case, remember that they are at
> right angles to each other, and you have to rotate the image_map by 90
> degrees on the x-axis before it will line up.
> (image_map uses the xy plane by default, height fields are aligned in
> the xz plane)
>
Post a reply to this message
|
|