POV-Ray : Newsgroups : povray.advanced-users : Vector to Angle : Re: Vector to Angle Server Time
28 Apr 2024 23:56:53 EDT (-0400)
  Re: Vector to Angle  
From: dick balaska
Date: 15 Dec 2017 02:30:21
Message: <5a337a0d$1@news.povray.org>
On 05/29/2017 03:42 PM, dick balaska wrote:

 > Help, Math wizards, you're my only hope.

I have started again to try to tackle this problem.

Scott's solution gave me a vector, which is not what I need. :(  I need 
an angle.

http://www.buckosoft.com/tteoac/video/testRenders/test2.mp4

The first 3 moves are correct, when I move x or z. As soon as I move 
both, all hell breaks loose.

The kid in my movie is carrying a flashlight.  It has an offset of 
<-0.4,-0.3,0.7> from the origin and points down the Z.
The red ball is Lookat.
I have the angle between Lookat-Camera shown by the cyan ball.

It seems to me that if I move my flashlight to its offset, rotate it by 
the Lookat-Camera angle, then add the Camera vector, it SHOULD BE LOCKED 
TO THE CAMERA.

argh.


Post a reply to this message


Attachments:
Download 'test2.pov.txt' (5 KB) Download 'animtest.ini.txt' (1 KB)

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