Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 10 of 12

Thread: OpenGL Superbible 6th ed.

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2013
    Posts
    10

    OpenGL Superbible 6th ed.

    Hi,

    I just decided to start learning OpenGL and thus bought the newly released book OpenGL Superbible, 6th Edition. However I'm unable to setup the source code for visual studio.

    The source code is available at "openglsuperbible . com / example-code"

    I have added "sb6code/include/" to Property Pages -> VC++ Directories -> Include Directories, and "sb6code/lib" to Property Pages -> VC++ Directories -> Library Directories and also added "GLFW_d32.lib", "sb6_d32.lib", "zdll.lib" and "zlib.lib" to Property Pages -> Linker -> Input -> Additional Dependencies as well as added all the "include" files to the Project Directory and added them to the project through Add-> Existing Items.

    When I build the project it complains about "glfw.h" is missing. I guess I also have to setup the GLFW library (also included in the source files) somehow but I have been unsuccessful with this (I get tons of compiler errors).

    Any help would be greatly appreaciated.

    Thanks in advance!

    /Robin

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2011
    Location
    USA
    Posts
    23
    Your question is not about OpenGL but general programming. What do you normally do in any C++ program when you have the compiler tell you that "somefile.h" is missing? Learn C++ first and all the relevant tools like the compiler, editor, debugger, profiler, etc... before trying to learn graphics.

    Even though the Superbible 6th edition markets itself to beginners, I am sure they didn't mean C++ beginners, but beginning graphics programmers.

  3. #3
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,948
    Any help would be greatly appreaciated.
    You should use the Visual Studio project or, failing that, the CMake project that comes with it.

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2013
    Posts
    10
    Quote Originally Posted by Jesse View Post
    Your question is not about OpenGL but general programming. What do you normally do in any C++ program when you have the compiler tell you that "somefile.h" is missing? Learn C++ first and all the relevant tools like the compiler, editor, debugger, profiler, etc... before trying to learn graphics.

    Even though the Superbible 6th edition markets itself to beginners, I am sure they didn't mean C++ beginners, but beginning graphics programmers.
    Dont try to be a wise boy. I know both C++, C#, C, Lua and UnrealScript. I simply don't know how to setup GLFW (which is OpenGL related for that matter and the documentation on their website doesn't make any sense). Also, setting up and linking a library in Visual Studio has nothing to do with C++. So if you don't have anything usefull to say then please dont post at all.

    You should use the Visual Studio project or, failing that, the CMake project that comes with it.
    If I load up the sb6.sln project in visual studio I can get a few of the samples to run. But many of them simply generates an Asssertion (stream != null) error.
    Last edited by DreamCore; 08-08-2013 at 11:45 AM.

  5. #5
    Intern Contributor
    Join Date
    Jun 2013
    Posts
    69
    this has nothing to do with your question but; i have the superbible and the opengl programming guide. i started reading the superbible and hated it so i went back to the programming guide. you should pick up a copy of the programming guide, much better. the programming guide also uses freeglut instead of sb6 this might make things easier for you. cheers

  6. #6
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,948
    If I load up the sb6.sln project in visual studio I can get a few of the samples to run. But many of them simply generates an Asssertion (stream != null) error.
    Then the build system is broken and you should take that up with the source code's owner.

  7. #7
    Intern Contributor
    Join Date
    Oct 2011
    Posts
    57
    Quote Originally Posted by sandbucket View Post
    this has nothing to do with your question but; i have the superbible and the opengl programming guide. i started reading the superbible and hated it so i went back to the programming guide. you should pick up a copy of the programming guide, much better. the programming guide also uses freeglut instead of sb6 this might make things easier for you. cheers
    I haven't read the 6th edition, but I did like the 5th edition a lot. I felt it was straight to the point. However, I took a different approach to what's apparently proposed by this books that supply source code: I completely ignored it.

    I just went along with the book and implemented my own stuff from scratch. Perhaps this approach will serve the OP too? He says he already has experience, so I see no reason why he couldn't simply follow the book without the source code.

  8. #8
    Newbie Newbie
    Join Date
    Aug 2013
    Posts
    1
    Hey everyone,

    I hated the 5th edition of the SuperBible, and I think the 6th edition is fantastic! It's got a new lead author (though Mr. Wright is still attached to the project) and I think it's organized extremely well. So I hope that SuperBible hating (which I took part in) is a thing of the past.

    DreamCore, you should be able to load up the GLFW library by including the glfw.h file and also linking in the GLFW_d32 or GLFW_r32 libraries, depending on if you are running in Debug or Release. I linked in GLFW_d32 and sb6_d32, and included all the .h files in the include folder of sb6core, and all projects compiled.

    I'm getting failed asserts on a few of them but they all compile at least.

    If you're still having trouble, try posting some of the errors.

    ~Philip

  9. #9
    Newbie Newbie
    Join Date
    Jun 2013
    Posts
    2
    Hey, I've had the book sitting on my shelf since it came out and today was the first day I started working the examples from the book. If you still need help setting up a visual studio project from scratch, let me know.
    Last edited by R-Skully; 10-19-2013 at 02:43 PM. Reason: Clarity

  10. #10
    Newbie Newbie
    Join Date
    Oct 2013
    Posts
    1
    Maybe this is not related to the OP's problem but when im trying to compile the first examplecode (red window) im getting c2144 and c4430 errors in the string.h. Im using Visual Studio 13 and the header from the website od the Super Bible.
    Would like to know if u get similar errors if not at least i know its my / my pc's fault.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •