• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Overv

OpenGL
Is there a need for another modern OpenGL guide?

12 posts in this topic

Hi,

[font=verdana, arial, helvetica, sans-serif][size=2]I'm thinking of writing a modern OpenGL guide. I realize that more and more modern OpenGL guides are popping up, but I think there are still things that most (if not all) of them lack:[/size][/font]
[font=verdana, arial, helvetica, sans-serif][size=2][list][*]A site that can be corrected and updated by users, e.g. a wiki.[*]Information for setting up your context in every language and platform (C++, C#, WebGL, Android, ...).[*]Bare-bones interaction, not letting libraries do everything for you. At least not in the beginning.[*]Beats NeHe's tutorials in Google's search results (I've registered [url="http://open.gl/"]http://open.gl[/url] for this exact purpose).[*]Including everything in one place. The current situation makes modern OpenGL too hard to learn.[/list]
I've come up with the following structure for the site I want to develop:

[url="http://codepad.org/4yH2kxLl"]http://codepad.org/4yH2kxLl[/url]




I'd like to hear your input.

[/size][/font]
0

Share this post


Link to post
Share on other sites
This is your first post on these forums and we don't know your level of expertise on the subject. Can you provide some references ? How many years have you been professionally working with OpenGL ? Do you have a proven track record in this domain, did you publish any publications ? Were/are you involved with the ex-ARB, Khronos or one of their major contributors ? Are you working on the GL driver development team of a major GPU manufacturer or of an open source driver ? Were you directly involved in the development of an OpenGL based rendering backend for a major game, application or middleware ?

If the answer to all of these questions is no, then you shouldn't be writing "another modern OpenGL guide".

Sorry for being so blunt, and I applaud your motivation. But the answer to your title question is, no, we don't need another such guide. What we do need is a single, authoritative development and learning resource for OpenGL, published and maintained by an officially endorsed and highly qualified organization. We don't need another open wiki, we don't need another gazillion of tutorials, we don't need to "beat" NeHe. We need Khronos to finally get their stuff together and release an actual OpenGL SDK and updated human-friendly documentation (ie. [i]not[/i] the extension doc text format). In other words, we need an MSDN equivalent for modern OpenGL.

So if you have some good ideas, then you should try to contribute to the more or less 'official' [url="http://www.opengl.org/wiki/Main_Page"]OpenGL wiki[/url] instead, helping to bring it out of its current desolate state.
1

Share this post


Link to post
Share on other sites
[quote name='Yann L' timestamp='1306025861' post='4814040']So if you have some good ideas, then you should try to contribute to the more or less 'official' [url="http://www.opengl.org/wiki/Main_Page"]OpenGL wiki[/url] instead, helping to bring it out of its current desolate state.[/quote]

I am afraid I won't be able to, as I do not currently have a PhD in graphics programming. Nor do I meet any of your other royal standards.
0

Share this post


Link to post
Share on other sites
[quote name='Yann L' timestamp='1306025861' post='4814040'] we need an MSDN equivalent for modern OpenGL. [/quote]


No

Are you under a delusion that OpenGL is so complex that it requires professional experience to simply explain it to beginners? Adding more crap to the pill of crap won't help, and waiting for someone else to do it is lazy, what harm could come from making another website that would not anyways happen from bogging down a already unhelpful website?


0

Share this post


Link to post
Share on other sites
[quote name='Overv' timestamp='1306026706' post='4814048']
I am afraid I won't be able to, as I do not currently have a PhD in graphics programming. Nor do I meet any of your other royal standards.
[/quote]
No need to get defensive. You are planning to write what basically amounts to a significant amount of teaching material targeting beginners. Well written teaching material can be an excellent resource, while badly written (often due to lack of knowledge) is highly counterproductive. Unfortunately, most online tutorials fall into the later category. As such it is absolutely valid to ask about your own expertise on the subject. If someone offered to teach me how to fly an airplane, I would inquire about his own license first.

[quote name='Polkm' timestamp='1306029623' post='4814066']
[quote name='Yann L' timestamp='1306025861' post='4814040'] we need an MSDN equivalent for modern OpenGL. [/quote]
No
Are you under a delusion that OpenGL is so complex that it requires professional experience to simply explain it to beginners?
[/quote]
Yes, absolutely. Significant experience is a prerequisite for teaching any form of advanced concept to a beginner. No need for a PhD, but if you don't know the material inside-out, then you have no business teaching it.

[quote]
Adding more crap to the pill of crap won't help, and waiting for someone else to do it is lazy, what harm could come from making another website that would not anyways happen from bogging down a already unhelpful website?
[/quote]
You mean like NeHe, for example ? Spreading incorrect information, even unintentionally, is worse than not spreading any information at all. I am not saying the OP is in this position, that's why I inquired about his experience with OpenGL.
2

Share this post


Link to post
Share on other sites
[quote name='Yann L' timestamp='1306025861' post='4814040']
In other words, we need an MSDN equivalent for modern OpenGL.
[/quote]


There are few things I want to see happen as badly as that.

I know that Microsoft is out of the question, but at the very least Apple should step up to the plate. They've done a pretty good job at creating very MSDN-like knowledge base for IOS development, among other things. My respect for Apple would increase drastically if they helped propel OpenGL as Microsoft did with DirectX, and with a market share over $300B they should have the money to blow away on increasing the standards of all the technologies their own software and operating systems rely on!

/anxious-to-see-opengl-truly-mature


I don't know what Polkm's deal is but he has clearly never used MSDN, I use it on a daily basis just about and can say with utmost confidence that he has no idea what he's talking about. Some examples; I was recently working on a C++ application to visualize music, and in that process I wanted to try and visualize audio playing through the system's audio endpoint, to get around having to play a specific MP3 or write a plug-in for an existing media player. So what I did is research the Windows 7 audio platform and architecture on MSDN, found the API's on MSDN, and even some sample code on MSDN, as well as ridiculously clear and intuitive information on how it was all connected (hell, they even create logical diagrams for you). Within a couple hours I had it all done and my software was running as I wanted, much simpler than it was for XP.

[url="http://gltiich.blogspot.com/2009/10/capture-system-speaker-audio-windows-7.html"]http://gltiich.blogs...-windows-7.html[/url]

Not long after that I bought some MIDI instruments, again, Microsoft documented everything so well and so clearly, that I was up and going with my own MIDI software to do some stuff for fun in just a couple hours (piecing everything together at first can be a bit slow hehe).

[url="http://gltiich.blogspot.com/2010/10/receiving-midi-controller-input-with-c.html"]http://gltiich.blogs...put-with-c.html[/url]

MSDN has STL C++ documentation, and even entire sections around clever/neat short-hand notations and tricks. Things I never found so well centralized or organized on C++ focused websites like cprogramming.com or cplusplus.com. After having been developing with C++ for years I came across those sections in MSDN and learned quite a few new things and even had better clarity on many features I didn't have before then.

Also all of their platforms are documented in detail and followed-up with technical and howto articles.

Learning OpenGL in contrast for me was a long and painful experience, specifications are not clear or intuitive. I spent years trial-and-error developing a lot of it and piecing together a lot of separate specification documents to build the 'whole picture' conceptually. I don't care who you are or how smart you think you are - that is not a good method to learn something, especially if you want broader acceptance out of the professional gaming industry.

An MSDN equivalent for OpenGL is exactly what OpenGL needs in order to have a foundation to back its marketing. OpenGL as a whole needs to grow up, not just it's API, but everything around it including a support base for future/new programmers.

Finally, clearly, Microsoft has a conflict of interest in supporting OpenGL, even though they do to a limited extent (documentation wise). But a major player that is as well as financed like Apple, that could really make this all happen, it must! >:]
0

Share this post


Link to post
Share on other sites
[quote name='Yann L' timestamp='1306030658' post='4814069']
Yes, absolutely. Significant experience is a prerequisite for teaching any form of advanced concept to a beginner. No need for a PhD, but if you don't know the material inside-out, then you have no business teaching it.
[/quote]


I agree, but that is not what you were saying before. You were asking for professional experience, significant and professional are different. I am not interested in a deep argument over linguistics though. I say no to MSDN because it has only minimal documentation, and rarely covers relevant application. When I was starting out, MSDN might as well have been written in Latin. Beginners often have to resort to tutorial websites because the documentation website was written, unintentionally, for people who already know how it works.
0

Share this post


Link to post
Share on other sites
why gamedev members like to derail threads to their own liking like this?


This guy has asked a clear question: "IS THERE A NEED FOR AN OGL GUIDE?"

I mean really its very clear.

And Im not talking bout this thread as a single example, many many times (including threads made by myself) this kind of behavior appears


And yeah, personally, Yes I think there is a need for an OGL guide that has no assumptions whatsoever . (well at least I need one xD)
-1

Share this post


Link to post
Share on other sites
I thought Yann L's answer was pretty clear as well. If you don't have experience implementing most of the useful features of modern OpenGL in a professional or academic context as well as a thorough understanding of the graphics pipeline as implemented in current hardware, your efforts are likely to be only marginally better than what's already out there. If this is the case, the project is unlikely to become a "definitive guide", and your efforts are better served contributing to the existing wiki.
1

Share this post


Link to post
Share on other sites
[quote]I'm thinking of writing a modern OpenGL guide. I realize that more and more modern OpenGL guides are popping up, but I think there are still things that most (if not all) of them lack:
[list][*]A site that can be corrected and updated by users, e.g. a wiki.[*]Information for setting up your context in every language and platform (C++, C#, WebGL, Android, ...).[*]Bare-bones interaction, not letting libraries do everything for you. At least not in the beginning.[*]Beats NeHe's tutorials in Google's search results (I've registered [url="http://open.gl/"]http://open.gl[/url] for this exact purpose).[*]Including everything in one place. The current situation makes modern OpenGL too hard to learn[/list]I think that's great that you collected what other sites lack, and hats off to your enthusiasm. The question is can you make a tutorial site that can match the other sites, and correct these things you listed?
[/quote]

Personally I wouldn't care how deep you understand OpenGL, because as far as you don't write bulls..., and as far as it works I think anyone can write one.
I think noone can understand OpenGL as deeply as the people who created it, or belong to any of the categories Yann L listed, and for an "everyday guy" it is impossible to become one of them.
And I don't think those guys have time to write such sites.

I think these sites also lack the ability to present the concepts of developing an OpenGL based GAME ENGINE. I mean I don't really like to write samples all the time. So in that sense your site could be far better than the present ones.

So I do think there's a need, but only if you can meet those requirements you listed (and match the other sites).
1

Share this post


Link to post
Share on other sites
"Nor do I meet any of your other royal standards."

There are tons of opengl tutorials out there.

Every single one of those people started out with the best intentions. Sadly most of them are still learning OpenGL themselves and doing it as a hobby. So storming numbers of them talk about how to generate vertex buffers and mutter that you can use them for rendering things and then they sort of trail off at that point...

And as a result all they're doing is polluting the google results with duplicates of the introductory stuff that world+dog either knows or could learn from 2 chapters of the superbible. So when you actually go looking for something complicated, you can't find it.

Before agreeing it's a good idea, Yann is just attempting to if you belong to that group or if you're experienced and knowledgeable enough to increase the net information quality.
0

Share this post


Link to post
Share on other sites
[quote name='gltiich' timestamp='1306032457' post='4814080']
I don't know what Polkm's deal is but he has clearly never used MSDN, I use it on a daily basis just about and can say with utmost confidence that he has no idea what he's talking about. Some examples; I was recently working on a C++ application to visualize music, and in that process I wanted to try and visualize audio playing through the system's audio endpoint, to get around having to play a specific MP3 or write a plug-in for an existing media player. So what I did is research the Windows 7 audio platform and architecture on MSDN, found the API's on MSDN, and even some sample code on MSDN, as well as ridiculously clear and intuitive information on how it was all connected (hell, they even create logical diagrams for you). Within a couple hours I had it all done and my software was running as I wanted, much simpler than it was for XP.[/quote]

I wouldn't mind writing something like that.

But the big question is - who will pay $699 for entry version and $2599 for pro license with special options for 3-year SOHO plan at a discount of $9899.

FYI, documentation writers are typically paid some 10% more than software engineers. And herein lies the problem. Quality documentation doesn't just pop up. It's a lot of painstaking tedious work, requiring a lot of revisions, reviews and above all, proper training in writing. It's nothing new that open source or FOSS model cannot create good documentation without solid funding and a well organized process. There is literally a handful of projects that manage that.

[quote]MSDN has STL C++ documentation, and even entire sections around clever/neat short-hand notations and tricks. Things I never found so well centralized or organized on C++ focused websites like cprogramming.com or cplusplus.com. After having been developing with C++ for years I came across those sections in MSDN and learned quite a few new things and even had better clarity on many features I didn't have before then.[/quote]C++ is Microsoft's strategic interest.

[quote]Finally, clearly, Microsoft has a conflict of interest in supporting OpenGL, even though they do to a limited extent (documentation wise). But a major player that is as well as financed like Apple, that could really make this all happen, it must! >:][/quote]

Apple doesn't need OpenGL, nor does it want it. It's a dead end. For a simple reason - they cannot control it and Apple is killing everything it doesn't fully own and control.

The future and present is OpenGL/ES. The other direction is WebGL, which at this point it's a joke.

And there are two paths. Users will simply use an engine, something like Unity3D, never touching the graphics APIs. Graphics professionals already know the basics and a lot more, so it comes down to debugging drivers and devices, not piecing together API calls.

At this point, the low level APIs serve similar purpose as [url="http://www.ctyme.com/rbrown.htm"]Interrupt Lists[/url]. It was just a little over 10 years ago that I actually had to use those to draw stuff on screen.
-1

Share this post


Link to post
Share on other sites
If you know the subject well enough, sure, go for it.
[b]It would also be nice if there were more people who contributed to the Wiki[/b] (http://www.opengl.org/wiki)
For a while, it was mostly me, but then Alfonse started adding. Zyx2000.
That is too few. It should be community driven which means there should be much more people in principle.

The problem I see with personal websites is that they repeat the weirdnesses and mistakes of others.
[b]At least the Wiki can have some peer review.[/b]
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • By Toastmastern
      So it's been a while since I took a break from my whole creating a planet in DX11. Last time around I got stuck on fixing a nice LOD.
      A week back or so I got help to find this:
      https://github.com/sp4cerat/Planet-LOD
      In general this is what I'm trying to recreate in DX11, he that made that planet LOD uses OpenGL but that is a minor issue and something I can solve. But I have a question regarding the code
      He gets the position using this row
      vec4d pos = b.var.vec4d["position"]; Which is then used further down when he sends the variable "center" into the drawing function:
      if (pos.len() < 1) pos.norm(); world::draw(vec3d(pos.x, pos.y, pos.z));  
      Inside the draw function this happens:
      draw_recursive(p3[0], p3[1], p3[2], center); Basically the 3 vertices of the triangle and the center of details that he sent as a parameter earlier: vec3d(pos.x, pos.y, pos.z)
      Now onto my real question, he does vec3d edge_center[3] = { (p1 + p2) / 2, (p2 + p3) / 2, (p3 + p1) / 2 }; to get the edge center of each edge, nothing weird there.
      But this is used later on with:
      vec3d d = center + edge_center[i]; edge_test[i] = d.len() > ratio_size; edge_test is then used to evaluate if there should be a triangle drawn or if it should be split up into 3 new triangles instead. Why is it working for him? shouldn't it be like center - edge_center or something like that? Why adding them togheter? I asume here that the center is the center of details for the LOD. the position of the camera if stood on the ground of the planet and not up int he air like it is now.

      Full code can be seen here:
      https://github.com/sp4cerat/Planet-LOD/blob/master/src.simple/Main.cpp
      If anyone would like to take a look and try to help me understand this code I would love this person. I'm running out of ideas on how to solve this in my own head, most likely twisted it one time to many up in my head
      Thanks in advance
      Toastmastern
       
       
    • By fllwr0491
      I googled around but are unable to find source code or details of implementation.
      What keywords should I search for this topic?
      Things I would like to know:
      A. How to ensure that partially covered pixels are rasterized?
         Apparently by expanding each triangle by 1 pixel or so, rasterization problem is almost solved.
         But it will result in an unindexable triangle list without tons of overlaps. Will it incur a large performance penalty?
      B. A-buffer like bitmask needs a read-modiry-write operation.
         How to ensure proper synchronizations in GLSL?
         GLSL seems to only allow int32 atomics on image.
      C. Is there some simple ways to estimate coverage on-the-fly?
         In case I am to draw 2D shapes onto an exisitng target:
         1. A multi-pass whatever-buffer seems overkill.
         2. Multisampling could cost a lot memory though all I need is better coverage.
            Besides, I have to blit twice, if draw target is not multisampled.
       
    • By mapra99
      Hello

      I am working on a recent project and I have been learning how to code in C# using OpenGL libraries for some graphics. I have achieved some quite interesting things using TAO Framework writing in Console Applications, creating a GLUT Window. But my problem now is that I need to incorporate the Graphics in a Windows Form so I can relate the objects that I render with some .NET Controls.

      To deal with this problem, I have seen in some forums that it's better to use OpenTK instead of TAO Framework, so I can use the glControl that OpenTK libraries offer. However, I haven't found complete articles, tutorials or source codes that help using the glControl or that may insert me into de OpenTK functions. Would somebody please share in this forum some links or files where I can find good documentation about this topic? Or may I use another library different of OpenTK?

      Thanks!
    • By Solid_Spy
      Hello, I have been working on SH Irradiance map rendering, and I have been using a GLSL pixel shader to render SH irradiance to 2D irradiance maps for my static objects. I already have it working with 9 3D textures so far for the first 9 SH functions.
      In my GLSL shader, I have to send in 9 SH Coefficient 3D Texures that use RGBA8 as a pixel format. RGB being used for the coefficients for red, green, and blue, and the A for checking if the voxel is in use (for the 3D texture solidification shader to prevent bleeding).
      My problem is, I want to knock this number of textures down to something like 4 or 5. Getting even lower would be a godsend. This is because I eventually plan on adding more SH Coefficient 3D Textures for other parts of the game map (such as inside rooms, as opposed to the outside), to circumvent irradiance probe bleeding between rooms separated by walls. I don't want to reach the 32 texture limit too soon. Also, I figure that it would be a LOT faster.
      Is there a way I could, say, store 2 sets of SH Coefficients for 2 SH functions inside a texture with RGBA16 pixels? If so, how would I extract them from inside GLSL? Let me know if you have any suggestions ^^.
    • By KarimIO
      EDIT: I thought this was restricted to Attribute-Created GL contexts, but it isn't, so I rewrote the post.
      Hey guys, whenever I call SwapBuffers(hDC), I get a crash, and I get a "Too many posts were made to a semaphore." from Windows as I call SwapBuffers. What could be the cause of this?
      Update: No crash occurs if I don't draw, just clear and swap.
      static PIXELFORMATDESCRIPTOR pfd = // pfd Tells Windows How We Want Things To Be { sizeof(PIXELFORMATDESCRIPTOR), // Size Of This Pixel Format Descriptor 1, // Version Number PFD_DRAW_TO_WINDOW | // Format Must Support Window PFD_SUPPORT_OPENGL | // Format Must Support OpenGL PFD_DOUBLEBUFFER, // Must Support Double Buffering PFD_TYPE_RGBA, // Request An RGBA Format 32, // Select Our Color Depth 0, 0, 0, 0, 0, 0, // Color Bits Ignored 0, // No Alpha Buffer 0, // Shift Bit Ignored 0, // No Accumulation Buffer 0, 0, 0, 0, // Accumulation Bits Ignored 24, // 24Bit Z-Buffer (Depth Buffer) 0, // No Stencil Buffer 0, // No Auxiliary Buffer PFD_MAIN_PLANE, // Main Drawing Layer 0, // Reserved 0, 0, 0 // Layer Masks Ignored }; if (!(hDC = GetDC(windowHandle))) return false; unsigned int PixelFormat; if (!(PixelFormat = ChoosePixelFormat(hDC, &pfd))) return false; if (!SetPixelFormat(hDC, PixelFormat, &pfd)) return false; hRC = wglCreateContext(hDC); if (!hRC) { std::cout << "wglCreateContext Failed!\n"; return false; } if (wglMakeCurrent(hDC, hRC) == NULL) { std::cout << "Make Context Current Second Failed!\n"; return false; } ... // OGL Buffer Initialization glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT); glBindVertexArray(vao); glUseProgram(myprogram); glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_SHORT, (void *)indexStart); SwapBuffers(GetDC(window_handle));  
  • Popular Now