prepare 3d view