Original Post
I'm new to openGL and have been successfully playing with and modifying both Lesson 30(3D collisions) and Lesson 35 (playing AVI). Next I want to merge the two by playing an AVI file in a small section of the overall display while the spheres move around. I created a functions InitiliazeAVI() and DrawAVI() to setup and handle the AVI functions. I inserted DrawAVI() inside DrawGLScene() of Lesson 30. The end result is that I only get a gray box in the center of the display. I'm sure this is easy, but I could use some assistance. void DrawAVI() { // Clear Screen And Depth Buffer glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Grab A Frame From The AVI GrabAVIFrame(frame); if(bg) // Is Background Visible? { glLoadIdentity(); // Reset The Modelview Matrix glBegin(GL_QUADS); // Begin Drawing The Background (One Quad) // Front Face glTexCoord2f(1.0f, 1.0f); glVertex3f( 11.0f, 8.3f, -20.0f); glTexCoord2f(0.0f, 1.0f); glVertex3f(-11.0f, 8.3f, -20.0f); glTexCoord2f(0.0f, 0.0f); glVertex3f(-11.0f, -8.3f, -20.0f); glTexCoord2f(1.0f, 0.0f); glVertex3f( 11.0f, -8.3f, -20.0f); glEnd(); // Done Drawing The Background } glFlush(); // Flush The GL Rendering Pipeline }