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

NEWBIE: Drawing an OpenGL ES shape using an ordered vertex array

I'm new to OpenGL ES, but quite experienced with Objective-C and iOS development. I've so far had no problem drawing and coloring shapes using vertex buffer objects, by defining an array of vertices and a corresponding array of indicies, with the…
Sam Clewlow
  • 4,293
  • 26
  • 36
0
votes
1 answer

glMultiDrawElements: Values to pass to "indices" parameter (GLvoid**)

I had to convert some code (which deals with building a VBO of data for the outlines of 2D shapes, i.e. they are not just triangle meshes, they can be an arbitrary length polygon outline) from using primitive restart to using glMultiDrawElements. I…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
0
votes
1 answer

OpenGL Batching: Why does my draw call exceed array buffer bounds?

I trying to implement some relatively simple 2D sprite batching in OpenGL ES 2.0 using vertex buffer objects. However, my geometry is not drawing correctly and some error I can't seem to locate is causing the GL ES analyzer in Instruments to…
Tim R.
  • 1,570
  • 2
  • 15
  • 33
0
votes
1 answer

DirectX - Creating buffer with vertices array as argument

today I started working with DirectX(D3D9), everything went fine until I created a Static-mesh class. This class contains methods for generating the buffer, drawing and releasing the buffer. The problem is in the buffer generation function. If I…
zeluisping
  • 213
  • 7
  • 17
0
votes
1 answer

How to draw a lines in opengl android

I've to draw squre using a lines, which will look like as following url. http://www.thinkingwriting.qmul.ac.uk/wishees/tutorials/square.gif Could you please tell me how to draw it in android using opengls GL_LINES or GL_LINES_STRIP
Vishwanath Deshmukh
  • 619
  • 1
  • 10
  • 32
0
votes
1 answer

Can four (4) single VertexBuffers be associated to each fields of a Vertex Attribute register?

In Stage3D / AGAL, is it possible to point for individual VertexBuffers to the same va0 in such a way so that: Each VertexBuffer data can be independently changed (would assume this is great performance in some situations, yes?). Each VertexBuffer…
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
-1
votes
1 answer

the Direct3D VertexBuffer Lock() and Unlock() function implemented by different D3DPOOL

the IDirect3DVertexBuffer9 has that methods STDMETHOD(Lock)(THIS_ UINT OffsetToLock,UINT SizeToLock,void** ppbData,DWORD Flags) PURE STDMETHOD(Unlock)(THIS) PURE I don't know the internal implementation of these functions. I do expect next. The…
-1
votes
1 answer

Three.JS r97 Issue GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 2

I'm posting this issue as a last resort. I have read ALL similar topics from the site. Here is the problem: I'm using an older version of Three.JS (r97) and updating to latest is not an option. I'm working on a voxel generator which receives as…
Simonobi
  • 11
  • 4
-1
votes
1 answer

Nvidia old driver, glDrawArrays Exception Access Violation

Our application crashes on old Nvidia drivers.. Debug code is here Looking around, here they say it is often due to an incorrect vertex attribute setup This is how I setup my vbo and vao: /** * Init Vbo/vao. */ …
elect
  • 6,765
  • 10
  • 53
  • 119
-1
votes
2 answers

Android OpenGL ES 2: Introduction to VBOs

Can someone offer a tutorial for using vertex buffer objects (VBOs) in Android? I am working on a 2D HUD which is drawn using OpenGL ES 2 on Android.
ChrisX
  • 334
  • 1
  • 5
  • 20
-1
votes
1 answer

OpenGL C++ order for using a vertex buffer and a texture buffer

I'm having issues loading a texture onto my triangle strips. I'm following Anton Gerdelan's tutorial, and after failing with my main program, I went back to the basics and just tried to make a plain square and put his texture on it (the skull and…
Shotoku
  • 13
  • 4
-1
votes
1 answer

Dynamic drawing in openGL ES

I have a VBO, which i init in the following manner: - (void)setupVBOs { GLuint vertexBuffer; glGenBuffers(1, &vertexBuffer); glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer); glBufferData(GL_ARRAY_BUFFER, sizeof(Vertices), Vertices,…
Itzik984
  • 15,968
  • 28
  • 69
  • 107
-1
votes
1 answer

Rendering Array of Vertex Buffers OenGL ES2

I'm trying to render an array of VBOs but the results are not right. I am saving them into an array when I draw them the first time using the GLPaint (OpenGLES v2) setup. Here is the sample project I have if you want to help me out.…
The Way
  • 594
  • 5
  • 15
-2
votes
1 answer

OpenGl crashes when adding vertices

Whenever I add vertices to my vertex array, my application crashes. Here is the code: const GLKVector3 Vertices[] =…
the_critic
  • 12,720
  • 19
  • 67
  • 115
1 2 3
21
22