A Vertex Buffer Object (VBO) is an OpenGL feature that provides methods for uploading data to the video device for non-immediate-mode rendering.

learn more… | top users | synonyms

3
votes
2answers
128 views

2D games and modern OpenGL

Preconcepts Ok, so what I've gathered so far is this: don't use fixed pipeline (deprecated or going to be deprecated) vbos store "object models" (n vertex data, mostly) vaos describe how data is ...
0
votes
0answers
39 views

Program not proprerly switching shaders [on hold]

currently I'm experiencing a strange problem. I'm not really experienced with opengl, but I will walk through my program and what I want to do with it. The idea is to draw a height map with a 3D ...
4
votes
2answers
265 views

How does a general Renderer::drawRect(0, 0, 100, 100) handle VBO's?

Lots of game engines and GUI systems have a general Renderer class with functions like: renderer.drawRect(0, 0, 100, 100); renderer.drawText(204, 452, "Hello, world!"); I understand how this could ...
0
votes
0answers
34 views

Dynamic VBO update possibly corrupting data?

I want to draw a line between two vertices. On a mouseclick the vertex data will change and I want to update the line to use the new values. I am using a VBO for this and it looks like the update ...
1
vote
1answer
88 views

For Vertex Buffer Steaming, Multiple glBufferSubData VS Orphaning?

I was learning OpenGL recently. In games, we need to update the position of game objects frequently, and they will come in & out of screen constantly. So it means in rendering we need to update ...
1
vote
0answers
65 views

Easy way to set face colors with indexed VBOs?

I'm loading OBJs, which lend themselves well to setting up as indexed VBOs, since each vertex is only defined once and then a face definition will reference the same vertex more than once when they ...
1
vote
1answer
83 views

IBO interfering with VBO data?

I have a vertex and color VBO that render a plane (2 triangles) just fine. However, when I attempt to use an IBO to render the plane, the vertices are completely off. My nice square looks all crumpled ...
0
votes
1answer
41 views

Using IBO's with color

I am trying to familiarize myself with IBO's by drawing triangles etc but I'm finding no way to get the color to apply properly. Can I not use an IBO to index the color values as well? I am having ...
0
votes
3answers
72 views

Arbitrary number of VBO to Vertex Shader

I am currently using standard modern OpenGL way to render a mesh via VBO and attributes glEnableVertexAttribArray(aVertexPosition); glBindBuffer(GL_ARRAY_BUFFER, VBO); ...
0
votes
3answers
113 views

Can I mix the use of VAO and direct usage of glVertexAttribPointer?

Let's say I am not using VAOs. I have an array of vertex positions in memory that I want to send to the shader. I do the following (assume I have enabled the corresponding vertex attrib arrays): ...
1
vote
1answer
79 views

Tons of textures using vbo

I recently learned how to create shaders and was looking to make a simple top down game, starting with a tilemap. The problem I encountered, Whilke I can store a vbo of all the blocks in a "chunk" of ...
3
votes
1answer
339 views

OpenGL - Drawing multiple meshes at once using VBOs and IBOs

I have been learning OpenGL 2.1 but using shaders, VBOs, IBOs, etc. I have gotten a rendering engine that can load and draw meshes, materials, forward lighting (no shadows yet), SceneNodes, and ...
0
votes
0answers
53 views

OpenGL textures trigger error 1281 if SFML is not called

I am using SOIL to apply textures to VBOs, without textures i could change the background and display black (default color) vbos easily, but now with textures, openGL is giving an error 1281, the ...
-1
votes
1answer
54 views

Is lighting different from Immediate mode rendering to VBOs?

I recently got a textured cube to render as a VBO, and I've noticed some strange things as I have been trying to incorporate lighting. Firstly, there is no difference if I comment out any lines ...
0
votes
1answer
44 views

How to texture a VBO?

I'm not sure which way is the best way to do this for my purposes. My purposes being having a textured (with an image) cube. Also, I've been following a blend of tutorials, so I'm not sure which ...
0
votes
1answer
109 views

C++ OpenGL / SDL2 VBO — Depth problem / Transparency

I got a problem with my VBO. When having textures. The far blocks overlay the near ones. I tried editing the alpha, depth buffer, the VBO byte allocation. Nothing works for me... The FAR plane is ...
0
votes
0answers
74 views

How to render multiple VBOs in LWJGL

I'm still trying to grasp the understanding of VBOs. When you create the floatbuffer, I was told if you keep adding to the put, you would get more points for a shape with more points. My problem is, I ...
-2
votes
1answer
93 views

Texture Stretching on VBO cube

I'm using JOGL and I'm trying to render a textured VBO cube with glDrawArrays. The cube renders, but the texture is stretched and stripy as seen in the picture above. It seams that changing my ...
0
votes
2answers
341 views

Texturing a VBO cube (JOGL)

I've been having trouble texturing a cube using vertex buffer objects. EDIT: I updated/replaced my shaders to fit the right version. The program compiles and links, but it shuts down java in ...
1
vote
0answers
89 views

Creating a voxel chunk with a VBO - How to translate the coordinates of each block and add it to the VBO chunk?

I'm trying to make a voxel engine similar to minecraft as a little learning experience and a way to learn some opengl. I have created a chunk class and I want to put all of the vertices for the whole ...
1
vote
1answer
61 views

I don't understand why one of my vbo is overwritten by another

to create a vbo I use this function: public void loadVBO(){ vboID = GL15.glGenBuffers(); GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, vboID); ...
2
votes
2answers
136 views

OpenGL - How to draw each nth triangle using glVertexAttribPointer

I have a vertex buffer. There are situations when I don't want to render the whole mesh, but let's say each nth triangle of the mesh. I am using VAOs and VBOs. My data in the buffer is like this: ...
1
vote
4answers
288 views

Are VBOs only for OpenGL 3.x?

Are VBOs only for OpenGL 3.x? I'm using immediate mode and I know it's bad, slow, and deprecated. But then I looked at display lists but they are deprecated too. I guess the VBO is the only one left ...
1
vote
1answer
158 views

What should I do when a VBO becomes too large in OpenGL?

Currently I have one buffer for my vertex data and one buffer for normals data. I fill them and then pass them to OpenGL for rendering. The problem is when I load too large mesh file like "Lucy" from ...
0
votes
1answer
209 views

OpenGL: How to improve the performance of rendering context [closed]

I have written a benchmark program that compares the performance of OpenGL and DirectX libraries. The problem is that OpenGL gets much lower performance than Direct3D. At the end the program generates ...
5
votes
2answers
380 views

Are display lists faster than VBOs?

I'm making a voxel rendering engine. My "chunks" are 32 * 32 * 256 blocks and I can render a 16 * 16 square of them (which corresponds to Minecraft's maximal render distance). I'm using VBOs holding ...
0
votes
1answer
153 views

Strange behaviour using VAO (OpenGL 4.0)

I want to display a simple textured Monkey mesh using VAO. Here's the code in the render part first without VAO to see what is the result I'm looking for. Texture *pTexture = ...
1
vote
2answers
176 views

What is the correct way to draw layered Sprites in modern OpenGL?

So what do I mean by layered sprites? Layered Sprites are Sprites that consist of multiple layers, e.g. you have sprite sheets for the basic Body, the Head, Clothes, Weapons, etc. Well now I wanted ...
0
votes
0answers
92 views

LWJGL Importing .obj faces properly

I've created a simple OBJ reader. I am able to draw and render the object I created without using the texture or normal coordinates just fine. However, I'm trying to use all of the face portion in ...
0
votes
1answer
437 views

LWJGL Adding Textures with VBOs

I'm currently trying to texture a cube, but I am having no luck determining what the next step should be. I can load an .obj model from Blender into my LWJGL program just fine, and I can even make a ...
0
votes
1answer
264 views

Indexed UV mapping problem [closed]

I am trying to map UV coordinates to indexed vertices with this code. I am using a vertex buffer, texture buffer, and index buffer (note the vertex and texture buffers are indexed in the same order) ...
6
votes
1answer
254 views

How to debug framerate drops with VBOs, OpenGL

I'm working on an experimental app to test how VBOs perform when rendering a minecraft-like world. If the performance is better than what I use now I'll update my actual game. Based on what everyone ...
3
votes
2answers
247 views

How can I improve the performance of this rendering code?

I've created a practice application for rendering triangles/squares/cubes using VBOs. This is mainly so I can get it right before upgrading a 3D block world game I've written that currently is using ...
1
vote
1answer
45 views

VBOs no longer renger when gluPerspective applied

I've written a basic program so I can make sure I'm properly learning VBOs before converting my 3d game's rendering to them. Essentially, this question is why changing the perspective is the GL setup ...
1
vote
2answers
481 views

How can I create a VBO when I don't yet know how many vertices it will contain?

I'm trying to convert my 3D block work rendering from immediate mode and display lists to VBOs. I'm having trouble understanding how to properly handle creating the buffers: I really don't know how ...
0
votes
1answer
180 views

Why am I seeing undesirable rendering results using VBOs like this?

I am trying to write a program that renders using VBO(vertex buffer objects). Everything works great except that when I run the program, It looks like the object is spazzing out. I think its due to ...
2
votes
2answers
530 views

Can I optimize my voxel meshing regardless of different textured blocks?

At the moment, I mesh every voxel in my terrain data to a block with 4 vertices for each face. This makes assigning texture coordinates of my texture atlas very easy, since I can just pick the desired ...
1
vote
1answer
221 views

How many VBOs should I use and should I keep a copy of their data?

Firstofall, I am sorry if my question is to broad. I am developing a tile based game and switched from those gl.Begin calls to using VBOs. This is kind of working allready, I managed to render a ...
1
vote
2answers
1k views

Drawing multiple objects from one Vertex Buffer Object in OpenGL/OpenTK

I am trying to experimenting drawing method using VBO in OpenGL. Many people normally use 1 vbo to store one object data array. I was trying to do something quite opposite which is storing multiple ...
0
votes
1answer
155 views

Optimization with VBOs [closed]

I am currently working on a cube engine and am experiencing some issues with CPU optimization. I store all my quad VBO data inside a Block (at x,y,z of a chunk) class, which is stored inside an array ...
0
votes
0answers
128 views

Why must VBOs be “broken in?”

If I create a VBO in LWJGL of, say, 128,000 vertices, and push it to the graphics card, there's a considerable delay. This delay lasts for about 11 to 12 milliseconds. The same thing happens the ...
0
votes
1answer
272 views

OpenGLES 2.0 batching method and do not draw inactive object

I am researching about "batching" objects for one big VBO and reduce draw call. These are what I am doing now: Create interleaved VBO based on texture or render state (like Blending) So, for ...
2
votes
2answers
682 views

OpenGL - drawElements 2D imposible z-sorting (textured)

I am creating a 2D program in OpenGL 3.2 Now to render what I do is have a VBO for each texture and add the elements of the objects that use that texture to this vbo. Now as you know the order you ...
2
votes
1answer
147 views

Add vertices to “middle” of VBO

I've been playing around with VBOs as of late (mostly because my game necessitates it), and I've found the need to add new vertices to a VBO, but not necessarily at the end. The game in question is a ...
2
votes
0answers
237 views

VBO = glGenBuffers() IllegalStateException [closed]

i'm kinda noob in OpenGL but I have this problem: I get an IllegalStateException at this code: int vboVertex = glGenBuffers(); In-detail exception: Exception in thread "main" ...
-2
votes
1answer
137 views

Can't get indices with VBO working [closed]

I'm learning opengl for a few days only. Now I'm trying to use indices for my cube, but can't get it working, I don't see anything on screen. struct Vertex { GLfloat position[3]; GLfloat ...
6
votes
1answer
779 views

How would one draw many objects using the same VBO

I'm kind of stuck with this question for some time now, maybe because I don't know exactly what to search for, it might be a term I have not heard of yet as most tutorials ends after drawing one ...
0
votes
1answer
1k views

Draw quad with OpenGL VBO using OpenTK

I'm trying to learn how to use VBO (Vertex Buffer Objects) by putting together a simple program that draws a quad to the screen using OpenTK (C# OpenGL bindings). Unfortunately I'm not seeing ...
0
votes
1answer
219 views

VBO in a class doesn't draw when The class has a destructor

I am making this class QuadTemplate class QuadTemplate { public: QuadTemplate() { vbo=0; uvbuffer=0; vao=0; TextureID=0; vboType=0; ...
0
votes
1answer
191 views

Textures not rendering with VBOs

After having used display lists for my programs since I started learning OpenGL, I've finally decided to switch to VBOs after experiencing a considerable amount of lag when I started work on a new ...