Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: OpenGL 1.0 to OpenGL 3.2 Core migration

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2010
    Posts
    24

    OpenGL 1.0 to OpenGL 3.2 Core migration

    Before 10 seconds I realize the end of known world.

    The deprecation of glBegin/glEnd, display lists and many many others sounds to me like a need to learn a 3d graphics machine from scratch. (I never used shading language before because I am hobbist)

    Is there a migration tutorial out there for all deprecated things?
    like "Hey dude! Don't use display lists anymore. Use this piece of code instead".

    PS: No glBegin() dude! How the hell I can draw triangle strips or lines?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2006
    Location
    greece
    Posts
    181

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    No need to panic! You can still create a compatibility context with OpenGL 3.2 to access your favorite functions.
    But if you are serious about it, start learning core OpenGL 3.2. It may enforce a different coding paradigm but it is the fast code path, plus, allows so many more effects than plain ole 1.0.
    Look at www.opengl.org for some recently posted tutorials.
    while(1){keyboardsolo(FORTE, BPM_190);}

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

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    For posterity, as the front page news shifts with time, here is the direct link :
    http://nopper.tv/opengl_3_2.html

  4. #4
    Senior Member OpenGL Pro Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    1,214

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    Does it work on your machine, Zbuffer?
    Because, I didn't succeed to execute the projects (on either of three different configurations). Probably error in glew32.dll (rebuilt by nopper). Debugging points to
    Code :
    if (!glewIsSupported("GL_VERSION_3_2"))
    and the message "OpenGL 3.2 not supported." Which is certainly not true on all my machines!

    That's the reason I like to skip additional libraries in the tutorials.

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,042

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    To replace immediate mode (glBegin / glEnd) you can use this library: glim

    You need to use GLSL, though, but that's so much more powerful anyway, you'll never want to do without it after you tried it.

    Jan.
    GLIM - Immediate Mode Emulation for GL3

  6. #6
    Member Contributor
    Join Date
    Feb 2009
    Posts
    73

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    Quote Originally Posted by Gessos Paul
    Before 10 seconds I realize the end of known world.

    The deprecation of glBegin/glEnd, display lists and many many others sounds to me like a need to learn a 3d graphics machine from scratch. (I never used shading language before because I am hobbist)

    Is there a migration tutorial out there for all deprecated things?
    Nope. I ran into this last week. You want to learn "Vertex Buffer Objects" (VBO's) to replace all the glBegin/glEnd stuff. GLSL is actually not related to this -- if you are not already using "shaders" then don't worry, it's a separate issue.

    The material available on the web is of varying quality and I won't recommend any of it in particular (take your pick!). Because of that, I am actually working on such a tutorial right now. I will probably be posting a draft of it here in the next few days for review and criticism.

    If you have access to a major library system, the 7th edition of the redbook has some stuff on VBO's in it (oddly, it also still seems to focus on immediate mode, despite being geared to 3.0!). But the best thing I've found was the very first section in "More OpenGL Game Programming" (David Aster, ed.) Hopefully the rest of the book is as well written because it looks to contain some interesting stuff...more about general 3D than anything particular to do with games.

    Anyway, don't freak out, it's not that extreme a change, it makes more sense, and it's ultimately an easier, less ridiculous, more "powerful" way to program, I think. If you want to wait those few days, you can save a lot of time having someone who just wasted the time explain it instead And let me know what is clear, and what isn't.

  7. #7
    Senior Member OpenGL Pro Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    1,214

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    Quote Originally Posted by akashiraffee
    The material available on the web is of varying quality and I won't recommend any of it in particular (take your pick!). Because of that, I am actually working on such a tutorial right now. I will probably be posting a draft of it here in the next few days for review and criticism.
    I'm hardly awaiting your spectacular tutorial!
    Be ready for the same dose of criticism you have afforded to others.

  8. #8
    Member Contributor
    Join Date
    Feb 2009
    Posts
    73

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    Quote Originally Posted by Aleksandar
    I'm hardly awaiting your spectacular tutorial!
    Be ready for the same dose of criticism you have afforded to others.

    Hey you are free to ignore it! After all, this is for people who don't understand already. (And don't worry, I have a very thick skin).

    You are also free to contribute if you are so moved, I'll even format the material and give you credit, etc. Just not til tomorrow.

  9. #9
    Member Newbie
    Join Date
    Oct 2009
    Posts
    34

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    On my machine nopper.tv tutorials also don't work. I have only black screen.

    glGetError() returns GL_INVALID_ENUM immediately after glewInit().

  10. #10
    Junior Member Newbie
    Join Date
    Mar 2006
    Location
    Villingen-Schwenningen, Germany
    Posts
    27

    Re: OpenGL 1.0 to OpenGL 3.2 Core migration

    Please try the nopper.tv examples with the latest, official GLEW (which supports OpenGL 3.2) again. I already got feedback - the samples do work both on NVIDIA and ATI.

Page 1 of 2 12 LastLast

Similar Threads

  1. Using OpenGL Core Profile with OpenGL 3.0
    By robinfaury in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-03-2016, 09:45 AM
  2. Old Compatibility OpenGL vs modern Core OpenGL profile
    By thor36 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 02-26-2015, 11:24 AM
  3. Tools for helping migration to core profile
    By Nikki_k in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-21-2014, 09:32 AM
  4. How to: from OpenGL 2.1 to 3.3 core?
    By golgoth13 in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 04-21-2011, 08:40 AM
  5. Guide on transition from core OpenGL to nVidia OpenGL?
    By MelvinEng in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 09-07-2001, 12:45 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