POV-Ray : Newsgroups : povray.advanced-users : Calculating an angle : Re: Calculating an angle Server Time
28 Jul 2024 22:16:17 EDT (-0400)
  Re: Calculating an angle  
From: Mike Andrews
Date: 23 Sep 2003 06:50:01
Message: <web.3f7024e9aab3290d2e746c9a0@news.povray.org>
Hi Tim,

You could try the 'Three Point Transform' macro in

http://news.povray.org/3e54d2d5%241%40news.povray.org

or the slightly modified one by Tor Olav Kristensen further down in the
thread.

Mike Andrews.

Tim Nikias v2.0 wrote:
>What I'm trying to do for my Worm is the following:
>I know the position of the neck, so to speak the
>point where the head will be attached. I know the
>distance between the neck and the eyes.
>And finally, I know a position where the Worm
>should look at.
>
>What I'm trying to do is to calculate an angle for
>neck, so that the eyes, when looking straight-forward,
>will look at the focal-point.
>I somehow can't manage to get my head around
>the problem so that I actually get the correct
>angle. I seem to end up with an angle which would
>point eyes sitting the neck to the object, but eyes
>sitting on the head will actually look too far below
>or above the point.
>
>And yes, I do know of the difference between
>radians and degrees in POV-Rays functions,
>so that's not the reason for looking at wrong
>positions. Any clues? Preferrably with an explanation
>of the approach?
>
>Thanks in advance,
>Tim
>
>Tim Nikias v2.0
>Homepage: http://www.digitaltwilight.de/no_lights
>Email: no_lights (@) digitaltwilight.de
>
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www://www.grisoft.com.
>Version: 6.0.520 / Virus Database: 318 - Release Date: 19.09.2003
>


Post a reply to this message

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