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
1
vote
2 answers

Can't get D3DPT_TRIANGLELIST to work

I have a problem when I try to use D3DPT_TRIANGLELIST. The following sample is from a book, so I don't see what the problem can be. VertexData: ColorVertex *v; Triangle->Lock(0,0,(void**)&v,0); v[0] = ColorVertex(-1.0f, 0.0f, 2.0f,…
Araw
  • 2,410
  • 3
  • 29
  • 57
1
vote
1 answer

OpenGL ES 2.0 GLKit Draw a line

I am trying to draw a line with OpenGL ES 2.0 GLKit. When I run the following code and use OpenGL ES Analyzer I get the following errors: "Use of Non-Existent Program" glDrawArrays(GL_LINE_STRIP,0,4) "GL Error: Invalid…
prplehaze
  • 459
  • 4
  • 15
0
votes
1 answer

XNA VertexBuffer for Terrain Editor

I'm working on a personal project that, like many XNA projects, started with a terrain displacement map which is used to generate a collection of vertices which are rendered in a Device.DrawIndexedPrimitives() call. I've updated to a custom…
Rich Hoffman
  • 742
  • 1
  • 7
  • 23
0
votes
3 answers

OpenGL Basic IBO/VBO Not Working

I've been following the tutorial listed here. I want to draw a single triangle using an Index Buffer Object, a Vertex Buffer Object, my own Vertex and Fragment Shader, and my own vertex structure. My problem is that nothing shows up when I draw.…
viperld002
  • 329
  • 4
  • 17
0
votes
1 answer

Directx10, instanced rendering, vertex buffer input

So, I'm trying to do hardware instancing in DirectX10 with a simple shader where the vertex struct takes a position, texture coordinate and normal for the vertices and a model matrix for the instances. Problem is creating the input layout that sends…
Mr Dudeface
  • 111
  • 1
  • 1
  • 7
0
votes
1 answer

Should a new VertexBuffer3D & IndexBuffer3D be created for each Program3D used?

If I have a few Program3D objects (each with it's own Vertex-Shader and Fragment-Shader responsible for it's own rendering task), do I need to instantiate a new VertexBuffer3D and IndexBuffer3D so that they store the data only relevant to the…
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
0
votes
1 answer

I have written a CAD program in JOGL that works great until I put in a glu quadric, then the lighting is off

I wrote CAD software (Protocase Designer) and it was working great. Except on ATI cards where it crashes all the time. On the theory that display lists are deprecated and maybe ATI cards don't fully support them I decided to replace the display…
vextorspace
  • 934
  • 2
  • 10
  • 25
0
votes
1 answer

Direct3D C++ texture mapping

Hey guys can anybody help me with texture mapping in Direct3D C++. I have created a basic game and want to texture the enviroment. I have looked at numerous online tutorials but have had no luck so far I am creating a custom vertex for my drawing…
DK10
  • 168
  • 1
  • 5
  • 19
0
votes
1 answer

MonoTouch / OpenGL ES: Exception when drawing with GL.DrawElements

i try to draw a mesh with Ope When calling GL.DrawElements i got the following exception. Stacktrace: at (wrapper managed-to-native) OpenTK.Graphics.ES20.GL/Core.DrawElements(OpenTK.Graphics.ES20.All,int,OpenTK.Graphics.ES20.All,intptr)
Felix K.
  • 6,201
  • 2
  • 38
  • 71
0
votes
2 answers

WebGPU. How to SET COLOR PER TRIANGLE, but not per vertex, and USE ONLY VERTEX BUFFER

I am trying to set color per triangle. But it is not working. Only setting color per vertex works! This is what I made: Color Per Triangle