POV-Ray : Newsgroups : povray.advanced-users : look_at for objects? : Re: look_at for objects? Server Time
30 Jul 2024 10:12:36 EDT (-0400)
  Re: look_at for objects?  
From: Andrew Clinton
Date: 17 Mar 2000 17:39:37
Message: <38D2DD57.58E73968@ibm.net>
Wow, several stones can kill this one bird... I count 5 macros that do
basically the same thing!  Thanks for all your help, I got it solved.

btw, if anyone's interested, I'm working on a system that will create rock
walls from height_fields that follow a spline, so that nearly seamless caves
can be made...I'm getting close to finishing it now (but it is nowhere near
perfect)

Andrew C


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.
>
> I've been banging my head for a while about this, any help would be
> appreciated!
>
> Andrew C


Post a reply to this message

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