Results 1 to 4 of 4

Thread: Done but Un-finished!!!

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    Worcester,MA,USA
    Posts
    16

    Done but Un-finished!!!

    I have just finnished all the primary function on my 3d Modeler source code, It draws in 3D no problem, Ah but It wont remember lines they pop out as soon as a new click is issued, So you get to draw one line then apon drawing the next the first vanishes
    any Idea on how to fix this.......Thanks In Advance
    regular filling up of variables
    glBegin(GL_LINES);
    glVertex3f(xb,yb,zb);
    glVertex3f(xf,yf,zf);
    glEnd();
    glutSwapBuffers();
    Whats making it vanish lack of numbered array ...


    [This message has been edited by o9i8 (edited 02-10-2002).]
    opngl

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Done but Un-finished!!!

    You would need to post the code in order for us to see what's going on.

    How you are storing the vertex's and your drawing routine.

    Originally posted by o9i8:

    I have just finnished all the primary function on my 3d Modeler source code, It draws in 3D no problem, Ah but It wont remember lines they pop out as soon as a new click is issued, So you get to draw one line then apon drawing the next the first vanishes
    any Idea on how to fix this.......Thanks In Advance

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: Done but Un-finished!!!

    I think that you must swap the buffers after the "glEnd()"

    With your program, you swap the buffer before telling to OpenGL that you've finished to draw your polys.

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    Worcester,MA,USA
    Posts
    16

    Re: Done but Un-finished!!!

    Leyder Dylan
    good call I fixed it ya I wish it was something simple but well they say there no way to do animation with out array's so here I go write some Big fluky array. mmmmmmmmmmmmmmmmmmmm. I guess I will need pointers

    [This message has been edited by o9i8 (edited 02-18-2002).]
    opngl

Similar Threads

  1. Know if draw call has finished
    By Rodrigo in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-08-2014, 12:41 AM
  2. Sync finished callback
    By MalcolmB in forum OpenGL: General
    Replies: 6
    Last Post: 07-12-2013, 03:57 PM
  3. Just finished new game "Big Fish" but have some questions
    By imported_Optimizer in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 02-01-2005, 12:31 PM
  4. My patience is finished
    By Orzech in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-20-2004, 09:44 AM
  5. My demo is finished and I need feedback ...
    By Arath in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 08-24-2000, 04:41 PM

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