I'm trying to convert an A:M spline object to POV-Ray and have a few questions regarding the file format.
First of all, some backgound information: The spline I'm trying to convert has 12 control points, starts at 0 seconds and ends at 100 seconds. The number of keyframes varies among each point from three to seven. E.g., not all points on the spline have the same number of keyframes. Since not all points have the same number of keyframes, I interpolated linearly between the *existing* keyframes in order to arrive at the missing ones.
I am guessing that the translation coordinates contained within CHANNELITEMs get added to the spline model coordinates in reverse order. E.g., add the coordinates of the last CHANNELITEM to the first point of the spline model. I wasn't able to get the spline to work by applying the coordinates in the forward order.
Also, I don't know what to do when keyframes in CHANNELITEMs have rotational angles. For instance, some of the keyframes are of type #23, like the following:
In addition, there are some type #21 for which I'm not sure what the differences are. I think the last two sets of coordinates are pitch and roll angles. To which coordinate axes, and in what order, do I apply the rotations?
Finally, what are the different types of interpolation supported by A:M? All the keyframes indicate Interpolation type 2. What does this mean?
I'm having a lot of problems with the conversion. Results aren't always what I expect. So I'd appreciate any detailed information you could provide me regarding the MDL and PRJ file formats.