POV-Ray : Newsgroups : povray.general : Look_at_macro : Re: Look_at_macro Server Time
30 Jul 2024 22:22:18 EDT (-0400)
  Re: Look_at_macro  
From: Tor Olav Kristensen
Date: 12 Mar 2008 18:58:11
Message: <47d86e13$1@news.povray.org>
Tim Attwood wrote:
> I think you want something like Reorient_Trans
> from transforms.inc
> 
> //+kff360
> #include "transforms.inc"
> #declare P = <2*sin(clock*60),3,4*sin(clock*36)>;
> sphere {P,0.05
>    pigment {Red}
> }
> cone {<0,0,0>,0.05,<0,0,0.5>,0
>    pigment {Cyan}
>    Reorient_Trans(z,vnormalize(P))
> } 

There's no need to normalize the vectors
going into the Reorient_Trans() macro.

-- 
Tor Olav
http://subcube.com


Post a reply to this message

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