Sign in to follow this  
Followers 0
Oogst

OpenGL
OpenGL 1.1.0 for some users

6 posts in this topic

For our games Awesomenauts and Swords & Soldiers (made with OpenGL and SDL 1.2.13) there is a small group of PC users who cannot run the game because they have OpenGL 1.1.0 and their videocard is reported as "GDI Generic". In all cases I have seen so far, this was on Windows Vista/7/8 and this was fixed by installing drivers by hand from the Nvidia/AMD/Intel website.

However, quite a few users find it difficult to install drivers, and I would prefer that our games would run immediately for everyone. Also, some laptop manufacturers disallow downloading drivers from the sites of Nvidia/AMD/Intel directly. So I am wondering why this happens exactly, and whether something can be done about it.

Until this week I thought the cause was that Windows Vista/7/8 automatically installs new drivers, but installs incomplete drivers and leaves out OpenGL. That would mean an evil scheme by Microsoft to destroy OpenGL on Windows, by not installing it properly, thus giving problems to all OpenGL games.

However, today I installed GLview and on my computer this tool only reports GDI Generic and does not recognise my ATI card, while our own game Awesomenauts recognises it just fine. This makes me wonder: for those users who get GDI Generic in Awesomenauts, is OpenGL maybe secretly properly installed but not selected by SDL for some reason?

So is there some evil Microsoft plot, or am I just initialising SDL/OpenGL incorrectly?

This is how I initialise OpenGL+SDL:
[code]SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
SDL_VERSION(&windowInfo.version);
SDL_GetWMInfo(&windowInfo);
screen = SDL_SetVideoMode(xRes, yRes, 32, SDL_OPENGL | SDL_FULLSCREEN);[/code]

Also, is it correct that unlike DirectX, it is not possible for a game to install OpenGL, so OpenGL can only be installed with the drivers?

Sidequestion: are any of the big games still OpenGL these days, or is Rage the only AAA OpenGL left? Edited by Oogst
0

Share this post


Link to post
Share on other sites
No evil plot. MS don't include OpenGL support with the default drivers which come with Windows, and many OEMs don't either. Most people who are even halfway serious about running games will junk those drivers (they're frequently incredibly out of date and buggy with D3D too) and install proper drivers from the GPU vendor instead. But this has been the way of things for a long long time now.

The D3D driver model is completely different to OpenGL, and it's actually not possible for a game to install either. D3D is split between a runtime (provided by MS and common to all hardware) and a vendor-specific driver, and what games [i]can[/i] install is just the runtime. If the vendor-specific driver needs updating the game cannot install that - the player must. With OpenGL on the other hand, everything is in the vendor-specific driver; so far as the vendor-specific component is concerned, both APIs are equivalent - it's just that the vendor-specific component happens to be absolutely everything with OpenGL.

Regarding major titles, Rage is the only recent one, and that had some colossal problems on release. Those have mostly shaken out by now, but there remains a danger that certain vendor's OpenGL support may be limited to "get what id Software does working", and not be otherwise robust. It's not totally lost however - there's a new Doom 3 release coming out soon which will also need solid GL support, as well as the ever-present Minecraft.

For options going forward, one might be to provide a D3D backend for cases where OpenGL support is not detected. You can use D3D with SDL and it will give you good coverage of those handful of cases. You could even position your GL renderer as the "premium version" to encourage upgrades, and have the D3D renderer as a fairly cut-down/minimalized version (you would need to notify the user of this). The other option is to do as samoth suggested and just not consider those people as part of your target audience.
1

Share this post


Link to post
Share on other sites
[quote name='Oogst' timestamp='1344258688' post='4966650']
Also, is it correct that unlike DirectX, it is not possible for a game to install OpenGL, so OpenGL can only be installed with the drivers?

Sidequestion: are any of the big games still OpenGL these days, or is Rage the only AAA OpenGL left?
[/quote]

That goes for part of DX aswell, DirectX is basically 2 parts, the DirectX runtime and the driver, (Microsoft provides the runtime, the IHV provides the driver, allthough Microsoft does provide drivers for most hardware through Windows Update aswell). (IIRC Microsoft does some quality assurance on D3D drivers aswell to ensure basic compatibility)

For OpenGL the IHV provides both the driver and the runtime allthough Microsoft does provide a basic OpenGL 1.1 software driver and runtime to get basic support no matter what.

One likely candidate for the Win7/8 problems could be that the machines are using multiple GPUs, alot of newer laptops have both an integrated Intel GPU and a nvidia GPU, it is not impossible that the integrated GPU lacks OpenGL drivers while the nvidia one has them and that by default your application tries to use the Intel GPU. (installing drivers manually from the IHV rather than from the system builder might override this behaviour) Edited by SimonForsman
0

Share this post


Link to post
Share on other sites
I get the idea that doing OpenGL well is just not possible these days. Which sucks, because the game is already live and I definitely don't want to switch to something else when it works for 99% of players already. A DirectX fallback wouldn't be too difficult, though, since I already have a complete DirectX 9 renderer for Xbox360. It just lacks the link with SDL and the window.

However, adding DirectX very much rubs me the wrong way. The problem with OpenGL is that it is not used enough, so switching away from it makes the situation worse for OpenGL... [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]

[quote name='samoth' timestamp='1344259851' post='4966657']It is very possible to select a pixel format which will generate non-accelerated OpenGL 1.1 contexts. PFD_SUPPORT_GDI is mutually exclusive with "accelerated OpenGL" and "anything higher than 1.1".[/quote]
My initialisation code is just what is in my opening post. So I don't consciously set any weird pixel formats. What would be wrong there that would cause this situation? Also, since it works on 99% of videocards as is, is there a way with SDL to do my current code, see whether it gave proper OpenGL, and if not, try again with different pixel settings?

[quote]All in all, if someone doesn't have an IHV driver installed, it's questionable whether you really want them as customers. I'm not talking of the latest bleeding-edge drivers, but, you know, anything at all.
They must either be quite poor (not able to afford a $10 card!?) or quite stupid. In either case, you probably don't want them as customers. The poor won't pay you, and the stupid will cost you more in support than the revenue they bring in.
[/quote]
I have seen this happen even on good Nvidia cards, so just ignoring them as "not our target audience" is definitely not an option...

[quote name='SimonForsman' timestamp='1344263919' post='4966668']One likely candidate for the Win7/8 problems could be that the machines are using multiple GPUs, alot of newer laptops have both an integrated Intel GPU and a nvidia GPU, it is not impossible that the integrated GPU lacks OpenGL drivers while the nvidia one has them and that by default your application tries to use the Intel GPU. (installing drivers manually from the IHV rather than from the system builder might override this behaviour)[/quote]
I am indeed seeing that computers with multiple videocards sometimes select the wrong one. This is only a few cases, though: most just have one videocard that needs its drivers updated. I am also seeing that the game doesn't work together with Nvidia Surround (their multi-monitor-SLI-thingie). Edited by Oogst
0

Share this post


Link to post
Share on other sites
Try it without framebuffer alpha, maybe? I.e., remove this line:[code]SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);[/code]
It's possible that the users having problems have GPUs that can't support a hardware accelerated pixel format that has framebuffer alpha, or else SDL is screwing up it's pixel format selection with this included.

If that resolves it, and if you really need framebuffer alpha, you could consider creating an FBO, doing your main render to that, then blitting it to the backbuffer before present. There will be some perf cost for sure, but if that's the price of getting it working.....
0

Share this post


Link to post
Share on other sites
[quote name='Oogst' timestamp='1344274924' post='4966728'][quote name='samoth' timestamp='1344259851' post='4966657']no IHV driver installed[/quote]
I have seen this happen even on good Nvidia cards, so just ignoring them as "not our target audience" is definitely not an option...[/quote]Support costs money.

My father is 70 years old, and until a year ago or so, he was still [url="http://cache.gawkerassets.com/assets/images/gizmodo/2009/09/500px-scottytalkstomac.jpg"]talking to the mouse sometimes[/url]. Nevertheless, even he knows that it's necessary to put the CDROM that came with his new graphics card into the computer to make it work, and even he could figure that there is this driver thing that the little electrons in the grey box need to work properly. He also knows that Google will download it for you, or something the like, if you type "nvidia" into the search box. No kidding, but he has working, up-to-date drivers.

My opinion stands: If someone is unable to even do [i]that much[/i], you do not want this person as a customer, even if they can pay you. It's a support nightmare, and it will cost you more than it's worth.
2

Share this post


Link to post
Share on other sites
[quote name='Oogst' timestamp='1344274924' post='4966728']
However, adding DirectX very much rubs me the wrong way. The problem with OpenGL is that it is not used enough, so switching away from it makes the situation worse for OpenGL...
[/quote]

If you already have a code path to support this, you should probably support it. I doubt any of the users who are currently unable to play due to this bug care about the status quo of OpenGL; they just want to play the game they paid for. You'll burn a lot of consumer good will if you simply tell these people the problem is ultimately unfixable over politics (preferring to keep it 100% OpenGL on PC.)
1

Share this post


Link to post
Share on other sites
[quote name='Flimflam' timestamp='1344810318' post='4968865']If you already have a code path to support this, you should probably support it. I doubt any of the users who are currently unable to play due to this bug care about the status quo of OpenGL; they just want to play the game they paid for. You'll burn a lot of consumer good will if you simply tell these people the problem is ultimately unfixable over politics (preferring to keep it 100% OpenGL on PC.)
[/quote]

It's not that bad, actually: in the end I can get it to run on everyone's computer with OpenGL. There are a couple of bugs that I need to fix right now, but in the end I think DirectX would only be a convenience thing and it works without.

You are right, though, that such a principal point should not affect customers. On the other hand, that does mean that big companies like Microsoft get away with everything, every time... Edited by Oogst
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 Jon Alma
      Some time ago I implemented a particle system using billboarding techniques to ensure that the particles are always facing the viewer.  These billboards are always centered on one 3d coordinate.
      I would like to build on this and use billboarding as the basis for things like laser bolts and gunshots.  Here the difference is that instead of a single point particle I now have to draw a billboard between two points - the start and end of the laser bolt for example.  I appreciate that having two end points places limits on how much the billboard can be rotated to face the viewer, but I'm looking to code a best effort solution.  For the moment I am struggling to work out how to do this or find any tutorials / code examples that explain how to draw a billboard between two points ... can anyone help?
      Thanks.
    • By Sagaceil
      It's always better to fight with a bro.
    • By recp
      Hi,
      I'm working on new asset importer (https://github.com/recp/assetkit) based on COLLADA specs, the question is not about COLLADA directly
      also I'm working on a new renderer to render (https://github.com/recp/libgk) imported document.
      In the future I'll spend more time on this renderer of course, currently rendering imported (implemented parts) is enough for me
      assetkit imports COLLADA document (it will support glTF too),
      importing scene, geometries, effects/materials, 2d textures and rendering them seems working
      My actual confusion is about shaders. COLLADA has COMMON profile and GLSL... profiles,
      GLSL profile provides shaders for effects so I don't need to wory about them just compile, link, group them before render

      The problem occours in COMMON profile because I need to write shaders,
      Actually I wrote them for basic matrials and another version for 2d texture
      I would like to create multiple program but I am not sure how to split this this shader into smaller ones,

      Basic material version (only colors):
      https://github.com/recp/libgk/blob/master/src/default/shader/gk_default.frag
      Texture version:
      https://gist.github.com/recp/b0368c74c35d9d6912f524624bfbf5a3
      I used subroutines to bind materials, actually I liked it,
      In scene graph every node can have different program, and it switches between them if parentNode->program != node->program
      (I'll do scene graph optimizations e.g.  view frustum culling, grouping shaders... later)

      I'm going to implement transparency but I'm considering to create separate shaders,
      because default shader is going to be branching hell
      I can't generate shader for every node because I don't know how many node can be exist, there is no limit.
      I don't know how to write a good uber-shader for different cases:

      Here material struct:
      struct Material { ColorOrTexture emission; ColorOrTexture ambient; ColorOrTexture specular; ColorOrTexture reflective; ColorOrTexture transparent; ColorOrTexture diffuse; float shininess; float reflectivEyety; float transparency; float indexOfRefraction; }; ColorOrTexture could be color or 2d texture, if there would be single colorOrTex then I could split into two programs,
      Also I'm going to implement transparency, I am not sure how many program that I needed

      I'm considering to maintain a few default shaders for COMMON profile,
      1-no-texture, 2-one of colorOrTexture contains texture, 3-........

      Any advices in general or about how to optimize/split (if I need) these shaders which I provied as link?
      What do you think the shaders I wrote, I would like to write them without branching if posible,
      I hope I don't need to write 50+ or 100+ shaders, and 100+ default programs

      PS: These default shaders should render any document, they are not specific, they are general purpose...
             I'm compiling and linking default shaders when app launched

      Thanks
    • By CircleOfLight97
      Hi guys,
      I would like to contribute to a game project as a developer (open source possibly). I have some experiences in C/C++ in game development (perso projects). I don't know either unreal or unity but I have some knowledges in opengl, glsl and shading theory as I had some courses at university regarding to that. I have some knowledges in maths and basic in physics. I know a little how to use blender to do modelling, texturing and simple game assets (no characters, no animation no skinning/rigging). I have no game preferences but I like aventure game, dungeon crawler, platformers, randomly generated things. I know these kind of projects involve a lot of time and I'd be really to work on it but if there are no cleary defined specific design goals/stories/gameplay mechanics I would like to not be part of it x) and I would rather prefer a smaller but well defined project to work on that a huge and not 'finishable' one.
      CircleOfLight97
    • By gamesthatcouldbeworse
      Hi, I finally released KILL COMMANDO on gamejolt for free. It is a retro-funsplatter-shooter with C64 style. Give it a try.
  • Popular Now