Questions tagged [vertex-buffer-objects]
17 questions
3
votes
1 answer
how does a VBO get attached to a VAO
VAO being Vertex Array Object and VBO being Vertex Buffer Object. The calls for creating and binding/unbinding VAOs and VBOs have a general format as given below:
GLuint VAO, VBO;
glGenVertexArrays(1, &VAO);
glBindVertexArray(VAO);
…
![](../../users/profiles/9007093.webp)
juztcode
- 481
- 7
- 25
2
votes
2 answers
Unable to obtain buffer object data through glGetBufferSubData
I was hoping to make a tower of hanoi game using opengl. Eventually i came up to the problem of processing & transfering data from one buffer object to another.
I have successfully stored my vertices in a buffer object and bound it with a vertex…
![](../../users/profiles/12172162.webp)
Nani The Chaman
- 23
- 3
2
votes
0 answers
OpenGL VAO + multiple VBO - theory - batch render
I'm thinking about tweaking my current batch render. What I currently do is run a loop with command like this :
shader->setUniformValue("mvp_matrix", matrix * geo[x].geoMatrix);
glDrawElementsBaseVertex(GL_TRIANGLES, meshIndicesCountList[x],…
![](../../users/profiles/1873108.webp)
Dariusz
- 583
- 7
- 22
2
votes
1 answer
OpenGL VBO orphaning implementation
I'm currently working on a sprite renderer whose data changes every tick, so I've been looking for ways to stream a buffer object, I came across buffer orphaning... which confused me a bit.
Firstly, when you call glBufferData with a NULL pointer,…
![](../../users/profiles/5017647.webp)
Whiteclaws
- 704
- 5
- 24
1
vote
1 answer
Culling off-screen objects in OpenGL ES 2 2D
I'm playing about with OpenGL ES 2.0. If I'm working with a simple 2D projection, if I have a large 2D grid of vertices which are pretty much static (think map tiles), of which only a small proportion are visible at any one time, would it be better…
![](../../users/profiles/497119.webp)
Mark
- 1,644
- 15
- 25
1
vote
1 answer
glTexCoordPointer output not as expected
I am trying to use glDrawElements , glTexCoordPointer and glTexImage1D to create a 1D texture, render a surface dataset and color the vertices according to their height value.
GLuint tex = 0;
My texture generation:
glGenTextures( 1, &tex…
![](../../users/profiles/4132440.webp)
tester
- 355
- 1
- 4
- 14
1
vote
0 answers
Why does open scene graph only render if UseVertexBufferObject is enabled?
I have written a program with OpenSceneGraph (interfaced into Qt Gui) at work and all was fine. Now that I took the program home (i.e. I got the source code home and compiled it at home), I don't see the scene anymore unless I set the option…
![](../../users/profiles/6584985.webp)
Tare
- 392
- 6
- 20
1
vote
1 answer
opengl es2:Advantages of using vertex buffer objects(VBO)
I use glVertexAttribPointer to load my vertex data each frame(~242kb) it takes about 8ms.Will I gain any performance increase by employing VBO?I think the answer is NO since I still have to load whole data.The only way it can get performance gain is…
![](../../users/profiles/6920141.webp)
undefined
- 571
- 4
- 24
1
vote
1 answer
Android OpenGL ES 2.0 : VBA and VBO with different positioned objects
So I am working on a project which is a bit like Minecraft in that there are thousands of cubes.
I hit a huge performance hit quite early on and so started looking at ways to improve the FPS
I first looked at this and followed the recommended stuff…
![](../../users/profiles/369313.webp)
Burf2000
- 4,438
- 11
- 47
- 100
1
vote
1 answer
Lowest OpenGL ES version to use Vertex Buffer Objects
What is the lowest possible android and opengl es version that i can go and still be able to use vertex buffer objects?
![](../../users/profiles/97688.webp)
clamp
- 30,396
- 73
- 193
- 291
0
votes
1 answer
How to add objects to buffer? opengl
In this program I want to draw polygons.
Firstly I made sth like that:
GLuint VertexArrayID;
example of drawing polygon:
if (figure == RECTANGLE)
{
data[0][0] = px1; data[0][1] = py1;
data[1][0] = px2; data[1][1] = py1;
data[2][0] =…
![](../../users/profiles/4625292.webp)
Jorgusss
- 7
- 1
- 3
0
votes
0 answers
Large Vertex Data Buffer
I'm trying to draw a lot of squares by loading vertex data (position and texture coordinates) into a VBO. My issue is when I try to load all of these vertices, for some reason it skips over some squares, leaving an empty space. if I reduce the…
![](../../users/profiles/4104760.webp)
George
- 2,081
- 1
- 19
- 36
0
votes
1 answer
OpenGL: try to draw lines using VBO(vertex buffer object), it doesn't display
I try to switch my openGL code from using display list to using VBO.
In the code, I tried to draw a green-grid floor, which is composed by green lines in parallel with x-axis and green lines in parallel with z-axis.
But when the program runs, floor…
![](../../users/profiles/4637381.webp)
Shan-Hung Hsu
- 127
- 2
- 12
0
votes
1 answer
LWJGL Cannot use offsets when Array Buffer Object is disabled
I have looked at a lot of posts, and cannot find what is wrong with my code.
I have bound my VBO however it doesn't work and gives me this error:
Exception in thread "main" org.lwjgl.opengl.OpenGLException: Cannot use
offsets when Array Buffer…
![](../../users/profiles/3001431.webp)
nedb
- 427
- 4
- 11
0
votes
2 answers
Properly update vertex buffer objects
I've got a training app written in winapi
So, I've got GL initialized there and I've got node-based system, that can be described by couple of classes
class mesh
{
GLuint vbo_index; //this is for having unique vbo
float *vertex_array;
float…
![](../../users/profiles/3898180.webp)
Antiusninja
- 157
- 16