Questions tagged [vertex-attributes]
73 questions
0
votes
0 answers
Unsure why 3x3 matrix as a vertex attribute in GLSL is not working
I am trying to make a simple 2D rectangle renderer in OpenGL. I'm storing transform of each rectangle as a 3x3 matrix inside a buffer object, and passing into my vertex shader as a vertex attribute. The problem is that nothing is being displayed,…

Shuppin
- 1
0
votes
0 answers
How to adjust node node attributes (color, sizing) in a bipartite network using R/igraph
I am interested in conducting a network analysis using data I have on national energy projects. In particular, I would like to construct a bipartite network, where one type of nodes include individual companies (for example "national utility 1") and…
0
votes
1 answer
How to use TigerGraph GSQL to associate data from one Vertex to another Vertex?
I am a beginner and trying to make several Vertex shown on the TigerGraph Insights Map Widget.
The Map widget displays vertex attributes as latitude and longitude, and I have shown the Location Vertex on the Map Widget successfully.
But the other…

Michael
- 1
0
votes
1 answer
What happens when glDraw*Instanced() is called with primcount greater than how many times a vertex attribute can get updated?
In my opengl program (opengl 3.3 core profile) i have an array with N float elements in it. I pass the array to a VBO and specify it as an array of vertex attributes at index 0. Here data is the array:
glBufferData(GL_ARRAY_BUFFER, sizeof(data),…

qqpilla
- 5
- 3
0
votes
1 answer
pyTigerGraph upsertVertexDataFrame attributes won't accept operator tuple
attributes = { 'id' : 'id', 'volume' : ('volume', '+') }
upsertVertexDataFrame(df=df, vertexType=type, attributes=attributes)
Traceback
row 1269 of pyTigerGraph.py in upsertVertexDataFrame() (else {target: json_up[-1][source])
row 1269 of same in…
0
votes
2 answers
Edge and vertex attributes not mapping properly when constructing networkDynamic object
My aim is to make a dynamic network visualization using the ndtv and networkDynamic packages in R. I constuct the networkDynamic object using edge spells and vertex spells as described in section 7.3 here. The data frames also contain temporal edge…

soran hajo dahl
- 1
- 1
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…

Sébastien Bémelmans
- 869
- 2
- 8
- 17
0
votes
1 answer
Why does a 'sequential' arrangement of vertex attribute data lead to crash?
I have an OpenGL application with shaders that can render objects with texture.
When i create simple rectangle with 'interleaved' attributes like this:
GLuint createRectInterleaved(float fW, float fH) {
GLuint vao;
GLuint rect_buffer;
…

user1479670
- 1,145
- 3
- 10
- 22
0
votes
1 answer
different vertex shapes for each vertex of decomposed graph
I have a very large bipartite network model that I created from 5 million lines of a dataset. I decompose my network model because I can not draw a graph of this size. Now all I need is to plot the decompose graphics one by one. There is no problem…

Ayse Kubra
- 3
- 4
0
votes
1 answer
OpenGL Vertex Attributes, position works but texcoord doesn't?
Vertex shader:
#version 130
in vec2 position;
in vec2 texcoord;
out vec3 Color;
out vec2 Texcoord;
void main() {
Texcoord = texcoord;
gl_Position = vec4(position, 0, 1);
}
Fragment shader:
#version 130
in vec2 Texcoord;
uniform…

Corey Ogburn
- 24,072
- 31
- 113
- 188
0
votes
1 answer
Various vertex format and vbo
I use a rendering loop as follow;
Orphan the data and map the buffer.
Record the command and write the generated vertex in the buffer.
Unmap the buffer.
Iterate over the commands that can change states, bind textures or draw.
At the moment I use a…

Regular Guy
- 81
- 1
- 2
0
votes
1 answer
optional vertexbufferobjects in directx11
I have some models (geometries) which have some vertexinformation. For example position, normal, color, texcoord each of this information has its own vertexbuffer. But some of these models have texture coordinates some not...
To manage these…

Thomas
- 2,093
- 3
- 21
- 40
0
votes
2 answers
How to have multiple storage layouts in one Vertex Array Object?
When I say storage layout, I mean what I define with glVertexAttribPointer. Is this state saved in the currently bound VAO or the buffer I bound to GL_ARRAY_BUFFER?

mskr
- 375
- 5
- 14
0
votes
1 answer
ERGMs on a network with twelve edge types
I have a rather complicated network. The network has 91 nodes and 3453 edges. There are twelve edge types. To build the network, I created 12 separate ego networks, using the edge attributes as individual nodes, then deleted the edge attribute…

Sez
- 1
- 2
0
votes
1 answer
OpenGL - Can't get shader to display vertex colors
So I finally set up opengl window properly and got triangles to show up using vaos, vbos and glDrawElements() etc.
Here is the what i have
But now I have new problem - can't get shaders to work. I don't quite understand them yet. I want fragment…

Splashman
- 3
- 1