- July 26, 2010 at 7:23 pm #30228
PVFrame: SDK build 2.05.0782
I am having a bit of a problem trying to stream vertex color attributes. I have no problem with positions, uvs etc but for some reason canâ€™t get colors to works.
It works with constant vertex attributes ie:
but it fails with my vertex arrays:
Essentially, with custom vertex arrays, I always end up with 0,0,0,1 ( black) inside my shader, regardless of what is in the array.
I know my color array is fine ( the same array works with GLES 1.x ) but for some reason I just canâ€™t get it to work with gles2.
I havenâ€™t had a chance to test it with the real thing ( iPhone/iPad) but with PVFrame based emulation, it fails on 2 different graphics cards so I donâ€™t think this is a driver issue.
I wondering if this is a known issue ( I couldnâ€™t find anything, and as I mentioned it works fine with GLES 1.x)
ThanksJuly 27, 2010 at 10:15 am #34168
Hi, others know more about this than I do, but I one problem of the code is that the first argument (the attribute location index) of all these functions should match. And the constant vertex attribute is only relevant if the vertex array is disabled. I.e. the first code should probably be:
and the second code should be:
Maybe the problem is that you have enabled the vertex attribute arrays for the wrong attribute location?July 27, 2010 at 3:43 pm #34169
Actually, that was just my copying/pasting mistake.
Anyway, once I get update my provisioning on my apple devices I will try there and see … if it still doesn’t work then obviously something is wrong in my code.