I am tying to draw a bezier surface and random quadrilaterals holes appear on it.
I have tried copying the bezier example in the OpenGL programming guide (Red Book). The holes still appear. I am using opengl 1.1 through Visual studio6 on a PC using a Matrox Millenium II card. What is happening?
The first frame of the bezier appears fine. When I animate it by rotating round the y axis holes appears in a different position on the surface in the following frames.
PS I use windows 98
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); // Clear The Screen And The Depth Buffer
glLoadIdentity(); // Reset The Current Modelview Matrix
glTranslatef(0.0f,0.0f,zdepth); // Translate Into/Out Of The Screen By z
glRotatef(xrot,1.0f,0.0f,0.0f); // Rotate On The X Axis By xrot
glRotatef(yrot,0.0f,1.0f,0.0f); // Rotate On The Y Axis By yrot
// glBindTexture(GL_TEXTURE_2D, texture[filter]); // Select A Texture Based On filter
xrot+=xspeed; // Add xspeed To xrot
yrot+=yspeed; // Add yspeed To yrot
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.