POV-Ray : Newsgroups : povray.binaries.scene-files : Macro to convert rotational axes : Macro to convert rotational axes Server Time
1 Sep 2024 14:26:26 EDT (-0400)
  Macro to convert rotational axes  
From: Chris B
Date: 2 Feb 2006 06:53:28
Message: <43e1f2b8@news.povray.org>
The attached macro is designed to take a set of 3 rotations developed for 
one rotational system and convert it into a set of 3 rotations consistent 
with an alternative rotational system. Initially it was written to convert 
BVH motion capture joint rotation data into POV-Person joint rotations. 
Since then it has been parameterised and extended to increase the rotational 
systems that it can handle and to convert in either direction.

The BVH system uses a sequence of axes (usually Z, X, Y) to define joint 
rotations. The Z and Y rotations are equivalent to negative rotations in the 
standard POV-Ray space. Furthermore, the BVH axes move with the object, 
whereas POV-Ray axes remain stationary as an object is rotated around them.

Comments welcome.

Regards,
Chris B.


Post a reply to this message


Attachments:
Download 'AxisConverter.pov.txt' (10 KB)

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