KTStephano / ktstephano.github.io

GitHub websites
0 stars 1 forks source link

https://ktstephano.github.io/rendering/opengl/prog_vtx_pulling #5

Open utterances-bot opened 1 month ago

utterances-bot commented 1 month ago

Programmable Vertex Pulling | J Stephano

Devlogs and tutorials about GPGPU and graphics programming

https://ktstephano.github.io/rendering/opengl/prog_vtx_pulling

dsimon1405 commented 1 month ago

Thanks for modern openGL tutorial. In your example you don't use vao at all. And you write "No more VBOs or VAOs. Nice!". If run code without vao, glDrawArrays throw GL_INVALID_OPERATION. If use glDrawElements() where to bind array of elements? and third parameter of glDrawElements() is type of that array. I tried to make something like this (it doesn't work): glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuf); glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);

Can you please show, some C++ simple working example without vao, if it is possible.

KTStephano commented 2 weeks ago

@dsimon1405 Did you check to make sure you selected a GL version that provides the necessary features?

oscarburga commented 1 week ago

Great article, thank you for this :) I do believe you do still need to have a VAO bound (even if empty) to be able to draw with PVP (atleast, I personally wasn't able to get anything to render until I bound an empty VAO at the beginning of my program). Did you get your example working without using any VAO at all? Wonder if this might be driver-specific behavior.