first version of interpolation and prediction, also camera tracking