Questions tagged [vertex-buffer]

A Vertex Buffer is an object that enables transmitting a collection of vertices to a graphics device for non-immediate or streaming rendering.

A Vertex Buffer is an object that enables transmitting a collection of vertices to a graphics device for non-immediate ot streaming rendering.

Examples are OpenGL's Vertex Buffer Object and Microsoft.XNA VertexBuffer class.

329 questions
0
votes
1 answer

how do I batch multiple quads into one giant buffer

I am trying to batch multiple sprites into one large buffer but I am running into some technical difficulties. I think I am not setting up my vbo sizes correctly but let's see. This currently renders only 1 colored quad, although I would like to…
user1610950
  • 1,837
  • 5
  • 33
  • 49
0
votes
0 answers

Vertex array buffers for a windowing system

I want to add a very basic "windowing system" in my game, mainly to display stuff like: minimap, stats, dialogs, etc. I'm currently working in C# using OpenTK and I'm using VBOs and VAOs to store all my models. If I were to use a VAO for my…
Philippe Paré
  • 4,279
  • 5
  • 36
  • 56
0
votes
1 answer

Directx-11 Two vertex buffers and two input slots

I have a problem with setting two separate vertex buffers (and input slots). One buffer must contain vertices, the second buffer - color data. I have found this problem here: Direct3D multiple vertex buffers, non interleaved elements So i followed…
Michael L.
  • 11
  • 2
0
votes
1 answer

OPENGL: Square Class Using VBO

So, I am trying to make a basic "Drawable" class that handles a lot of the drawing for me in the background and I want to use modern OpenGL (no begin and end statements). I keep just getting a blank screen when I run draw(). I have run the debugger…
guitar80
  • 716
  • 6
  • 19
0
votes
0 answers

DirectX Adding Multiple Meshes to a Single Vertex Buffer

I'm fairly new to DirectX. I have what I think should be a pretty simple question, but I can't seem to find an answer to it anywhere. Basically, I'd like to know how to add vertices from multiple meshes to a single vertex buffer. This would only…
Camander
  • 147
  • 1
  • 10
0
votes
1 answer

Is it possible to have a SoA Vertex Buffer in DirectX 11?

Hi! I'm wondering if it is possible to structure a Vertex Buffer in a SoA approach like this { x1, x2, x3 . . . xn, y1, y2, y3 . . . yn, z1, z2, z3 . . . zn } instead of the traditional AoS approach { x1, y1, z1, x2, y2, z2, x3, y3, z3 . . . xn, yn,…
SvinSimpe
  • 850
  • 1
  • 12
  • 28
0
votes
0 answers

what's different between two code in directx11?

i want to display a box by directx11, and when i try two code which i think both is same occur different result. what's different these two code?? code start from this phrase. std::vector vertices; HRESULT…
신승빈
  • 1
  • 2
0
votes
1 answer

Error when creating vertex buffer DirectX11

I'm trying to create a vertex buffer and I can't figure out what I'm doing wrong. The particle struture looks like this: struct ParticleVertex12 { float x; float y; float z; }; And here's my code for creating a buffer: ID3D11Buffer*…
SvinSimpe
  • 850
  • 1
  • 12
  • 28
0
votes
1 answer

Dynamic Constantbuffer or Dynamic Vertex Buffer in c++ and DX11

I have a question realted to meemory usage by using Dynamic ConstantBuffer vs Constant Buffer updated frequentlky(Using Defualt usagetype) vs Dynamic Vertex Buffer I always Defined Constnat buffer usage as defualt and updated the changes in…
user3797103
  • 39
  • 1
  • 10
0
votes
2 answers

How to select a vertex or triangle of a mesh in modern OpenGl (3.3 above)?

I am working on a project that I need to select two vertices of a mesh and calculate the shortest path between them. I am using GL_ARRAY_BUFFER and GL_ELEMENT_ARRAY_BUFFER for binding the OpenGL buffers and draw them by glDrawElements. Finding the…
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

Drawing Meshes with Transformation

Say there are many different meshes with transformations that changes more or less each frame, what would in general be the faster of these drawing methods: For each frame fill a big vertex buffer with the transformed vertices of the mesh…
Jens Åkerblom
  • 898
  • 8
  • 19
0
votes
1 answer

OpenGL ES : Understanding Vertex Buffer Objects

I am working on an Android project a bit like Minecraft. I am finding this a great way to learn about OpenGL Performance. I have moved over to a vertex buffer object which has given me huge performance gains but now I am seeing the down sides. I am…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
0 answers

Android : OpenGL ES 2.0 Vertex Buffer Object weird issue?? One method is twice as quick

So, my code works fine, all is good except one thing. I have 2 methods that setup the same VBO. one is a simple loop that builds the VBO, the seconds does the same thing but the VBO is built from object properties. Both use the same render call…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
1 answer

How to translate vertex buffer coordinates in 2D engine

I am trying to (using a 2D Directx9 engine library) rotate/translate a set of points in a vertex buffer. I understand how this would be done in a 3D system - i.e using the vertex shader stage of the rendering pipeline with transformation…
unknownSPY
  • 706
  • 4
  • 15
  • 27