POV-Ray : Newsgroups : povray.unofficial.patches : Photons and Laser Beams : Re: Photons and Laser Beams Server Time
2 Nov 2024 17:20:10 EDT (-0400)
  Re: Photons and Laser Beams  
From: Margus Ramst
Date: 9 Jun 1999 09:07:24
Message: <375e670c@news.povray.org>
Indeed. You'd probably have to use the SuperPatch's trace function, tho.
Here's a macro (by Ron Parker) that might help. I don't remember if R has to
point from the surface or toward the surface, you'll have to test it.

//Returns the mirror vector of R at surface normal N
#macro v_mirror(R,N)
  #local nN=vnormalize(N);
  #local par=vdot( R, nN );
  #local perp=R-par*nN;
  vnormalize(par*nN-perp)
#end

Ken wrote in message <375E5F95.FBA2A85B@pacbell.net>...
>
>It will probably be easier to model using colored cylinders anyway.
>
>--
>Ken Tyler
>
>mailto://tylereng@pacbell.net


Post a reply to this message

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