|
|
I was testing out some of the Isosurfaces from the documentation and came
across some thing which I'm not sure if its a bug, a limitation, or so I'm
just not doing it right.
The code below renders to the attached image. There seems to be some weird
normals, shading, or with the general shape. But if I change the viewing
coordinates to something else like <3,2,5> everything looks fine.
Can anybody tell me what I'm doing wrong or make any suggestions?
#include "colors.inc"
camera {
location <2,2,2>
look_at <0,0,0>
}
isosurface{
function{ abs(x)+abs(y)-1}
contained_by {box{-1,1}}
pigment{color White}
}
light_source {
<2,2,2>
color White
}
Post a reply to this message
Attachments:
Download 'isosurface.jpg' (8 KB)
Preview of image 'isosurface.jpg'
|
|
|
|
"Woody" <nomail@nomail> wrote:
> I was testing out some of the Isosurfaces from the documentation and came
> across some thing which I'm not sure if its a bug, a limitation, or so I'm
> just not doing it right.
>
> The code below renders to the attached image. There seems to be some weird
> normals, shading, or with the general shape. But if I change the viewing
> coordinates to something else like <3,2,5> everything looks fine.
>
> Can anybody tell me what I'm doing wrong or make any suggestions?
>
>
>
> #include "colors.inc"
>
> camera {
> location <2,2,2>
> look_at <0,0,0>
> }
>
> isosurface{
> function{ abs(x)+abs(y)-1}
> contained_by {box{-1,1}}
> pigment{color White}
> }
>
>
> light_source {
> <2,2,2>
> color White
> }
Hello,
If you look into the messages tab you may notice a message saying like
"isosurface on line 12 has its maximum gradient set to 1.1 but there was
found a gradient of 128.256. Increase the max_gradient value", very
roughly.
What happens here is that the renderer expects the function to change slower
than it actually does. That's why your surface contains holes. You can
change this expected maximum gradient value by the max_gradient keyword.
Post a reply to this message
|
|