I have an application which uses shader and have had issues on a laptop with an Intel HD 3000 card. The same application runs perfectly fine on a handful of nvidia cards I've tested as well as a laptop with an Intel HD 2000 card (same driver). There are two related issues I've had with the HD 3000 card:
1. Shader programs wont link (compiles perfectly fine) and don't give any message to indicate why.
After lots of digging, I found that the shader will link as long as some sort of gl objects have been rendered before think link attempt. This is boggling my mind. Essentially I now have this in my code so that it will work no matter what:
glBegin(GL_QUADS);
glEnd();
// compile and link.
And as long as I have that before I attempt to compile and link (which I only do once, every other pass I just call glUseProgram. There is no need to have the noop begin/end every pass just before compiling and lnking), the images draw correctly.
After I got that working, I was having an issue where the image was drawing on top of everything else even though it was the first thing to be rendered. After trying different things, I found that the my objects correctly draw on top of the image if I resetup the clipping pane after rendering the image. Setting up the clipping pane involves:
Thanks for the replies! Since porting to D3D is not a possibility with the application, I did some digging on the intel developer forums and found someone who had posted that they had issues with an opengl game they wrote on the same card and fixed it by uninstalling intel's drivers and switching to the manufacturers version. I tried this and it actually fixed my issues as well even though the laptop with the HD2000 is still on intels latest driver (both laptops were DELL latitudes, just different versions). So if anyone else is having issues with intel cards, maybe try manufacturer drivers.
Gl3 core profile on the HD3000 is absolutely fine (It's more compliant than the Nvidia drivers!). The mac-mini, the macbook air, and the macbook pro all use the HD3000 for it's GL3 support, so it can't be that bad now can it! ;) [/font]
Gl3 core profile on the HD3000 is absolutely fine (It's more compliant than the Nvidia drivers!). The mac-mini, the macbook air, and the macbook pro all use the HD3000 for it's GL3 support, so it can't be that bad now can it! ;) [/font]
[/quote]
I'm surprised. I don't have an Intel and never have but I'm still surprised.
Sig: http://glhlib.sourceforge.net an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
The hardware is actually fundamentally fine (if under-performing), but the Windows driver is still quite flaky. When targetting Intel with OpenGL you have to very consciously set out to target Intel - my own personal rule of thumb here is to restrict what I do in GL to what I would do with D3D - as in, use the same texture formats, keep within caps limitiations reported by D3D, etc. That way things generally don't go too far wrong, but there are still cases where a buggy driver workaround is needed (e.g. in this case the glBegin/glEnd hack; I've previously had to surround every draw call by a glPushAttrib/glPopAttrib pair if using generic attrib arrays otherwise the driver would send 0,0 for texcoord sets after the first). I've seen Intel drivers hard-lock the OS before (thankfully a thing of the past with WDDM), writing to the front buffer - despite the fact that the GL spec says that you can - is completely out; even with D3D I've seen walls begin to dissolve before my very eyes owing to restoring incorrectly reported default state values (way to freak out your end-users!)
Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls.