|
![](/i/fill.gif) |
Wasn't it Carl Hoff who wrote:
>> Here's a rather artificial case where a bounding sphere is faster
>>
>> #include "functions.inc"
>> camera { location <0, 0, -4> look_at <0, 0, 0> angle 50}
>> light_source {<-100,200,-100> colour rgb 1}
>>
>> #declare Thing =
>> isosurface {
>> function { x*x + y*y + z*z - 1 + f_noise3d(x*10, y*10, z*10)*0.3}
>> max_gradient 5
>> contained_by{sphere{0,2}}
>> pigment {rgb 1}
>> bounded_by {box {-1,1}}
>> //bounded_by {sphere {0,1}}
>> }
>>
>> object {Thing}
>
>Thanks... I see what I was missing now.
One interesting thing to note about this scene is that it behaves
differently with +UR and -UR.
With +UR, POV-Ray says "Warning: unnecessary bounding object removed"
and it renders *faster* without the bounds.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |