POV-Ray : Newsgroups : povray.beta-test : transform.inc : Reorient_Trans(Axis1,Axis2) : transform.inc : Reorient_Trans(Axis1,Axis2) Server Time
30 Jul 2024 20:31:50 EDT (-0400)
  transform.inc : Reorient_Trans(Axis1,Axis2)  
From: KalleK
Date: 5 Oct 2001 14:53:55
Message: <3bbe01c3$1@news.povray.org>
Hi!

According to the doc's this macro should align x to Axis1 and z to
Axis2.

calling Reorient_Trans(x,z) should do nothing, but it aligns x to z
and z to -x.
I think at first it was designed to align Axis1 to Axis2.
Doing animations with
 Reorient_Trans (x,vrotate (x,y*(clock*360+.1))
(".1" because Reorient_Trans (x,x) driggers an error in the macro)
and
 Reorient_Trans (vrotate (z,y*clock*360),vrotate (z,y*clock*360)
leads to the conclusion that it aligns axis1 to axis2

the first example gives a simple turning object (x is aligned to a
rotating vector)
but it should (maybe) trigger some error, because Axis1 is not in 90
degree (don't know that word "opposite of parallel" rigth now) with
Axis2, or it should shear the object.

the second example gives a still image whereas it should give a
rotating object.

if only the docs are changed according to "this aligns axis1 to
axis2" there's a proplem, that this gives infinite solutions - you can
turn your object around axis2 - every rotation is a solution for that
macro.
I'm sorry, i'm not that used to matrix's anymore to give a working
macro, but maybe the matrix-master may speak up?

If I remember correctly, this was brought up early by someone else but
noone answered, and it wasn't fixed for that old beta

cukk

win98, beta4


Post a reply to this message

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