![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I was trying to create a heightfield from a bozo pattern (in megapov 0.3),
but it looks just plain horrible. What am I doing wrong?
camera { location -z*5*2 look_at 0 angle 35 }
light_source { <100,100,-20>, 1 }
height_field
{ pattern 20,20
{ hf_gray_16
bozo color_map { [0 rgb 0][1 rgb 1] } scale .1
}
smooth
scale <5, 3.8+2, .1> translate -<2.5,2,0>
pigment { rgb x }
finish { specular .5 }
rotate x*60
}
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3878a9bb@news.povray.org>, Nieminen Juha
<war### [at] punarastas cs tut fi> wrote:
> I was trying to create a heightfield from a bozo pattern (in megapov
> 0.3), but it looks just plain horrible. What am I doing wrong?
I think you just have the height field aligned wrong, try this:
height_field {
pattern 240, 240 {hf_gray_16 bozo
color_map {
[0 color Black]
[1 color White]
}
scale 0.1
}
smooth
rotate -x*90
scale <5, 3.8+2, 0.1> translate -<2.5,2,0>
texture {
pigment {color Red}
finish {specular 0.5}
}
rotate x*60
}
Remember that a height field's height varies along the y axis.
Also, the resolution you had(20*20) was too coarse to get good results,
so I changed it to 240*240, which is more than enough. Probably less
than 100*100 would be enough with smoothing on.
--
Chris Huff
e-mail: chr### [at] yahoo com
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris Huff <chr### [at] yahoo com> wrote:
: Also, the resolution you had(20*20) was too coarse to get good results,
: so I changed it to 240*240, which is more than enough. Probably less
: than 100*100 would be enough with smoothing on.
Did you actually try to render my example?
The problem is not coarsiness. Even a 2*2 heightfield should look good.
This one looks just awful, no matter what resolution. It looks like it's
missing triangles or something.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3878b18e@news.povray.org>, Nieminen Juha
<war### [at] punarastas cs tut fi> wrote:
> Did you actually try to render my example?
> The problem is not coarsiness. Even a 2*2 heightfield should look good.
> This one looks just awful, no matter what resolution. It looks like it's
> missing triangles or something.
Yes, I did render it. I got a heightfield with a large scaled height
which is scaled small in one direction. Sort of like a sheet that is
crumpled in one direction. I thought what you wanted might be a sheet
with bozo bumps and just got some directions flipped around. The
dimensions were about right for that.
And the resolution does matter, otherwise you get a collection of jagged
points where it is difficult to see anything. I found 50*50 to be just
barely sufficient.
I didn't see any missing triangles, there were some shadows which might
be what you are seeing. If you add ambient 1, you will see they are just
shadows. Adding brilliance 3 makes the contours of the heightfield
clearer.
Did you render my code? No missing triangles or anything else like that.
I rendered this with MacMegaPOV 0.3(Dec 22 release).
--
Chris Huff
e-mail: chr### [at] yahoo com
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Darn, you are right! What foolish newbie mistake. For some reason that only
God can know I was thinking about the heightfield as an image_map.
I'm ashamed of myself. Please forgive me.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I was about to say have a look at the 'height_field' section of the Doc.
Good to know I'm like other people, even if you do have to come down a level or
three to be on even keel with me once in awhile.
Bob
"Nieminen Juha" <war### [at] punarastas cs tut fi> wrote in message
news:3878c3e7@news.povray.org...
> Darn, you are right! What foolish newbie mistake. For some reason that only
> God can know I was thinking about the heightfield as an image_map.
> I'm ashamed of myself. Please forgive me.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Yes, it makes good to fall down at newbiw level sometimes. It avoids
haughtiness.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |