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:

225 questions
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
  • 2,705
  • 2
  • 22
  • 38
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…
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
  • 89
  • 1
  • 4
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…
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
  • 569
  • 5
  • 13
0
votes
1 answer

What's the term 'batch' exactly means in 3D computer science (3D engine)?

I'm developping a 3D application using OpenGL. I have a misconception about a part of the following post: OpenGL VAO best practices I'm not sure about the meaning of the term 'batch' in this post. Does it means for each object of the scene ? So does…
user1364743
  • 4,293
  • 4
  • 42
  • 82
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
  • 169
  • 1
  • 2
  • 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,580
  • 14
  • 36
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
  • 13,812
  • 20
  • 88
  • 168
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,561
  • 6
  • 22
  • 43
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
  • 412
  • 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
  • 121
  • 2
  • 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
  • 103
  • 2
  • 6
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
  • 103
  • 2
  • 6
0
votes
0 answers

OpenGL 3.2 VertexArrayObjects & VertexBufferObjects

I'm trying to understand (in laymans terms) how VAO's & VBO's work. I have written a small OpenGL program which graphically creates a cool looking object. It draws a square using two triangles and VAO/VBO's. It also enlarges the Vertex Points. Below…
Reanimation
  • 2,751
  • 10
  • 45
  • 76
1 2 3
14
15