POV-Ray : Newsgroups : povray.general : Rays path Length : Re: Rays path Length Server Time
24 Apr 2024 22:28:18 EDT (-0400)
  Re: Rays path Length  
From: Motive17
Date: 10 Jan 2018 08:50:01
Message: <web.5a561958f3020183e278d3b70@news.povray.org>
"Kontemplator" <haf### [at] yahoocom> wrote:
> "Motive17" <nomail@nomail> wrote:
> > Simple question:
> >
> > do you know if there is a way for extracting the length of the rays path from
> > the light source until the camera?
> >
> > Thank you in advance
> >
> > Best regards
>
> try:
>
> vlength(V)
> Length of V. Returns a float value that is the length of vector V. Formula is
> vlength=sqrt(vdot(A,A)). Can be used to compute the distance between two points.
> Dist=vlength(V2-V1).

Yes, you are right, I know this tool but I'd want the length of the entire ray
path hitting an object of the scene.


Post a reply to this message

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