POV-Ray : Newsgroups : povray.advanced-users : look_at for objects? : Re: look_at for objects? Server Time
30 Jul 2024 04:24:14 EDT (-0400)
  Re: look_at for objects?  
From: John VanSickle
Date: 17 Mar 2000 07:30:46
Message: <38D22658.60BC678F@erols.com>
Andrew Clinton wrote:
> 
> Hello,
> 
> Is there any macro available that will perform on an object the same
> function as the look_at command does in a camera?
> 
> In other words, I have an object at <0,0,0> and oriented in the +z
> direction, and I wish to perform an x-rotation then a y-rotation so that
> the object is now pointing at a given point (as in the look_at point for
> the Camera).  I've been using John VanSickle's Reorient macro, but in
> some cases the object receives an undesireable z-rotation so that it
> becomes tilted wrong.

My matrix page at

  http://users.erols.com/vansickl/matrix.htm

has some sample code that may be useful.

Regards,
John


Post a reply to this message

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