|
|
Anyone help me with generating heightfields using MegaPov and the built-in
i_dat3d library routines?
I have no idea how the data points are mapped. I've read the megapov help,
and it doesn't make it clear to me. Sample data files give me unexpected
results.
I've searched the pov site, the net, my mind... just can't make sense of it
all.
For an example, what would the data values be to build a simple four-sided
pyramid shape?
Post a reply to this message
|
|
|
|
> For an example, what would the data values be to build a simple four-sided
> pyramid shape?
Is this a pyramid?
////////////////////////////////////////////////
#version unofficial MegaPov 0.6;
#declare S=3; // data sample sizes
#declare myDataArray2=array[S][S]{
{-2,-2,-2},
{-2, 1,-2},
{-2,-2,-2}
}
#declare myDataFunction2 =
function{ "data_2d_1", <1> library "i_dat3d", myDataArray2, <S,1,S>}
isosurface {
function {(myDataFunction2)}
contained_by { box {<0,0,0>, <2,2,2>}}
threshold 0
max_gradient 4
pigment{rgb<1,0,0>}
scale 4
}
camera { location <10, 10, 10> look_at <0,0,0>}
light_source {<10, 120, 150> color 1}
background {color .3}
////////////////////////////////////////////////
"janger" <d_j### [at] hotmailcom> wrote in message
news:3a03bcf0@news.povray.org...
> Anyone help me with generating heightfields using MegaPov and the built-in
> i_dat3d library routines?
> I have no idea how the data points are mapped. I've read the megapov help,
> and it doesn't make it clear to me. Sample data files give me unexpected
> results.
> I've searched the pov site, the net, my mind... just can't make sense of
it
> all.
> For an example, what would the data values be to build a simple four-sided
> pyramid shape?
>
>
Post a reply to this message
|
|