preparing for opengl 3D scene