What did you do this week?
-
This week I started with implementing scaling to the animation example.
-
I had a meeting with Mohamed in which we discussed the rotation issue, and we found out that glTF uses
Slerp
interpolator instead of theLinearInterpolator
. UsingSlerp
interpolator for rotation fixed the rotation issue. -
Another issue we faced was with the multi-actor system. Some actors weren't rotating or translating as intended. This was caused because the transformations were applied to the
polydata
before creating an actor; Mohamed suggested applying transformation after the actor is created from polydata (keeping the center to origin).
Expected animation: Interpolation Test Sample
- Created functions to return a list of animation timelines and apply them to the main timeline for keyframe animations.
CubicSpline
has not been implemented to glTF animation yet since it works differently than other Interpolators (takes tangent input to smoothen the curve) but it'll be done before our next meeting.
What is coming up next week?
- Adding skinning animations support
Did you get stuck anywhere?
I still need to figure out how to apply the transformation matrix to the actor and not to the polydata.