Questions tagged [vertex-array-object]

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.

70 questions
0
votes
2 answers

How can I properly manage data in modern OpenGL while considering performance?

In modern OpenGL (3.x+), you create buffer objects which contain vertex attributes, such as positions, colors, normals, texture coordinatess, & indices. These buffers are then assigned to a corresponding vertex array object (VAO) which essentially…
0
votes
1 answer

unable to render with array buffers in Java with LWJGL

I'm attempting to learn how to program in OpenGL the modern way, using vertex array/vertex buffer objects. I'm using the tutorials on the LWJGL wiki right now, and even if I copy & paste the tutorial code, I get a window with the background colour…
Eric Dubé
  • 472
  • 1
  • 4
  • 12
0
votes
0 answers

reduced vertex buffer with indexed triangles

In my OpenGL program have a huge vertex buffer with data (normals,position,texcoords) for 2048x2048 points. In each frame i reduce my indexed buffer with a LOD algorithm and bind GL_ELEMENT_ARRAY_BUFFER again. I wonder if it makes sense to…
Meldryt
  • 75
  • 1
  • 10
0
votes
1 answer

Problems with Vertex Arrays

i'm trying to learn how to handle VBOs (VertexBufferObjects), but i can't get further than the Vertex Arrays. I followed some basic tutorials on this topic, each teaching a different way, making it hard for me to understand and implement. Problem:…
Matze
  • 533
  • 7
  • 16
0
votes
1 answer

Passing a Vertex Array of any number of values to GLSL Vertex Shader

I need a way to pass an array to the Vertex Shader that contains multiple values for each vertex. I have this: One array of 3d points One array of 3d normals for each point One array of faces (all triangles) One array of ALL the neighborhood…
fern17
  • 467
  • 6
  • 20
0
votes
1 answer

JOGL, simple example with shaders, VAO and index array

I am trying to port a simple C++ example in Java (JOGL). But it doesn't work and it must be something stupid, but I cannot see it.. public class OverlapNoDepth implements GLEventListener { private int imageWidth = 800; private int imageHeight =…
elect
  • 6,765
  • 10
  • 53
  • 119
-1
votes
2 answers

GL_POLYGONS does not work how do i get my function to work

I have been experimenting with modern OpenGL and I am trying to make draw functions to automate drawing basic shapes I have done quads successfully but I can't get circles to work my code is good because when you change the drawing mode to GL_POINTS…
Farouk
  • 261
  • 1
  • 10
-1
votes
1 answer

glGenVertexArrays Not creating unique VAO when in Main loop but works otherwise

I'm currently working on a small editor for a game engine I have been writing. I've set up a file menu with Qt 5.6 that has an option to add a model which creates a new model and adds it to the rendering engine manager. On Mac OSX 10.11 (with OpenGL…
Bennet Leff
  • 376
  • 1
  • 4
  • 18
-1
votes
1 answer

Nvidia old driver, glDrawArrays Exception Access Violation

Our application crashes on old Nvidia drivers.. Debug code is here Looking around, here they say it is often due to an incorrect vertex attribute setup This is how I setup my vbo and vao: /** * Init Vbo/vao. */ …
elect
  • 6,765
  • 10
  • 53
  • 119
-2
votes
1 answer

Error when calling GL30.glGenVertexArrays();

i am trying to learn usinf opengl and lwjgl with java and i have amde a program and am trying to render some mesh but the class handling the Vaos and Vbos is faulty.After doing some research , i have learnt that this may be cause because of the…
1 2 3 4
5