#When Adding IBO object wont render?
10 messages · Page 1 of 1 (latest)
when I had just the vertices and no index buffer, it would render perfectly fine, as a black triangle, I followed a tutorial for adding and index buffer, and made a class for it, and it didnt work, so I made a post about it, in the OpenTK discord server, and they said my ibo wasnt connected to my vao, and so I binding my vao before making the ibo, and nothing changed
perhaps the indices are wrong or something
use a graphics debugger and make sure the API state looks correct and if it does then inspect the vertex stream
actually, made me have to double check my vertices and indices, and my vertices are wrong, because there in normalized screen space. but I fixed them and its still not rendering. aswell I am using RenderDoc for debugging but I'm not really sure what I'm supposed to be looking for
Inside renderDoc, I'm getting this error. 7 Incorrect API Use High Undefined 0 No vertex buffer bound to attribute 0: pos (buffer slot 0) at draw!
This can be caused by deleting a buffer early, before all draws using it have been made
sounds worth investigating
Ive been looking in my code, and I havent deleted a buffer, as it may have said I did, should I bind the buffer while rendering the object?