A Vertex Buffer Object (VBO) is an OpenGL feature that provides methods for uploading data to the video device for non-immediate-mode rendering.
1
vote
1answer
82 views
How should I setup my minecraft-like world rendering for the best performance?
I want to know what technique will give me most fps in game. I have minecraft-like world and I need to display it. Now I have only one cube, created as VBO and if i need to display cube I just display ...
2
votes
1answer
128 views
Manage VBO/VAO in a graphic engine
I'm trying to make a 2D Graphic engine for training me. I've actually made it with immediate draw and I've made the renderer outside (so I can switch between OpenGL and DirectX).
How can I manage ...
-1
votes
1answer
112 views
OpenGL noob: Using VBO to draw a colored triangle [closed]
I tried using straight vertex arrays to draw a triangle with different colors for each vertex and it works fine, but when I use VBO it won't work, so I'm doing something wrong.
// point 1
...
0
votes
0answers
45 views
VBO GL_STREAM_DRAW double buffer or new buffer?
There is some conflicting information on the STREAM usage specifier.
Apple's documentation states you should use double buffering and update the stream buffer that is not being read by the GPU.
...
0
votes
0answers
49 views
Strange problem with rendering quads in OpenGL ES 2.0 with custom classses on Android
I have 2 custom classes, one is for drawing quads (Quad) and the other is for drawing quads using VBO's (VBOQuad).
If I create a simple quad and render it like so:
Quad sprite = new Quad();
...
8
votes
2answers
2k views
OpenGL: VBO or glBegin() + glEnd()?
I recently was given this link to a tutorial site from someone who I gave the original OGL Redbook to. The third header down says distinctly to forget glBegin() & glEnd() as the typical render ...
2
votes
1answer
97 views
Proper way to maintain Vertex Buffer Objects
I've started learning WebGL, currently I'm building a 2D lighting system, but there is some confusion going on inside my head.
How the lighting works is based on this tutorial ...
1
vote
1answer
103 views
OpenGL VBO Additional Attributes
If I have a buffer with my vertices, normals and texture coordinates, and I use glDrawArrays to draw the VBO to the screen, how can I send attributes per vertex that I placed in an array to the shader ...
3
votes
1answer
144 views
When do I use VBO?
My drawing code currently draws by calling glVertex3f(x, y, z) for each of my object's vertexes, and I've been suggested to use VBO as it'd enhance the performance of my drawing code.
After checking ...
4
votes
3answers
504 views
Error when trying to use VBO “array vertex_buffer_object must be disabled to call this method”
EDIT
I have effectivley re-wrote this question in order to greatly imrpove its quality - see revision logs if you must
I have narrowed down my problem to the initialisation phase of my program, when ...
1
vote
2answers
249 views
VBO with texture index buffer different than vertex index buffer
I am trying to write my own OBJ importer and renderer in OpenGL (yes, I know, reinventing the wheel) and I found a problem that I don't knwo how to handle.
In an OBJ file faces are defined by a list ...
0
votes
2answers
177 views
Multipule VBO in Opengl [closed]
I have currently in my application 2 VBO one which is a streamed buffer and for the moment the other is a static buffer.
However even when the steam buffer is not bound and the static buffer is bound ...
3
votes
2answers
432 views
OpenGL: Is it possible to use VAO's without specifying a VBO
On all the tutorials I can find about VAO's (Vertex Array Objects), they show on how to use them by configuring vertex attributes and binding a VBO (Vertex Buffer Object). But I want to create a VAO ...
5
votes
1answer
157 views
Why do mesh classes still contain vertex arrays if VBO's exist?
I find I'm a bit confused about the practical use of resource management in combination with memory not tied to the CPU. Correct resource management is often recommended in game tutorials, books and ...
0
votes
1answer
118 views
My VBO is always empty [closed]
I'm trying to render an obj file with a VBO but I have some problems. I have a Renderer object that has a method "setPositions()" that simply stores some data from a QVector to a VBO. The render part ...
2
votes
1answer
186 views
VBO and shaders confusion, what's their connection?
Considering OpenGL 2.1 VBOs and 1.20 GLSL shaders:
When creating an entity like "Zombie", is it good to initialize just the VBO buffer with the data once and do N glDrawArrays() calls per each N ...
-1
votes
1answer
230 views
Problem rendering VBO [closed]
I'm developing a game engine using OpenTK. I'm trying to get to grips with the use of VBO's. I've run into some trouble because somehow it doesn't render correctly.
Thus far I've used immediate mode ...
0
votes
1answer
261 views
Octrees and Vertex Buffer Objects
As many others I want to code a game with a voxel based terrain. The data is represented by voxels which are rendered using triangles. I head of two different approaches and want to combine them.
...
0
votes
3answers
335 views
Sprite batching seems slow
I have implemented a sprite batching system in OpenGL which will batch sprites based on their texture. However, when I'm rendering ~5000 sprites all using the same texture I'm getting roughly 30fps.
...
4
votes
1answer
913 views
Interleaving Arrays in OpenGL
In my pursuit to write code that matches todays OpenGL standards I have found that I am completely clueless about interleaving arrays. I've tried and debugged just about everywhere I can think of but ...
1
vote
2answers
287 views
Animate sprite/texture position with VBO
I'm currently worlking on a renderer for my projects and I want animate a sprite on screen. I've got a spritesheet but I don't know what is the the best way to update the texture coordinates for each ...
5
votes
1answer
508 views
VBO and gl*Pointer management practises?
I'm aware it's not a simple yes/no question and for the moment I can't tell if it can be simply answered, or is it topic for a long discussion which is not suitable for our Q&A format.
I want to ...
10
votes
2answers
1k views
What OpenGL version(s) to learn and/or use?
So, I'm new to OpenGL... I have general knowledge of game programming but little practical experience.
I've been looking into various articles and books and trying to dive into OpenGL, but I've ...
0
votes
1answer
299 views
Problem rendering a Wavefront mesh, nothing displays(VBO)
I'm having a problem with displaying my wavefront obj file using VBO's My fps counter slows down like there is something being drawn but I cannot see anything. Is it a problem with my loader? Or maybe ...
0
votes
4answers
787 views
Should I use a VBO if the vertex data changes from time to time?
If I have a very large number of vertices, but they're static for about 70% - 80% of their life time, should I use a VBO for them? If so, what usage should I specify? This doesn't sound like a case ...
2
votes
0answers
310 views
Geometry Shader and Stream Output with Directx11
I am having trouble trying to send verticies generated in the Geometry Shader to Stream Output. What I am trying to accomplish is to generate verticies from the Geometry Shader and store them to a ...
2
votes
2answers
280 views
VBO triangle not rendered using Freeglut Opengl 3.x, not understanding the weird fixes
I've just started to learn OpenGL 3 and I'm using freeglut for the context. I ask for a 3.3 context using:
glutInitContextVersion(3,3);
glutInitContextFlags(GLUT_FORWARD_COMPATIBLE | GLUT_DEBUG);
I ...
3
votes
0answers
290 views
FPS Drop after upgrading to XCode 4.3
I'm hoping someone else has experienced this and subsequently found a solution as I am about to light my own hair on fire in frustration.
Simply put, I was creating a Cocos2D app using XCode 3.2.6 ...
-2
votes
1answer
118 views
Adding VBO to current project [closed]
Learning some GLUT, I implemented my own set of geometric objects, each on its own procedure, doing glPushMatrix() and glPopMatrix() in between. This allows for reuse on other demos.
Yesterday, I ...
0
votes
3answers
278 views
How to deal with VBOs when rendering mesh's that may or may not be displayed?
I'm working on a multiplayer game and will be displaying other players near the player. At most 16 players could be near the gamer however there could also be 0. What I'm thinking of doing is ...
1
vote
1answer
852 views
Why doesn't my texture display with this GLSL shader?
I am trying to display a DXT1 compressed texture on a quad using a VBO and shaders, but I have been unable to get it working. All I get is a black square.
I know my texture is uploaded properly ...
1
vote
0answers
123 views
Strange and erratic transformations when using OpenGL VBOs to render scene
I have an existing iOS game with fairly simple scenes (all textured quads) and I'm using Apple's "Texture2D" class. I'm trying to convert this class to use VBOs since the vertices of my objects ...
9
votes
3answers
2k views
Why does OpenGL >= 3 only allow VBOs?
I see that OpenGL versions 3 and up eliminate the use of client-side rendering. Immediate mode has been eliminated, and vertex arrays seem to be deprecated. Instead, if I understand correctly, VBOs ...
6
votes
1answer
712 views
How is animation handled in non-immediate OpenGL?
I'm a newbie to modern OpenGL. I'm comfortable with the immediate OpenGL methodology, but I've never done any serious use of VBOs. My question is about animation. In immediate mode, to achieve ...
1
vote
2answers
372 views
Chessboard colors with VBO
I am trying to draw a chessboard pattern using VBO. Geometrywise, I have it implemented and working nicely. However, I have come to the point where I want to color up the board and I have realized ...
2
votes
1answer
600 views
Need some help implementing VBO's with Frustum Culling
i'm currently developing my first 3D game for a school project, the game world is completely inspired by minecraft (world completely made out of cubes). I'm currently seeking to improve the ...
3
votes
2answers
407 views
How can I make the switch from immediate mode to VBOs?
I've been using OpenGL for a short time now- and I'd like some clarification on VBOs.
As I understand it, a VBO is an object stored on VRAM. In immediate mode, to apply a texture we simply bind it and ...
2
votes
2answers
389 views
How to convert a Maya object to a VBO?
I'm currently trying to teach myself OpenGL... and quickly discovering that the Immediate Mode taught in old OpenGL tutorials is basically obsolete... which leads me to VBO's... which I kind of get ...
7
votes
1answer
993 views
Should I give each character its own VBO or should I batch them into a single VBO?
I'm making a 3D first person game. Should I give each character its own VBO or should I batch all characters into a single VBO? What are the pros/cons?
0
votes
2answers
532 views
Using multiple indexes with buffer objects in OpenTK
I've got multiple buffers in OpenGL holding data on position, normals and texcoords.
I also have an equal number of buffers holding distinct index data for each of those buffers.
I quite like this ...
5
votes
1answer
2k views
How to use multi-thread OpenGL application to update VBO and use it at the same time?
I have simple application. It has two threads. Each thread has it's own rendering context, but they share one VBO (this is working, I tested it).
Now what I want: One thread is rendering some data ...
