POV-Ray : Newsgroups : povray.newusers : strange behaviour of difference function : Re: strange behaviour of difference function Server Time
30 Jul 2024 06:23:52 EDT (-0400)
  Re: strange behaviour of difference function  
From: Slime
Date: 12 Sep 2004 15:28:33
Message: <4144a361$1@news.povray.org>
> Please notice that there is a part of the object's shadow missing.
> Question 1 is: where did it go?
> Question 2 is: how to get this fixed?

When an intersection test is done with an isosurface, by default only the
first intersection is found. In the area of your image with the missing
shadow, that first intersection (from the shadowed area towards the light
source) is inside the box{} which is differenced from the isosurface. Since
it's inside the box, the intersection doesn't count (because the object does
not exist there). However, since that was the first intersection, the
algorithm doesn't go on to find more intersections with the isosurface, so
it never sees the part which *should* cast a shadow.

Normally this is a helpful speedup, but in this case it's causing problems.
To force POV-Ray to look for more than one intersection, use the max_trace
keyword with an integer for how many intersections to find. In this case
max_trace 3 should work.

You can also use the all_intersections keyword which is essentially
"max_trace infinity".

This is explained in the documentation at the end of "3.4.4  Isosurface
Object".

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.