POV-Ray : Newsgroups : povray.general : Vector help. : Re: Vector help. Server Time
10 Aug 2024 17:30:35 EDT (-0400)
  Re: Vector help.  
From: mr art
Date: 23 Nov 1999 20:54:54
Message: <383B4554.B523C94E@gci.net>
Chris, thanks.
I looked at the twysted.net and found something that worked.

#macro v_lookat(P1,P2)
	#local Norm=(vnormalize(P2-P1));
	<0,-degrees(asin(Norm.z)),degrees(asin(Norm.y))>
#end

used like this
object	{
	Eye
	rotate v_lookat(point_to_look_at ,location_of_eye)
	translate location_of_eye
	}

Chris Huff wrote:
> 
> From the macro collection at http://twysted.net/
>


Post a reply to this message

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