Questions tagged [vertex-buffer]
The vertex-buffer tag has no summary.
71 questions
3
votes
1
answer
323
views
Is it possible to use a pre-existing texture buffer containing vertex data to initialise a vertex buffer for rendering in OpenGL v4.6?
I'm generating a heightmap in a compute shader in OpenGL v4.6 and storing it to a texture.
Lets say I actually store the full vertex data in that texture instead of just the height, which is a trivial ...
0
votes
0
answers
212
views
How to extend a VBO in OpenGL and keep its data?
I'm making a game with infinite, blocky procedurally generated worlds in python, with PyOpenGL. I figured out that allocating all the VBO space at once causes a lot of lag. To fix this, I am ...
0
votes
1
answer
501
views
"An ID3D12Resource object is referenced by GPU operations in-flight on Command Queue": When Should I Create my Buffers?
When trying to re-create my vertex buffers, my app crashes and I get this error:
D3D12 ERROR: ID3D12Resource2::: CORRUPTION: An ID3D12Resource object (0x000001DDEBA98FC0:'Vertex Buffer Default ...
0
votes
1
answer
250
views
Monogame - When to reuse buffers?
So - how do these work exactly?
Right now I am making a buffer and setting the data every frame for my object, but I heard you can reuse the buffer, too. If the object is not changing in any way ...
0
votes
2
answers
406
views
Cannot Draw a triangle without VAO on MacOS
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 ...
3
votes
1
answer
2k
views
What is the proper strategy to manage vertex buffers?
I have created a large variety of shaders for my game engine for different use cases. The vertex input for the shaders depend on what I want to do with them. For example, if I want to just render the ...
1
vote
1
answer
561
views
How do rendering pipelines improve the performance of updating all the vertices every frame?
Let's say I am implementing a simple game engine, particularly the rendering part. From the high-level view we have some vertices which are copied to the graphics card alongside shader information etc....
0
votes
1
answer
765
views
D3D11 Instancing - Help with sending instance data using two vertex buffers. First, for position and color and Second, for per-instance Matrix Data
So here is the premise:
I have 2 vertex buffers buffers whose data and corresponding definition is as follows:
Vertex 1: This one contains the per instance data
...
0
votes
0
answers
565
views
glDrawArrays: Erasing the buffer between calls?
I have two VBOs, assigned to names 1 and 2. Only 2 is being drawn. However, if I comment out VBO 2, VBO 1 is drawn with no problem. Here's the relevant code.
...
0
votes
1
answer
625
views
OpenGL C++ Drawing particles instanced performance
In my 2D Game Engine I'd like to reduce the amount of draw calls. I used to do a draw call for every particle, which yields worst performance.
I've tried instanced rendering in OpenGL but my ...
1
vote
0
answers
769
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....
0
votes
1
answer
201
views
How to use textures in 2D games in WebGL
I have been trying to figure out how to structure the VBOs in WebGL, and think that keeping them all together in one if at all possible sounds like the best approach. Right now I'm thinking of having ...
-1
votes
1
answer
159
views
The types of buffers typically used in robust WebGL/OpenGL apps
I am trying to get a feel for how to structure WebGL/OpenGL apps and have been looking through sources for the types of buffers they use. I've found these:
uvs
occlusion
noise
bitangents
tangents
...
0
votes
0
answers
239
views
(C++, DirectX 11, UWP) - How do I update the ByteWidth of a VertexBuffer without recreating it?
I want to have one buffer used for all dynamic properties but the amount of vertices in this could vary from just a few for an interface to the whole scene. As such if it's becomes initialized with ...
1
vote
1
answer
5k
views
Unreal 4 - How to access and iterate through the polygons of a mesh?
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 ...