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)
 
  
 |