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

Unity: skinned mesh vertexbuffer output slightly different than correct results

It’s like this hip is stuck in place, with in the pictures(being at different times in the animation since I can’t upload a gif) the red wireframe is the drawing of the raw output triangles and everything else being default unity, aka the correct…
Pjbomb2
  • 21
  • 3
0
votes
1 answer

OpenGL texture issue on plane drawn using glDrawArrays()

I'm trying to apply a texture to a plane made up of 6 vertexes drawn using glDrawArrays() The first triangle drawn seems to be drawn correctly but the texture for the second triangle doesn't seem to align correctly and seems squished. I had the same…
0
votes
2 answers

Unable to display VBO in OpenGL

I have a VBO and an IBO in OpenGL, but am unable to draw them properly. Could you please let me know what I could have forgotten in the frame display function ? - struct Point3D is a struct with 3 floats inside (x,y,z). - nbVertex is the amount of…
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
0
votes
1 answer

Draw multiple buffers with the same vertex layout

I have multiple objects, each one of them has its own index buffer, vertex buffer, some have a different shader or texture, and all of them have the same vertex format (x, y, z, u, v, nx, ny, nz). I don't want to batch my objects together, but…
Dave F.
  • 145
  • 6
0
votes
1 answer

Ho do you convert an OpenGL project from older glVertexAttribPointer methods to newer glVertexAttribBinding methods?

I have an OpenGL project that has previously used OpenGL 3.0-based methods for drawing arrays and I'm trying to convert it to use newer methods (at least available as of OpenGL 4.3). However, so far I have not been able to make it work. The piece…
FTLPhysicsGuy
  • 1,035
  • 1
  • 11
  • 23
0
votes
1 answer

Using separate vertex buffer and texture coord buffer and multiple indices to draw tris DirectX11

So I saw these posts DX10+ multiple vertex buffers, single index buffer and Using Multiple Vertex Buffers In DX10/DX11 and vague understood Why Directx11 doesn't support multiple index buffers in IASetIndexBuffer When rendering indexed tris, I was…
yosmo78
  • 489
  • 4
  • 13
0
votes
1 answer

Vertex Buffer Abstraction in OpenGl

I have been trying to write some classes to abstract OpenGl. So far I have written a VertexArray class that uses template functions which are working fine so far. However I have encountered problems with my VertexBuffer class that I have not been…
randCoder
  • 11
  • 3
0
votes
1 answer

How do I use two Vertex Buffers?

I have two buffers I created like this: GLuint vao; GLuint vbo[2]; glGenVertexArrays(1, &vao); glBindVertexArray(vao); glGenBuffers(2, vbo); // 1 glBindBuffer(GL_ARRAY_BUFFER, vbo[0]); glBufferData(GL_ARRAY_BUFFER,…
leech
  • 367
  • 1
  • 4
  • 16
0
votes
1 answer

Using multiple VBO in a VAO

I try to use 2 VBO inside a VAO and I end up with a crash (far beyond my app). The idea is to make a first VBO (and optionnally an IBO) to stucture the geometry. This worked well, until I get the idea to add a second VBO for the model matrix as a…
0
votes
0 answers

OponGL 4.1 Is it possible to bind the some vertex data and use both for a vertex array and for a uniform buffer for a shader program?

Using OpenGL 4.1, I am trying to figure out if it is possible to bind a set of vertices as a vertex array and then use that same vertex data as a uniform buffer object for a shader program (or visa versa) without sending the data to the GPU…
Iron Attorney
  • 1,003
  • 1
  • 9
  • 22
0
votes
0 answers

Drawing a plane with vertex buffer object

I'm trying to draw a square plane of 10 x 10 using the VBO on OpenGL. So I have a function getPlaneCoords that calculate the vertices and the indexes however the program just ends up crashing when I run it. fragment shader: #version 330 core out…
GigaHiga
  • 39
  • 1
  • 7
0
votes
1 answer

When drawing multiple objects, when do you create a new vertex array object?

I'm trying to create a game with WebGL. I currently have three textures, one with letters for the font, a sprite sheet for the character, and a tilemap for the world. So I have a few large textures and I need to draw a small part of them multiple…
user1801359
  • 422
  • 1
  • 4
  • 14
0
votes
1 answer

OpenGL Draw Multiple Vertex Arrays

I want to draw multiple vertex arrays. This is the initialization: unsigned int va1; unsigned int vb1; void init_va1() { glGenVertexArrays(1, &va1); glBindVertexArray(va1); glGenBuffers(1, &vb1); glBindBuffer(GL_ARRAY_BUFFER, vb1); …
Ababwa
  • 131
  • 1
  • 8
0
votes
0 answers

Ways of drawing vertex ranges in Direct3D

Suppose I have a one big shader program and want only specific ranges of vertices/triangles rendered. What are some performant ways of doing this? Which one looks most promising? I came up with 3 methods, are there some more? Batching draw calls…
thehorseisbrown
  • 390
  • 2
  • 14
0
votes
1 answer

What is the minimum guaranteed Shader Storage block size?

I can't seem to find it if it exists. I've run into a problem with uniform buffers where the gl spec gives a minimum size of only 1024 locations. Is there a set minumum to the number of locations i can reference in a shader for an SSBO? For…