Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20046

Re: Intel HD 5000 : glEnableVertexAttribArrayARB via GLEW does not work

$
0
0

Thank you for taking the time to investigate this so thoroughly kevin_intel, it's appreciated.

 

Sadly, none of the suggestions apply to the original issue - all shader values are correct and initialised, as is the vertex attribute array. VBO's are not used.

 

I think the tutorial has probably sidetracked the issue instead of helping as I'd hoped. Although I actually do get the 'loss of diffuse' on HD5000 as well the tutorial, the primary problem is that with tangents being supplied by enabling vertex attribute arrays using glEnableVertexAttribArrayARB(...) the geometry just collapses on HD5000 only.

 

Here is what happens when enabling the tangents array using glEnableVertexAttribArrayARB(0)...

 

vertex-tangent-array.jpg

So there, it's actually placing all the vertices in the geometry onto the surface of a unit sphere of radius 1.0f

 

Now, with the exact same rendering code and shaders - but removing all calls to glEnableVertexAttribArrayARB(...)

 

vertex-no-tangent-array.jpg

 

The geometry is no longer affected - however, the same shaders no longer have the tangent space normals they need to provide normal mapping.


Viewing all articles
Browse latest Browse all 20046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>