POV-Ray : Newsgroups : povray.advanced-users : Vector to Angle : Re: Vector to Angle Server Time
28 Apr 2024 18:09:42 EDT (-0400)
  Re: Vector to Angle  
From: dick balaska
Date: 15 Dec 2017 17:26:03
Message: <5a344bfb@news.povray.org>
On 12/15/2017 04:48 PM, Bald Eagle wrote:
> 2 more things:
> 
> 
> 1. I have no idea what version of Doom YOU were playing - a flashlight?  :O
> ;)
> #MomMode

It's not a gun, Mom, it's a flashlight. It just looks like a gun.

> 
> 2.  You need 2 angles - shine the light at +z, then rotate y and rotate x

Looking at this picture
http://snipd.net/wp-content/uploads/2011/05/Spherical-coordinates.png
from this page
http://snipd.net/2d-and-3d-vector-normalization-and-angle-calculation-in-c

I wondered if doing it in two rotates was an answer, as opposed to
rotate <x, y, 0>

> 
> 
> I'll see if I have some time to give it a quick look when I get back tonight.
> Last night was rather late.

Well, you should. There is no greater purpose in life than helping a 
fellow anonymous POV-er.  I don't want no excuses about last night.

dik


Post a reply to this message

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