Results 1 to 4 of 4

Thread: OpenGL 3 drawing not working

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2011
    Posts
    2

    OpenGL 3 drawing not working

    I'm trying to draw a some objects the OpenGL 3 way, and nothing shows. I know my laptop supports OpenGL 3, it has a Nvidia 9400M G GPU. I have tried drawing with my own code, using various resources on Google, and I have tried using the project file from NeHe, http://nehe.gamedev.net/wiki/NewLesson1.ashx

    I can get a window up, that runs fine, doesn't freeze. But I just see a black screen.

    Does anyone know what could cause this?

  2. #2
    Member Contributor
    Join Date
    Sep 2010
    Posts
    74

    Re: OpenGL 3 drawing not working

    There's a lot of possible causes. I would recommend you to check for any errors with glGetError(). If there are any, try to pinpoint exactly where they occur.

  3. #3
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,161

    Re: OpenGL 3 drawing not working

    Try doing the most basic of things - set the clearcolor to red and just clear the colour buffer.
    At least then you know your context and window creation is correct.

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2011
    Posts
    2

    Re: OpenGL 3 drawing not working

    Ok, although I was a 100% sure I had done everything like lesson 2 from NeHe, both in my project and lesson 1 from NeHe, and that I couldn't get lesson 2 showing anything yesterday, it seems that it works today. Sorry to bother you people.

Similar Threads

  1. Replies: 0
    Last Post: 04-27-2018, 08:20 PM
  2. OpenGL not working.
    By rickguyface in forum OpenGL: User Software
    Replies: 5
    Last Post: 04-05-2018, 10:56 PM
  3. Flashing colors, clear screen not working, lines not drawing
    By Chdata in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-08-2012, 02:55 PM
  4. Replies: 1
    Last Post: 11-18-2011, 08:13 AM
  5. Drawing dynamic boxes not working correctly
    By jsimps in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-14-2009, 05:49 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