add materials,
only use one animation for switching between 2D and 3D