Skip to main content

Questions tagged [vertex-arrays]

1 vote
1 answer
705 views

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 ...
Janis Taranda's user avatar
1 vote
1 answer
122 views

I've got a pretty simple tile based 2d top-down map with an array of walls. In order to figure where to cast light and shadows, I've generated an array of vertex coordinates along the walls like so: ...
q11's user avatar
  • 11
2 votes
0 answers
111 views

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 ...
user avatar
0 votes
2 answers
406 views

So I was watching Cherno's Video on Vertex attributes and he was successful in drawing a triangle without a VAO, but in tutorials from learnopengl.com they specifically say they we need a VAO to draw ...
Pikachuxxx's user avatar
1 vote
0 answers
769 views

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....
Jacajack's user avatar
  • 111
1 vote
1 answer
5k views

I'm newbie with Unreal Engine 4. I need to create a function which calculates the volume of a mesh, based on the following example: https://n-e-r-v-o-u-s.com/blog/?p=4415 To achieve that I created ...
Jean-Milost Reymond's user avatar
1 vote
1 answer
2k views

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 ...
Felix's user avatar
  • 123
0 votes
1 answer
260 views

During my developing, I always spend much time to fill up my vertex array by coding every vertex information when I have to create some complex models. It's quite inconvenient. It's will be very ...
tedyage's user avatar
  • 23
1 vote
0 answers
194 views

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 ...
Ameer Ali's user avatar
1 vote
1 answer
112 views

Let's say I have 2 triangles sharing an edge defined by 4 vertices. Though the normals for these 2 triangles are unique for each triangle and are defined per vertex. So say I have 4 vertices, 6 ...
user18490's user avatar
  • 132
2 votes
1 answer
407 views

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 ...
Franz Wexler's user avatar
23 votes
2 answers
23k views

While refreshing my mind on OpenGL ES, I came across glDrawArrays and glDrawElements. I understand how they are used and sort ...
Unheilig's user avatar
  • 525
0 votes
1 answer
446 views

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 ...
simulate's user avatar
  • 145
0 votes
1 answer
469 views

Right now I'm trying to load a heightmap into my LWJGL application. I load it like that into a float[][] array and I can read the height value at a given x and z position in the map: ...
kessler bebe's user avatar
0 votes
1 answer
825 views

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, ...
LLL's user avatar
  • 3

15 30 50 per page