|
|
Tim Cook <z99### [at] gmailcom> wrote:
> A'ight, I think I'm doing something wrong here, because I'm not getting
> the fixed-width contour lines.
>
> Here's relevant bit of SDL:
>
> #declare East_Land4 = union {
> object { Land4_P00P00_to_P12P28 }
> object { Land4_P20P00_to_P28P28 }
> object { Land4_P00M04_to_P12M32 }
> object { Land4_P16M04_to_P32M32 }
> object { Land4_P32P00_to_P44_28 }
> object { Land4_P48P00_to_P60P28 }
> object { Land4_P32M04_to_P44M32 }
> object { Land4_P48M04_to_P60M32 }
> object { tamriel_4_12_60_ }
> object { tamriel_4_28_60_ }
> object { tamriel_4_44_60_ }
> object { tamriel_4_60_60_ }
> #declare InputPigment = pigment{
> gradient z
> rotate x*90
> }
> pigment{
> Pg_Elevation_Lines(
> InputPigment,
> 8,
> 3,
> 8,
> 0,
> on
> )
> pigment_map{ [ 0 InputPigment][ 1 rgb x] }
> rotate -90 * x
> scale 16384.0 * 3.2
> translate <0.0, 0.0, -13800.0>
> }
> finish{ ambient 1 diffuse 0 }
> }
>
> Halp?
A simple "gradient z" will not work because it doesn't contain any topographical
information describing your landscape. The macro requires a height map, so
you'll need to produce one from East_Land4 and then pass it to the macro. (You
might even be able to use it for a height_field object instead of that union of
objects you have now, but I'm not sure, since I don't know how your scene is set
up.)
Once you have your height_map, you'll be going forward again. If not, just give
me a holler :)
Post a reply to this message
|
|