Slashdot Mirror


Valve Working on GNU/Linux Native Open Source OpenGL Debugger

jones_supa writes "OpenGL debugging has always lagged behind DirectX, mainly because of the excellent DX graphics debugging tools shipping with Visual Studio and GL being left with APITrace. Valve's Linux initiatives are making game companies to think about OpenGL, and the video game company wants to create a good open source OpenGL debugger to improve the ecosystem. AMD and Nvidia have already expressed interest in helping them out. Valve has been developing VOGL mostly on Ubuntu-based distributions under Qt Creator. The software currently supports tracing OpenGL 1.0 through 3.3 (core and compatibility), and is expected to eventually support OpenGL 4.x. Many more details on VOGL can be found at Valve's Rich Geldreich's blog." This looks much nicer than BuGLe. Valve is using Mercurial for version control and they plan to throw it up on bitbucket under an unspecified open source license soon. It works with clang and gcc, but debugging with gcc is currently very slow (hopefully something that can be fixed once the source is available and the gcc hackers can see what's going on). The tracer's internal binary log format can be converted into JSON for use with other tools as well.

47 of 88 comments (clear)

  1. Very nice by pieisgood · · Score: 4, Insightful

    They're building out a comfortable development environment for steam machines. Which is great. When proper well documented tool are available, developers are less likely to shun a platform. If there exists a some GPU memory profiling software (not that a team couldn't competently create their own system) and keyword completion for OpenGL calls then I might consider switching over to Ubuntu for development myself.

    This is, of course, throwing aside all DX vs OpenGL arguments based on feature support (which I'm not really familiar with at this time).

    --
    Eat sleep die
    1. Re:Very nice by PC_THE_GREAT · · Score: 2

      Easier tools for developers, definitely means more developers will be interested. OpenGL was always a nightmare to me!

    2. Re:Very nice by thygate · · Score: 2

      The exact opposite is true for me. OpenGL is much easier to get started with imo.

    3. Re:Very nice by Trepidity · · Score: 5, Informative

      OpenGL's documentation is poorly written where it's needed most and most of the examples you find online are really old, targeted at hardware that was successfully phased out several years ago.

      Huge problem with books, too. Most OpenGL books are still about the old fixed-function, immediate-mode pipeline, and if they introduce "modern OpenGL" at all, it's somewhere later in the book as an advanced feature. Partly this is because many of them serve sort of double-duty, as intro-to-graphics and intro-to-OpenGL textbooks, and immediate mode with fixed-function pipeline actually is easier to use pedagogically if your goal is to introduce people to graphics and the OpenGL code is just an example, not intended for production. But retained mode and shaders is not an "advanced feature" anymore from a coding perspective, just the way things are done.

      This is even true in new editions of textbooks, because publishers are lazy and often don't really update the textbook. Therefore a (c) 2012 book might still be >85% full of early-2000s content, depending on the book. The only two OpenGL books I know of, besides giant reference tomes, that take a "modern OpenGL" approach through-and-through, are the sixth edition of Interactive Computer Graphics (which is actually revised), and Learning Modern 3D Graphics Programming , a work-in-progress textbook that's been slowly appearing online over the past two years (sections I-IV are now complete, V and VI still being written).

    4. Re:Very nice by Nemyst · · Score: 2

      I've had to design a piece of code for students to use as a framework for OpenGL programming. It took me something like two days to drill down to the correct, modern way of doing things in OpenGL, including going through multiple online tutorials on the subject. Most used archaic implementations and didn't bother to explain anything they were doing. And that's just to render a box on screen!

      I also do DirectX programming and the difference is like night and day. The OpenGL official docs are acceptable, but I think they lack two key features: examples (and not huge programs with no comments, that's not an example that's an infodump) and more info on what's being phased out (especially if it's not fully deprecated). You can still stumble on official docs for OpenGL 1.1 going through stuff and it won't tell you that it shouldn't be used anywhere but in legacy applications.

      Then there's the problems with OpenGL itself which make learning it difficult, such as the piss poor error reporting and the awful tools.

    5. Re:Very nice by TyFoN · · Score: 5, Informative
      OpenGL 4 Shading Language Cookbook Second Edition is a book purely about OpenGL 4.x that I enjoyed.

      You might have a look at that too :)
      It's still fairly basic though, but it does not contain any of the old opengl cruft.

    6. Re:Very nice by TyFoN · · Score: 3, Informative

      Working URL of the book.
      Sorry about that.

    7. Re:Very nice by Trepidity · · Score: 5, Informative

      Ah yeah, the SEO-style Web 3.0 URLs, where you guess which part is actually significant. :) On Amazon, the /dp/00000000 part is the real URL, and the /Seo-Friendly-Title-Inserted-Here/ part is SEO-bait garbage that's completely ignored from a technical perspective. So you can leave it out if you want, and http://www.amazon.com/dp/1782167021/ works. But including only the SEO-bait part of the URL doesn't work, because it doesn't successfully locate resources.

    8. Re:Very nice by maxwell+demon · · Score: 1

      However the "SEO part" doesn't only help search engines, it helps also individuals like me who look at the URL before following it.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    9. Re:Very nice by jones_supa · · Score: 1

      Learning Modern 3D Graphics Programming , a work-in-progress textbook that's been slowly appearing online over the past two years (sections I-IV are now complete, V and VI still being written).

      Actually that tutorial tends to swipe all the OpenGL stuff behind a framework and talks about graphics programming in generic terms. Otherwise it's still very high-quality and useful.

      My personal favorite is Anton Gerdelan's OpenGL Tutorials. I find more practical OpenGL recipes from that one. Good also for the basic stuff to get shaders and textures going.

      In general I have found OpenGL programming incredibly complex. Same seems to apply for DirectX. They are cool APIs but the learning curve is high. On the other hand, you get high performance and they are like "clay", meaning that you can accurately describe what you want, allowing for a lot of flexibility.

      I still have a place in my heart for the old crusty, hacky NeHe tutorials. I wish there was something as straightforward for today's newbie graphics programmers, like me. The fixed function hardware is kind of thing of the past.

    10. Re:Very nice by Anonymous Coward · · Score: 1

      I wouldn't really rely on that too much:

      http://www.amazon.com/How-To-Take-Over-The-World-With-OpenGL-And-Make-DX-Suck-it-DOWN/dp/1782167021/

    11. Re:Very nice by motokochan · · Score: 1

      John Romero, is that you?

    12. Re:Very nice by maxwell+demon · · Score: 1

      Yeah, sure, of course you can manipulate this. See also http://tinfoilhat.slashdot.org/story/14/01/18/052203/most-urls-are-honest

      --
      The Tao of math: The numbers you can count are not the real numbers.
    13. Re:Very nice by Anonymous Coward · · Score: 1

      Did you know they made a second edition?

      http://www.amazon.com/How-To-Take-Over-The-World-With-OpenGL-And-Make-DX-Suck-it-DOWN-second-edition/dp/B00137RNIQ

  2. "thow it up" by noobermin · · Score: 1

    they plan to throw it up on bitbucket

    Eww. I'd honestly expect to throw up something called "BuGLE" in a...bitbucket. "VOGL" doesn't quite sound like an onomatopoeia for vomiting though.

    1. Re:"thow it up" by djscoumoune · · Score: 2

      VOGL sounds like "vos gueules" in French which means "shut up" when you say it to several people.

  3. Why not build on APITrace? by elvstone · · Score: 1

    Since I don't work on this type of stuff myself, I may be a bit ignorant, but why not build it on top of APITrace? And in what way is APITrace lacking?

  4. Reminder by Anonymous Coward · · Score: 1, Insightful

    It is rude to randomly redirect visitors to beta.slashdot.
    Even more so because beta sucks.

  5. Means "bird" in German by tepples · · Score: 1

    VOGL sounds like Vogel, the German word for bird, related to English fowl. If you ate badly cooked chicken, you might throw it up.

    1. Re:Means "bird" in German by master5o1 · · Score: 1

      Vogel makes me think of bread.

      --
      signature is pants
  6. Re:Open Source! At least it isnt DRM laden like St by Ardyvee · · Score: 5, Insightful

    Once people get it right that steamworks is the part that is DRM and steam is a distribution service and a store... I mean. There are some games that have no DRM at all and after you download them you can use them for whatever. But nooo, a distribution service requiring you to log in is DRM (never mind that GOG also requires you to log in for first download, and they get praised as DRM-free). /rant

    --
    I don't care if I'm wrong. I only care about everyone obtaining something from the discussion.
  7. Re:Open Source! At least it isnt DRM laden like St by Anonymous Coward · · Score: 1

    Am I required to have steam installed on my machine to use these non DRM games?

  8. Re:Open Source! At least it isnt DRM laden like St by Anonymous Coward · · Score: 1

    No.

  9. Re:Open Source! At least it isnt DRM laden like St by Swarley · · Score: 4, Informative

    So steam has somewhere to put the games it downloads for you. This really isn't that complicated. Game producers determine the DRM. If the producer chooses none then Steam downloads the files to the steam directory and keeps them up to date for you if you log in and launches the game for you if you log in. OR you can move the files wherever you want and log in or not and the game works just fine. Don't let reality get in the way of your anti-DRM narrative though.

  10. Re:Open Source! At least it isnt DRM laden like St by bloodhawk · · Score: 1

    Interesting. I might actually have a look at steam again. previously it always required you to install the steam client to download a game. If that isn't required anymore then I might actually use them again.

  11. Inertia by Dega704 · · Score: 5, Insightful

    Reasons like this are why Vavle's push is good for the entire Linux community and not just gamers. I see a lot of naysaying about SteamOS, but what really speaks to me is the number of gears that are beginning to turn.

    1. Re:Inertia by jones_supa · · Score: 1

      This. In my opinion FOSS works best when there is some real commercial interest behind it. They can throw a bunch of properly paid engineers on the problem instead of some weekend hobby coders. We should get quite robust results.

    2. Re:Inertia by tlhIngan · · Score: 1

      Reasons like this are why Vavle's push is good for the entire Linux community and not just gamers. I see a lot of naysaying about SteamOS, but what really speaks to me is the number of gears that are beginning to turn.

      Well, it's because Valve sees the competition, and they see where they have an open field. Linux is one of them - the app stores it has are few and far between. Valve and Steam are huge names among the computing community.

      And while Windows and OS X have their own app stores that compete with Steam, Linux doesn't. Which means Valve can move in and take over and become the app store for Linux.

      But to do that, they need to encourage development on Linux, and convince the AAA developers that there's a market for it. Hence SteamOS and this project.

      Remember, the end goal is to set up a walled garden on Linux. (And Steam's one of the ultimate - if you think Apple was hard... ). Because Linux doesn't have one, and Steam and Valve are big enough names to convince game developers and commercial vendors to sell software through Steam.

      And yes, Valve is listening to the developers on what they need, because the Steam Store on Linux is rather bare.

      As a side note - if SteamOS is so hackable (by design) - how long until people hack it to disable VAC? I mean, it's only a matter of time before "cheating video drivers" and bots get ported to it, and if you have full control of the kernel, you can neuter VAC into thinking all is well while the player is really cheating through online multiplayer...

    3. Re:Inertia by wertigon · · Score: 1

      SteamOS won't ever become the app-store for Linux. Reason being, an app-store is only a glorified package repository.

      I do believe we will see less centralised package repositories though, not more.

      --
      systemd is not an init system. It's a GNU replacement.
  12. Re:Open Source! At least it isnt DRM laden like St by Trepidity · · Score: 3, Informative

    It's difficult as a regular Steam user to get that distinction right, though, because the interface is completely non-transparent about which games have DRM and which don't. You cannot filter the list of available games by "DRM-free only" and choose to vote with your dollars for those. And the majority of games do have DRM (either third-party or Steamworks), so buying blindly is unlikely to get you a DRM-free title. That's a difference with GOG, because there you can know what you're buying is DRM-free.

    There are some third-party sites that are attempting to compile the consumer information that Steam doesn't want to give you, but it's a bit hit-or-miss, and most Steam users don't know about such lists.

  13. Re:Open Source! At least it isnt DRM laden like St by tibman · · Score: 1

    Your definition of DRM seems a bit off: https://en.wikipedia.org/wiki/Digital_rights_management

    --
    http://soylentnews.org/~tibman
  14. Re:Open Source! At least it isnt DRM laden like St by spire3661 · · Score: 1

    Many companies try to get you to install their Download Manager. Valve is not unique in this.

    --
    Good-bye
  15. Re:Open Source! At least it isnt DRM laden like St by bloodhawk · · Score: 1

    The steam client isn't just a download manager though. It is a messenger, includes functionality to scan your system and includes a store interface as well as a pile of other crap. If it was just another download manager it would be irritating but partly acceptable. Instead it is an unstable, intrusive pile of shit that they have jammed so much into that it is offensive.

  16. Re:Open Source! At least it isnt DRM laden like St by Ardyvee · · Score: 1

    I fail to see how I'm perpetuating "the confusion". Please enlighten me how explaining that Steam is a distribution platform that offers both games with and without DRM causes confusion. Furthermore, explain to me how are you tied to Valve any more than you are tied to say your CD or that CD-Key you mustn't lose if you want to reinstall your game (in the case of games with DRM), or GOG for re-download (in the case of DRM-free games), which you don't need at all unless you failed to back up the installer?

    Furthermore, tell me how you lose any power to run the software you've purchased if you only buy DRM-free games (even if it is from steam, since it is, after all, just a store and distribution service)? Because you will obviously lose power if you buy games with DRM, no matter where you buy them... or how, for that matter.

    --
    I don't care if I'm wrong. I only care about everyone obtaining something from the discussion.
  17. Re:Open Source! At least it isnt DRM laden like St by Ardyvee · · Score: 1

    Valve could probably improve Steam in that way... I don't think, however, most Steam users are the type to care much about that. And those that DO care probably will enjoy the experience from other stores like GOG and Humble bundle (I don't think they are selling games with DRM in their store, although the occasional bundles does have DRM, and they are clearly labeled as such). Of course, there is the matter that some people may not care because they don't know, and it'd be nice if Steam mentioned/allowed filtering of DRM-free games to at least catch the eye, but I don't blame for not having it.

    --
    I don't care if I'm wrong. I only care about everyone obtaining something from the discussion.
  18. Re:Open Source! At least it isnt DRM laden like St by fast+turtle · · Score: 1

    Sorry but that's no longer true as it's Fuck Yes!

    --
    Mod me up/Mod me down: I wont frown as I've no crown
  19. Re:Open Source! At least it isnt DRM laden like St by Ardyvee · · Score: 1

    I wonder... How can you agree with a new TOS if you never open the steam client. The way I see it is: if you don't accept the TOS, you lose access to their services (store and distribution, login servers, etc) which results in games with DRM failing to load since they wouldn't verify since you are not logged in (if you are, then you accepted the TOS, right?). Thus, in the case of a game without DRM, they would provide Store and Distribution services. I doubt (IANAL, should check with one) they had the (legal) power to stop you from using games that don't rely on their services beyond store/distribution. AFAIK, when you buy the game you accept the EULA, which is basically a contract between you and the IP holder for that game (which isn't steam/valve, unless Valve games). When you accept TOS of Valve, what you get access is to the Store and Distribution. I don't think (but again, IANAL) that they can break the second contract you made with the company (which allows you to use the game). Thus, you lose access to their services but not DRM-free games. At least the way they interpret it.

    If it is the way you say... (which may not be. Posting AC + no proof + internet? Can I have the salt, please?), then it is not good.

    --
    I don't care if I'm wrong. I only care about everyone obtaining something from the discussion.
  20. Re:Open Source! At least it isnt DRM laden like St by Ardyvee · · Score: 1

    The "nooo" didn't give it away? I need to work on writing better. Yes, exactly. Anybody who thought like that would probably be an ass. In my (and your) view, at least. Which is why I find it completely okay. A minor... inconvenience, if you may, for access to the rest of the services each provide.

    --
    I don't care if I'm wrong. I only care about everyone obtaining something from the discussion.
  21. Re:Open Source! At least it isnt DRM laden like St by xeio87 · · Score: 1

    (never mind that GOG also requires you to log in for first download, and they get praised as DRM-free).

    Eh? I can run the installers without logging in.

    Are you saying that you think DRM should be classified as needing to be logged in to download it after your purchase? How else would you get the installer?

  22. OpenGL predates DirectX by dwater · · Score: 1

    > OpenGL debugging has always lagged behind DirectX No, it hasn't.

    --
    Max.
  23. Re:Open Source! At least it isnt DRM laden like St by Undead+Waffle · · Score: 1

    The store page actually does tell you whether they have third party DRM and if so what they use. One example I know of is if you check BioShock (the first one) the store page says it has SecuROM. Though it's true that they don't appear to list whether it has their own DRM and as far as I know there's no way to filter by DRM.

  24. Re:Slashdot is for fags by epyT-R · · Score: 1

    What site do the breeders use then? espn.com?

  25. JSON? by TechyImmigrant · · Score: 1

    "The tracer's internal binary log format can be converted into JSON for use with other tools as well."

    Can we have it in a useful format as well? Something compatible with grep and awk maybe.

    --
    I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  26. Re:Open Source! At least it isnt DRM laden like St by mgiuca · · Score: 1

    The difference with GOG is that with Steam games -- even those that don't use Steamworks -- you need to use Steam AND have a working Internet connection to install the game, so you are not truly separated from Valve's ecosystem. With GOG, you can download all the games you own, back them up to a portable hard drive, and then you can play all the games regardless of your Internet connectivity or GOG's continued existence, even if you change or wipe your computer. With Steam, you can only play these "DRM-free" games until you next need to re-install them for whatever reason.

    Back in, say, 2000--2004, a game that needed the Internet to phone home during installation (but not every time you play the game) would have been considered an unacceptably intrusive form of DRM by some. It's funny how the public perception of DRM has changed so much that phone-home-on-install is no longer considered to be DRM at all. Well, it still is, because it's a server that controls your ability to use a product you have already paid for. Granted, it's relatively mild DRM, but it's still DRM.

    I suppose that once you install a non-Steamworks game, you could manually grab the files and zip them up and archive them, but Steam doesn't make it easy. If you had, for example, used Steam's "back up game" feature, you would find that it requires a phone-home to restore the backup. In addition, Steam doesn't make it easy to play these non-Steamworks games without using Steam. All the Start Menu and Desktop shortcuts launch Steam with a particular game ID, not the game .exe directly, so using these shortcuts either requires that you are signed in to Steam, or have explicitly put Steam into offline mode. It's actually quite difficult for the average user to figure out how to run these so-called "DRM-free" games without Steam. So yes, GOG.com is absolutely more entitled to be praised as offering DRM-free games.

  27. Re:Open Source! At least it isnt DRM laden like St by Ardyvee · · Score: 1

    I wonder how open Steam would be to improvement on that front. Steam could certainly improve (for a certain measure of improving, anyway) when it comes to DRM-free games. Something as simple as allowing you to browse the store for DRM-free games would be an improvement. Providing an installer or perhaps making the backup feature not requiring an internet connection when dealing with DRM-free games would be nice too (like GOG.com's installer!). OTOH I also understand what kind of service Steam is offering vs GOG.com (you are right, they did change their name to GOG.com), with one wanting to be more of a platform where you can have a social experience as an integral part, while the later just wants to sell you a game and let you enjoy it (you can socialize in the forums/other parts, but that's not part of what they are really selling, is it?) and that's it.

    --
    I don't care if I'm wrong. I only care about everyone obtaining something from the discussion.
  28. Re:Open Source! At least it isnt DRM laden like St by mgiuca · · Score: 1

    I actually wonder why GOG doesn't improve their downloader app into a full Steam competitor, which automatically downloads, installs and keeps your games up to date. It wouldn't imply adding DRM -- you could still download the stand-alone .exe installers, and the GOG client could have a "save as .exe" button. Because as it stands, I have to keep making this trade-off between properly DRM-free games (GOG, and Humble Store for that matter, which is also nice in that it supports Linux) and the convenience of having a one-click download/install and always-up-to-date experience (Steam).

  29. Grammar Senses Twitching by ChoosyBeggar · · Score: 1
    From the summary:

    "Valve's Linux initiatives are making game companies to think about OpenGL,"

    Unless Valve is making companies, this "to" should be omitted. Either that, or "making" could be switched to "forcing". Yeah, kinda OCD, I know, but we need to save the English language from the Internet! :|