A vertex is a single point in a 3D object, used for simple model creation or advanced animation systems.
Questions tagged [vertex]
756 questions
0
votes
1 answer
Diectx11 Pointing to vertex buffer from another function/ Trying to use multiple textures
Edit/ Update: Put in my most recent code, and asking a new question about texturing if you still have time to help me.
Original problem: I need to have the vertex buffer in its own function, I'm trying to make it with variables for vertices so I can…

Cyberus
- 3
- 3
0
votes
1 answer
Vector subscript out of range when trying to load Obj files in DirectX 11
I am getting a vector subscript out of range when I try to load Obj files that doesnt have normals or texture coordinates. If I load an obj file that has normals and texture coordinates, then everything works fine. So I am just asking how can I…

user1849989
- 147
- 2
- 2
- 10
0
votes
1 answer
How to generate igraph with known vertex connections and edge weight?
I have already derived vertex connections of the graph. It is a matrix with 3 columns. Column 1 contains vertex i, column 2 contains all its adjacent vertexes, column 3 contains the edge weight, so the data are already processed into something like…

user3381299
- 177
- 1
- 7
0
votes
2 answers
How to deal with a floating point in an object in Java?
I wrote a program for class, The problem I believe is when I'm testing the other class.
Here are links to ideone.com I pasted from.
https://ideone.com/UB7x87 -
https://ideone.com/watbZq - tester
import static java.lang.Math.sqrt;
public class…

Frightlin
- 161
- 1
- 2
- 14
0
votes
1 answer
OpenGl: which is the best solution?
So, my question that what function shoud I use, what is the fastest, or which is the most prevalent solution.
The solution alternatives:
-the vertex array
-polygon by polygon
-or another alternative
An object has triangles, quads and polygons which…

3Ducker
- 346
- 1
- 9
0
votes
1 answer
JGRAPHX: How to change the style of a group of vertices
In my project, when I do a grouping of vertices, by default is adding a dotted shape in my edge.
I wish I could add a picture on this ledge where the User can interact.
For example:
not expanded:
expanded:

albsilva
- 121
- 6
0
votes
1 answer
OpenGL Per Pixel Coloring with GLSL Shaders
Is it possible using a GLSL shader to calculate the color of vertices per pixel instead of per vertex? Because it looks a bit like per vertex lighting(kinda ugly).
For example
What I have:
What it should look like:

user3075425
- 332
- 1
- 6
- 23
0
votes
0 answers
DirectX How can I clone a cube?
I have defined a cube as follows:
void cube(void){
struct CUSTOMVERTEX vertices[] =
{
{ D3DXVECTOR3(-0.5000f, -0.5000f, 0.5000f), //pos of first vertex
D3DXVECTOR3( 0.0000f, 0.0000f, 1.0000f), //normal of first vertex
…

user3252278
- 11
- 2
0
votes
1 answer
BGL : get vertex descriptor with data
I want to get the vertex descriptor with the composant of the vertex, like this :
struct WayPoint{
std::pair pos; // with this composant
};
the adjency list :
typedef boost::adjacency_list<
boost::listS,
…

thegrandwaazoo
- 301
- 2
- 15
0
votes
1 answer
Prepare vertex data for dashed circle
Actually I have in my project function which generate vertex data for drawing ring with specified minimum radius and maximum radius. In edge case (minimum radius equal 0) it is circle with solid fill. To draw my data I'm using GL_TRIANGLE_STRIP.
Now…

Gie
- 1,907
- 2
- 24
- 49
0
votes
0 answers
GLSL Per Pixel Point Lighting Issue
I want to use a point light calculated in GLSL. I works fine, but if I calculate it per pixel it still looks the same as the Vertex based calculation.
My Vertex Code:
uniform vec3 LightPos;
varying vec2 UVCoord;
varying vec3 Normal;
varying vec3…

user3075425
- 332
- 1
- 6
- 23
0
votes
0 answers
OpenGL 3.3, vertex attributes not working corretly on an AMD card
I was trying to use the following vertex format:
attribute 0, GL_UNSIGNED_SHORT, size 1, offset 0, stride 8;
attribute 1, GL_UNSIGNED_SHORT, size 1, offset 2, stride 8;
attribute 2, GL_UNSIGNED_BYTE, size 2, offset 4, stride 8,…
0
votes
1 answer
Store texture for drag-control
again openGL) I need to make drag-control for textures and don't know how to store this values. i have a struct with point, image for texture, but i need a texture to change their position, so i need to change glVertex2f on mousePressed method, as i…

gronzzz
- 617
- 6
- 15
0
votes
1 answer
Gathering column names from data frame into a list in R
so I have a working data frame right now, but I would like to study the origins of the subjects of the data frame. Here is some of the code I used to create the data frame:
df <- as.data.frame(t(test)) #This is so the row names are products
…

James
- 39
- 8
0
votes
1 answer
Choosing vertices by edge weight
I have a network with two types of edges, one with edge$weight=1 and the other edge$weight=2 (to define different relationships e.g. marriage vs. kinship). I want to choose the neighbors of nodes that are linked by edge$weight=2. Then, after getting…