Questions tagged [vao]

Vertex Array Object (VAO) is an OpenGL Object that encapsulates all of the state needed to specify vertex data. They define the format of the vertex data as well as the sources for the vertex arrays.

A Vertex Array Object (VAO) is an OpenGL Object that encapsulates all of the state needed to specify vertex data (with one minor exception noted below). They define the format of the vertex data as well as the sources for the vertex arrays. Note that VAOs do not contain the arrays themselves; the arrays are stored in Buffer Objects (see below). The VAOs simply reference already existing buffer objects.

Resources:

242 questions
0
votes
1 answer

VBO wont draw, large dataset

I am trying to render a large dataset of ~100 000 values in OpenGL, right now only as points, later using sprites. My vector "positions" is ordered like this: +------------------------------------------------- | x | y | z | w | x | y | z | w | x…
mike
  • 194
  • 1
  • 2
  • 18
0
votes
1 answer

C++ GLSL Multiple IBO in VAO

I'm developing a small project and I'm using VBO, IBO and VAO, I have an array of vertices, and its respective array indices, I do the same with the materials (since the same vertex can have a different material other side ) but this link in a VAO…
Josseline Perdomo
  • 363
  • 1
  • 4
  • 15
0
votes
1 answer

Rectangle instances with different texture UVs

I am new to modern OpenGL VBO/VAO and I struggle with one thing: I have coded a RectangleAsset based on this tutorial, but I am not sure how to move information about texture UVs to the RactangleAssetInstance (my rectangles can have different…
wondra
  • 3,271
  • 3
  • 29
  • 48
0
votes
1 answer

vao management for model with multiple mesh

I have a .obj model with multiple mesh. I want to create a vao for each mesh. And then render the all thing. For this i want to create a vao pointer change its sized depending to the number of mesh in the model. I charge the model using assimp. No…
user3544665
  • 55
  • 10
0
votes
1 answer

JOGL error with glVertexAttribPointer

I am tring the code below (using VAO(Vertex Buffer Object) and glDrawArraysInstanced method) If I set useVao = false, it is ok. But when I set it to true, I've got the following exception: javax.media.opengl.GLException:…
user3787194
  • 149
  • 1
  • 5
0
votes
1 answer

VAO/VBO management - change all VBO data

I have a VAO with 3 VBOs, containing a model with vertexes, normals and texture coordinates. I intend to change all the data in those VBOs quite often, roughly from a 500ms to a 20ms update frequency. The new model downloaded to the VBO can have…
user3544665
  • 55
  • 10
0
votes
2 answers

Why isn't my OpenGL "hello world" rendering?

I've been hitting my head against the wall for two days on this. I'm trying to distill the simplest possible OpenGL Core ~2.0-3.2 drawing sequence so that I can build code off of it and really understand the API. The problem I'm running into is that…
Falkreon
  • 598
  • 5
  • 14
0
votes
1 answer

C++/OpenGL - VAO Problems

After learning about VBOs, a friend told me to try using VAOs for linking cube indices with the vertices. I followed about every tutorial I could find with no avail. It looks like the buffers are binding correctly and everything works up until I try…
tcoy
  • 179
  • 1
  • 3
  • 11
0
votes
0 answers

EXC_BAD_ACCESS when freeing a IBO and VAO

I made a small game in iOS where VBO, IBO, and VAO are created on stage whenever a new model is loaded. When the model is no longer necessary, those buffers are freed. The buffer creation and destruction is always done at the beginning of the…
endavid
  • 1,781
  • 17
  • 42
0
votes
2 answers

Are VertexArrayObjects used in practice?

I am currently learning OpenGL and VAO's are confusing me. As far as I understand VAO's are just encapsulating the state of VBO's. Bind VAO load buffer data Disable VAO and then you can draw it like activate VAO DrawArray ... deactivate VAO But I…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197
0
votes
2 answers

OpenGL 3.2 Triangles Not Drawing

I'm creating an application that displays OpenGL primitives in the form of triangles but for some reason the application won't actually draw the graphics to the context. The problem is that the triangles won't change their color from black. I can…
Liam Potter
  • 1,732
  • 8
  • 24
  • 47
0
votes
1 answer

Unresolved glGenVertexArrays and glBindVertexArray

I am trying to render a cube in opengl using vertex array objects. The same code works on a linux box but doesnt work on a windows machine. I get unresolved external error while using glGenVertexArrays and glBindVertexArray. glewInfo.exe reports…
Richard Macwan
  • 422
  • 1
  • 5
  • 19
0
votes
1 answer

OpenGL is it possible to have two VAOs active at the same time?

So I recently learned about VAO (Vertex Array Object), and so far they seem pretty awesome, but I have a problem I cant seem to solve. I have a bunch of models, their vertex-states are stored in separate VAOs, so a single call to …
Jacob Kofoed
  • 141
  • 3
  • 9
0
votes
1 answer

opengl multiple objects, textured and non textured, artifacting

I am drawing a frame with pendulums hanging off of it, the pendulums have a texture applied but the frame has no textures. When I display both i get But when i render only the pendulums they draw correctly and i get I'm unsure of why this is. I…
user2755996
  • 115
  • 2
  • 8
0
votes
1 answer

OpenGl object not displaying, shader related

I'm trying to render in opengl using shaders, the background colour generates and no error messages appear but the object I'm trying to render doesn't show. I've been trying all day to solve this but have come to nothing. I'm reading vertices and…
user2755996
  • 115
  • 2
  • 8