|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |