POV-Ray : Newsgroups : povray.general : trace() position imprecise : Re: trace() position imprecise Server Time
29 Jul 2024 10:30:43 EDT (-0400)
  Re: trace() position imprecise  
From: clipka
Date: 11 Nov 2011 07:41:10
Message: <4ebd17e6$1@news.povray.org>
Am 11.11.2011 09:53, schrieb jkroby:
>  From the image we can see the problem, the 2-ball should be on 2 segments but
> are elsewhere, there is some setting that are clueless?
> Does anyone have ideas?

Yes: Note that the trace() function does not expect a point as the third 
parameter, but a direction. Thus, to achieve the desired results, you 
should replace:

> sphere{ trace(pl,p1,p2), 0.01 pigment{ c2 } }
> sphere{ trace(pl,p1,p3), 0.01 pigment{ c2a } }

with:

sphere{ trace(pl,p1,p2-p1), 0.01 pigment{ c2 } }
sphere{ trace(pl,p1,p3-p1), 0.01 pigment{ c2a } }


Post a reply to this message

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