Results 1 to 2 of 2

Thread: bezier surface, unwanted holes

  1. #1

    bezier surface, unwanted holes

    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?

  2. #2

    Re: bezier surface, unwanted holes

    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

    void initBoat()

    int DrawGLScene(GLvoid)

    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
    return TRUE;

Similar Threads

  1. Two Bezier Surface
    By Raul26 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-21-2016, 01:09 AM
  2. convert four interconnected bezier curves into bezier surface patch
    By pat1il in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 07-08-2015, 09:33 AM
  3. Surface Bezier - Collisions
    By imported_Pierre in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 02-01-2010, 05:30 PM
  4. bezier surface
    By curonia in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-15-2004, 02:09 PM
  5. Bezier-Surface == terrain?
    By aBeginner in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 01-27-2002, 06:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean