Results 1 to 2 of 2

Thread: OpenGL SuperBible's example moving very rough

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    1

    OpenGL SuperBible's example moving very rough

    I have compile OpenGL SuperBible 5e's example of Chapter08\fbo_drawbuffers. The source code is come fomr SVN.

    When I move the camera with keyboard, I find that the moving is very rough and I cannot moving the camera with hold 2 key (KEY_UP/KEY_DOWN)+(KEY_LEFT/KEY_RIGHT)

    However, I run the original fbo_drawbuffers.exe in which the moving is very smooth.

    I also run other chapter's original exe example. The moving is also very rough.

    Anyone know that where is the problem?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: OpenGL SuperBible's example moving very rough

    Probably the way key presses are handled.
    Consider using glutSpecialDownFunc and glutSpecialUpFunc instead of glutSpecialFunc which generate an event for each key repetition done by the OS, this will result in very jerky movement.

Similar Threads

  1. Replies: 1
    Last Post: 02-03-2017, 05:49 AM
  2. OpenGL SuperBible 6 help please!
    By walshy1112 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-28-2014, 08:28 AM
  3. OpenGL Superbible 6th ed.
    By DreamCore in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 10-28-2013, 10:08 AM
  4. OpenGL SuperBible CD-ROM
    By janhouse00 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-23-2002, 02:31 PM
  5. OpenGL SuperBible
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-08-2002, 05:00 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