creating a 3d matrix scene