Vertex array objects are OpenGL container objects that hold the state needed to describe vertex array data for rendering. They store references to any buffer objects needed to use as vertex array source data.
Questions tagged [vertex-array-object]
70 questions
1
vote
1 answer
openGL drawing GL_LINES giving incorrect result
I am trying to draw a grid of velocity vectors, I expect the velocity at each grid point to be a line with a slop of 1. A slanting line, but I always end up with a vertical line. I'm not sure what I'm doing wrong. Is there something I'm…

Mn9
- 85
- 6
1
vote
0 answers
Verifying information about the graph
I'm having difficulty attempting to print the contents of my Graph using a toString method. Moreover, I do not receive an error when I add my Vertex to my Graph but I am unsure if I am properly adding my Vertexes. Thank you to anyone for any help!…

Mark Park
- 13
- 1
- 6
1
vote
0 answers
OpenGL - Properly updating the Vertex Buffer binding of a Vertex Array Object
I have noticed a strange error in my program, which occurs when I bind a VAO multiple times after calling glVertexArrayVertexBuffer. In my frame loop, I usually have one VAO for one draw call, but sometimes I would like to use the same VAO for…

stimulate
- 1,199
- 1
- 11
- 30
1
vote
1 answer
Is it possible to use Vertex Array Objects on Raspberry Pi?
Is it possible to use Vertex Array Objects on Raspberry Pi?
Can I load it as extension?

diego.martinez
- 1,051
- 2
- 11
- 25
1
vote
1 answer
Memory error when calling gl.GenVertexArrays
I've been using Go's go-gl package for quite a while now. Everything was working 100% until I did some refactoring and now I'm getting the stranges error:
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation…

FanManPro
- 1,076
- 1
- 13
- 31
1
vote
1 answer
Cannot Read Values Passed to Vertex Shader
I am trying to wrap my head around the various types of GLSL shaders in OpenGL.
At the moment I am struggling with a 2d layered-tile implementation. For some reason the int values that get passed into my shader are always 0 (or more likely, null).
I…

RIanGillis
- 619
- 1
- 6
- 15
1
vote
2 answers
Get old style OpenGL code work in GLSL
I am trying to draw this pattern in OpenGL :
To get this, I created the pattern like :
vector< vector > datas;
float Intensitytemp=0;
float xPos=0, yPos=0, angleInRadians=0;
for (float theta = 0.0f; theta < 4096; theta += 1.f)
{
…

Muhammet Ali Asan
- 1,486
- 22
- 39
1
vote
2 answers
Binding multiple buffer object with a single vertex array object is not working
I'm trying to understand the mapping between OpenGL vertex buffer binding points and vertex array indices. I have a 2D rectangle and a 2D triangle
const GLfloat rect[] = {
-0.5f, 0.5f,
0.5f, 0.5f,
0.5f, -0.5f,
-0.5f,…

Samik
- 575
- 2
- 8
- 19
1
vote
1 answer
Issue with glGenVertexArrays and glGenVertexBuffers when drawing several cubes
I have written a small program that is supposed to display several cubes with OpenGL 4.3. I use SDL 2.0 to create a context but I don't think my problem comes from there.
I have a class Cube that has several attributes, including a GLuint m_vao for…

Sunreef
- 4,452
- 21
- 33
1
vote
4 answers
Process of setting up a VAO in OpenGL
Can I get a more overall/general description of this?
I've been trying to research these things all week, but I only come into super technical explanations or examples.
Could somebody explain the overall process or goal of these VAO's? Maybe…

user83676
- 339
- 1
- 9
- 15
1
vote
1 answer
Call to glBindVertexArray(vao): what does it do if 'vao' is already bound, and how to design shape classes accordingly?
I am trying out OpenGL again and I'm wondering how to design the classes that are rendered later on. Right now, there's is only one type of shapes, and so I created a class Shape with a static VAO member that glGenVertexArrays(1, &vao) is called on…

InvisiblePanda
- 1,589
- 2
- 16
- 39
1
vote
1 answer
Haskell opengl attrib is not active
I am trying to render some data from a vertex buffer object. However with little using glutil and raw.
When the program runs it is stuck in a infinite loop and I get the errors that you see down below.
vertex shader
#version 150 core
in vec4…

JoelWaterworth
- 123
- 5
1
vote
1 answer
OpenGL ES Vertex Array Object and strange artifacts
I am rendering a scene that has to get rebuilt whenever there is an orientation change in order to fill the screen appropriately. The scene renders a few vertex array objects of regular colored quads and an array of textured vertex array objects. …

dragonflyesque
- 485
- 5
- 11
0
votes
1 answer
Moderngl: Render VAO with multiple shaders
I'm doing some stuff with 2D opengl rendering.
Is there a way to render a vertex array object but have the data be passed through multiple shaders? For example, a shader that applies a normal map to the texture, and then a shader that blurs the…

DaNubCoding
- 320
- 2
- 11
0
votes
1 answer
Draw multiple buffers with the same vertex layout
I have multiple objects, each one of them has its own index buffer, vertex buffer, some have a different shader or texture, and all of them have the same vertex format (x, y, z, u, v, nx, ny, nz). I don't want to batch my objects together, but…

Dave F.
- 145
- 6