POV-Ray : Newsgroups : povray.advanced-users : Vector to Angle : Vector to Angle Server Time
23 Apr 2024 05:11:46 EDT (-0400)
  Vector to Angle  
From: dick balaska
Date: 29 May 2017 15:42:25
Message: <592c79a1$1@news.povray.org>
I'm trying to master converting a vector to an angle in 3D with no luck 
(2D sure, I got that).
I tried two different formulas with varying degrees of not success.
In the code below, the secret to my success will be the VtoA macro.
The result should be, the Cyan sphere, whose position is generated from 
the VtoA macro, should be locked in the center of the screen behind the 
Red sphere, which is locked to the center of the screen, because it is 
look_at.  The current odd return from VtoA is the closest I can get. 
This works good if I move from 0 in only one axis at a time.
Help?

-- 
dik


Post a reply to this message


Attachments:
Download 'test.inc.txt' (2 KB) Download 'animtest.ini.txt' (1 KB)

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