Marlon Tabone's profile

Linear Interpolation and Spline Interpolation

Title: Linear Interpolation and Spline Interpolation
Module: IS52020B/S Perception and Multimedia Computing (2018-2019)

About.
When it came to programming this animation I was finding it difficult to have the ball move to the next key frame all of the way and therefore in order to achieve that I applied some logic which takes the current frame and determines which function should be running and for how long. 

Moreover I also had a problem when it came to applying the modulation for counter and frames which are responsible for restarting the whole process of the animation and each individual key frame to key frame animation respectively. 

Through each iteration my frames which should be on par in value with counter was getting offset and this resulted in confusion with the logic applied in the draw. In implementing and solving these problems I managed to get a smooth animation which draws the blue ball from key frame to key frame in a loop. 

https://gitlab.doc.gold.ac.uk/mtabo002/coursework-two/tree/master/LAB5/PAM5b
It would seem as tough when drawing the ball using the ofInterpolateCatmullRom function therefore by implementing curves I can see that the ball reaches a peak in acceleration and speed  around the middle of the curve and is relatively slowed down at the beginning and the end of the curve. 

Instead of travelling at a constant speed, the value of speed is determined by the ball’s proximity to the ends of the curve, registering a lower value when close to the ends and a higher value when far removed from the ends.

https://gitlab.doc.gold.ac.uk/mtabo002/coursework-two/tree/master/LAB5/PAM5c
This project was part of a coursework submission for the Perception and Multimedia Computing Module in year II of my BSc. (Hons) Digital Arts Computing Degree. All source code for this project can be found at my Git Lab account by following the link below.

https://gitlab.doc.gold.ac.uk/mtabo002/coursework-two/tree/master/LAB5/PAM5C2


Linear Interpolation and Spline Interpolation
Published:

Linear Interpolation and Spline Interpolation

An exercise in linear and spline interpolation using C++.

Published: