Questions tagged [vertex-buffer]
The vertex-buffer tag has no usage guidance.
69
questions
4
votes
3answers
1k views
Using same buffer for vertex and index data?
Is it possible to use the same buffer for both GL_ARRAY_BUFFER and GL_ELEMENT_ARRAY_BUFFER?
I load both vertex data and index ...
2
votes
1answer
2k views
Draw call optimization for multiple meshes in DirectX11
I have a large scene in a B3D model, which includes about 120 meshes as in the following pictures:
large B3D scene http://s22.postimg.org/d1h75hr0v/Untitled.png
Each mesh contain a vertex buffer ...
1
vote
1answer
4k views
gl_VertexID values when calling glDrawElements
I am struggling a bit to understand the values that gl_VertexID primitive contains when the vertex shader is executed.
I have the standard modern rendering ...
0
votes
1answer
1k views
Providing texture coordinates and using indexed drawing at the same time
Please consider the following vertex structure
struct vertex {
vec3 posL, normalL;
};
Using this vertex layout, we can provide the vertex data in an ...
0
votes
1answer
417 views
Loading Wavefront Data into VAO and Render It
I have successfully loaded a triangulated Wavefront (.obj) into 6 vectors, the first 3 vectors contain the locations for vertices, UV coords, and normals. The last three have the indices stored for ...
1
vote
1answer
840 views
How to use LWJGL Vertex Buffer Objects?
I have been learning how to make a game with LWJGL for a while now by following YouTube tutorials online but I've recently been having a problem understanding Vertex Buffer Objects. I've looked at ...
0
votes
2answers
525 views
How to draw non-triangulated mesh?
I am working with DirectX (C#/C++).
I am wondering is it possible to do not triangulate meshes and what the difference between cases (in loading and rendering code)? If so, how to do this? I know <...
0
votes
1answer
78 views
How to create a vertex buffer that provides this pattern?
I have a series of vertices that I want to layout with the following configuration, but I haven't been able to find out how to do this with the square and X pattern. Most of the time I have generally ...
2
votes
2answers
2k views
Using Appendbuffers in unity for terrain generation
Like many others I figured I would try and make the most of the monster processing power of the GPU but I'm having trouble getting the basics in place.
CPU code:
...
1
vote
1answer
567 views
Reuse VertexBuffer or new VertexBuffer object?
I'm trying to render bitmap fonts in directX10 at the moment, and I want to do this as efficiently as possible. I'm having a hard time getting a start on my design because of this question though.
So ...
4
votes
3answers
2k views
How can I render from a buffer that exists and was created on on the GPU?
I'm looking for a unity API or function call to allow me to do the following ...
I wrote some really complex functions that are compute shaders. These compute shaders manage a huge compute buffer ...
7
votes
2answers
6k views
Vertex buffers - interleaved or separate? [closed]
Interleaved - all vertex data (position, normal, texcoord...) kept in 1 vertex buffer, separate - each vertex attribute is kept in a separate vertex buffer (1 for positions, 1 for normals...).
I know ...
3
votes
2answers
167 views
Multiple ( V- / I- ) Buffers, is it sane?
Currently I am developing an RTS game using XNA ( / ANX.Framework ).
There is one thing bothers me. I am not sure in what way or how to organise Buffers.
Should I use a new Vertexbuffer for any object ...
3
votes
1answer
541 views
How do I use unpackHalf2x16?
I'm trying to use (un)packHalf2x16, without success so far. I'm drawing with:
...
3
votes
2answers
186 views
Are buffers in OpenGL associated with GLSL programs?
I have two different shader programs in my OpenGL code.
1- renders simple font using freetype
2- simple shader which draw primitive shapes.
I sent both of them some data using buffers, I understood ...
0
votes
1answer
346 views
Optimization with VBOs [closed]
I am currently working on a cube engine and am experiencing some issues with CPU optimization.
I store all my quad VBO data inside a Block (at x,y,z of a chunk) class, which is stored inside an array ...
2
votes
1answer
542 views
Does interleaving in VBOs speed up performance when using VAOs
You usually get a speed up when you use interleaved VBOs instead of using multiple VBOs. Is this also valid when using VAOs?
Because it's much more convenient to have a VBO for the positions, and one ...
1
vote
3answers
4k views
One index buffer with multiple vertex buffers?
I noticed that there's IASetVertexBuffers() to set multiple vertex buffers at once but there's only IASetIndexBuffer() to set ...
3
votes
1answer
2k views
Can I change vertex buffer's size?
Maybe it's a stupid question but I actually don't know - is it possible to change vertex buffer's size after it's been already created (with CreateBuffer())? If so, ...