Questions tagged [vertex-arrays]
The vertex-arrays tag has no summary.
46 questions
1 vote
1 answer
703 views
What is a efficient way for adding and removing vertices and indices in C++?
So I have this middle-large mesh that is composed from vertices and respective indices. At some point I need to add new ones and remove some. But that brings me into trouble. Because if I have, for ...
2 votes
0 answers
111 views
Tell if two polygons are colliding
I want to make a function like areColliding which takes two polygons as args. I also want to cover cases like and the dreaded because I am trying to create a ...
1 vote
0 answers
768 views
OpenGL VAO buffer rebinding vs binding switching
I'm considering two different approaches to vertex buffer management in my OpenGL game engine. The first one seems to be pretty usual, but I haven't seen the second one being proposed or used anywhere....
1 vote
1 answer
2k views
VAO and VBO connection and granularity with multiple objects
How general should vertex array objects be? I'd like to plan ahead and avoid a major revision down the road. I'm having a hard time wrapping my head around a few (possibly conflicting) pieces of ...
1 vote
0 answers
192 views
SFML 2.4's RectangleShape is running slow when rendered multiple times
I am creating a level for my game and currently, there is a Tile class where I have a black RectangleShape rendering without any weirdness, except when I look at the FPS, its 200. Now, I have a pretty ...
2 votes
1 answer
407 views
What to do with unused vertices?
Imagine yourself a vertex array in OpenGL representing blocks in a platform game. But some vertices may be not used. The environment is dynamic, so there always some vertex may suddenly become ...
0 votes
1 answer
445 views
Streaming to VAO VertexBuffer using OpenGL Direct State Access for Instancing
How do i stream to a vertex buffer using Direct State Access? I want to update my vertex buffer of matrices every frame so i can use it in my Shader. This is how i specify my buffer. I do this once ...
0 votes
1 answer
823 views
In game engine, how to get the vertices buffers of different vertex formats for render from the mesh file properly?
I'm a fresher on engine programming. I have a question of how we can get the vertices buffers of vertex formats from the mesh file. For example, in OBJ file or FBX file, we save the positions, ...