POV-Ray : Newsgroups : povray.general : trace() position imprecise : Re: trace() position imprecise Server Time
29 Jul 2024 10:22:35 EDT (-0400)
  Re: trace() position imprecise  
From: jkroby
Date: 12 Nov 2011 05:20:01
Message: <web.4ebe47d680b5aa3338b76eca0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> 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 } }

Thank you very much, just a dumb mistake!
Roberto


Post a reply to this message

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