POV-Ray : Newsgroups : povray.text.tutorials : Does anyone know a "look at" formula? : Re: Does anyone know a "look at" formula? Server Time
19 Apr 2024 07:48:19 EDT (-0400)
  Re: Does anyone know a "look at" formula?  
From: Chris Huff
Date: 4 Jul 2000 11:54:38
Message: <chrishuff-6B4CF8.10544904072000@news.povray.org>
In article <3961f398@news.povray.org>, "Ian Witham" 
<ian### [at] hotmailcom> wrote:

> If I have an object centred on the origin which I say is "looking" 
> straight down the +z axis for instance, what is a formula to rotate 
> this object so that it is "looking" at another given vector?
> I hope to use this formula to have each object on a 3d spline facing the
> next, if you see what I'm getting at.

Try the Reorient() macro:

Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/

Post a reply to this message

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