POV-Ray : Newsgroups : povray.advanced-users : look_at for objects? : Re: look_at for objects? Server Time
30 Jul 2024 04:11:45 EDT (-0400)
  Re: look_at for objects?  
From: Andrew Clinton
Date: 16 Mar 2000 16:54:04
Message: <38D181BD.BE20D01C@ibm.net>
No,no, thats not the problem.  I mean that I am given a *point* (like a
look_at point), not the rotation values.  Here is a camera:

camera {
    location <0,0,0>
    look_at <1,-2,3>
}

Pov-ray will automatically rotate the camera so that it is pointing at
<1,-2,3> while maintaining +y as the up direction (ie the horizon will
still be horizontal).  What I need to find is the x-rotation and
y-rotation that are needed to properly align an object rather than a
camera to point at the point (because look_at can't be used with
objects!).  It is very important that the object not change its z- tilt
for my purposes.

Your right, rotate <xrot,yrot,0> will work but I need the rotation
values first!

Thank you,

Andrew C


Alberto wrote:

> Andrew Clinton wrote:
>
> > ...and I wish to perform an x-rotation then a y-rotation ...
>
> The instruction
> rotate <xrot, yrot, 0>
> will do the work.
>
> See the povdoc section 4.3.1.3.
> I hope this will help you
> Alberto


Post a reply to this message

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