POV-Ray : Newsgroups : povray.tools.general : vector direction turned into rotation angles : Re: vector direction turned into rotation angles Server Time
8 Feb 2023 09:30:39 EST (-0500)
  Re: vector direction turned into rotation angles  
From: Bald Eagle
Date: 5 Oct 2018 15:20:01
Message: <web.5bb7b859555c34dac437ac910@news.povray.org>
If all you're doing is applying a series of rotations to an object, then start
with the default transformation matrix, and sequentially multiply it by the
rotation matrices of the individual rotations.

If I understand the power of a transformation matrix, then all of the rotations
you perform will be condensed into a single operation so that you can then
perform a rotate <x, y, z> operation with those values.


Easiest way I can think of to work this out is to take a highly asymmetric
object - the Stanford Dragon or just 3 arrowed axes - and instantiate it with
each progressive rotation.

Then in the same scene have the object as transformed by the matrix.

Then you can visually work out the matrix step by step if you have to until it
matches the rotate, rotate, rotate version.


Post a reply to this message

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