Questions tagged [vertexdata]
13 questions
18
votes
2 answers
OpenGL vertex buffer confusion
Would someone care to explain the difference to be between a VertexBuffer, a VertexArray, a VertexBufferObject, and a VertexArrayObject? I'm not even sure if these are all terms for different things, but I've seen all of them appear in the OpenGL…

Hannesh
- 7,256
- 7
- 46
- 80
12
votes
2 answers
What is a good code structure for api-independent vertex processing?
Currently working on a 3D media engine using C# and I have come across a little conundrum. I have my rending loop figured out, I got a great plug-in architecture and content management system and even a material pipeline all planned out. Then engine…

zackery.fix
- 1,786
- 2
- 11
- 20
7
votes
2 answers
From dataframe to vertex/edge array
I have the dataframe
test <- structure(list(
y2002 = c("freshman","freshman","freshman","sophomore","sophomore","senior"),
y2003 = c("freshman","junior","junior","sophomore","sophomore","senior"),
y2004 =…

dmvianna
- 15,088
- 18
- 77
- 106
4
votes
1 answer
OpenGL buffers - Stride vs Tightly packed
What are the pros and cons for using strided vertex buffers vs tighly packed buffers for each attribute? What I mean is for instance:
Stride: xyzrgb xyzrgb xyzrgb
Tight: xyzxyzxyz rgbrgbrgb
At first glance it might look like you easily can change…

bofjas
- 1,186
- 7
- 19
3
votes
2 answers
A question about GL_VERTEX_ARRAY
This is just out of mere interest, but is there a limit to the amount of vertecies GL_VERTEX_ARRAY will 'hold' and render through something like drawArrays()? Or could I theoretically pass through a few million vertexes and still be able to call…

MPainter
- 79
- 1
- 1
- 7
2
votes
1 answer
How does one add vertices to a mesh object in OpenGL?
I am new to OpenGL and I have been using The Red Book, and the Super Bible. In the SB, I have gotten to the section about using objects loaded from files. So far, I don't think I have a problem understanding what is going on and how to do it, but…

Buggus Mageevers
- 585
- 5
- 14
2
votes
1 answer
What's the preferred vertex data format for OpenGL ES on iPhone OS?
In the book "Mobile 3D Graphics with OpenGL ES and M3G" the authors say that choosing the correct vertex data format will have huge impact on performance. They recommend GL_SHORT for most vertex data. Does this also apply for iPhone OS?

Thanks
- 40,109
- 71
- 208
- 322
1
vote
1 answer
How does DirectX read in vertices?
So I've went through some tutorials and resources such as the DirectX Documentation / Reference itself and either I missed something or I really can't find an answer to my question.
The question is as stated in the title: How does DirectX read in…

Kiruse
- 1,703
- 1
- 12
- 23
1
vote
0 answers
Is there a way to get generic vertex attributes into OpenGL Shader builder on the Mac?
I'm looking for a way to develop shaders for my game engine on the Mac. I've come across the OpenGL Shader Builder app, which seemed really awesome apart from one thing. I couldn't figure out a way to use generic vertex attributes with the…

James Bedford
- 28,702
- 8
- 57
- 64
1
vote
0 answers
Can Geometry vertex data be shared across three.js Ribbons?
I have a large set of vertices generated by interpolation of heart contours extracted from cardiac MRI slices which form a generally cylindrical shape. In the current (C++) visualization, the vertex data is held in a single array and each lateral…

Paul C
- 11
- 2
1
vote
2 answers
glVertexAttributePointer scope?
I'm currently programming an OpenGL ES 2.0 application on both iOS and Android platforms.
In this application I render multiple meshes that all use VBOs. In the process of optimizing the rendering, I realized that the meshes I render share two…

F.L.
- 559
- 4
- 11
0
votes
1 answer
Not able to get output with glDrawElements() & glMultiDrawElements()
I'm in the process of building a graphics app where the user can specify vertices by clicking on a canvas and then the vertices are used to draw polygons.
The app supports line, triangle and polygon modes. Drawing a line and triangle is done by…
0
votes
1 answer
assign a (numeric real) value to vertex in network graph
I wanted to assign or associate each node in the network plot with some real value (say some score) in R.
Which need to be updated in iterations.
Finally to plot the network graph with size of vertex according to its latest value (score).
Which…

N D Thokare
- 1,703
- 6
- 35
- 57