Would you mind sharing how you're setting up your vertex attribute pointers? I'm attempting and this isn't working for me. For example, I'm using:
Originally Posted by Michele Bosi
glVertexAttribPointer(MyMatID+0, 4, GL_FLOAT, GL_FALSE, 0, NULL);
glVertexAttribPointer(MyMatID+1, 4, GL_FLOAT, GL_FALSE, 0, NULL);
glVertexAttribPointer(MyMatID+2, 4, GL_FLOAT, GL_FALSE, 0, NULL);
glVertexAttribPointer(MyMatID+3, 4, GL_FLOAT, GL_FALSE, 0, NULL);
but I'm not sure whether the stride and offset are correct.
Also, do those 4 attribute locations represent the rows or the columns of the matrix?
Of course that it doesn't work. Do you know the meaning of the last two parameters? If you are referring to the same VBO, offsets cannot be 0 for all attributes, as well as stride.
1. Look at the specification of the glVertexAttribPointer function.
2. Never revive such old posts! This is almost 5 years old post, and there is no purpose asking OP anything now.
Request for the administrator (web master): Is it possible to automatically lock threads after 6 months of inactivity?
Agreed! Suggested that recently at the bottom of the OpenGL forum upgrade thread. Might follow up there or PM Khronos_webmaster to request this.