Questions tagged [vertex]

A vertex is a single point in a 3D object, used for simple model creation or advanced animation systems.

756 questions
0
votes
1 answer

Is there a way to create the verts/indices of a cube that can be well represented by line drawing mode as well as render correctly in triangles mode?

Attempting to switch drawing mode to GL_LINE, GL_LINE_STRIP or GL_LINE_LOOP when your cube's vertex data is constructed mainly for use with GL_TRIANGLES presents some interesting results but none that provide a good wireframe representation of the…
Caustic
  • 377
  • 1
  • 2
  • 9
0
votes
1 answer

XNA Hardware Instancing - faces drawn in wrong order around icosphere

I'm trying to implement the InstancedModelSample code into my game, and it's worked perfectly except for one problem - The edges on my icospheres are being drawn between the wrong vertices and it's just drawing a garbled mess. When I used to draw…
0
votes
1 answer

How to bring vertex to the front in JGraphX

I am using JGraphX, and I have a vertex with 3 ports, but I want the vertex to be to the front, for some reason it is not bringing the vertex to the front, what could I be missing? final int PORT_DIAMETER = 20; final int PORT_RADIUS =…
Camilo Guevara
  • 165
  • 1
  • 12
0
votes
1 answer

How can animate textures in a vertex array?

So I have made a tile map class in sfml that uses a vertex array to build all of the tiles in the map. The whole thing just uses one texture for the whole map. How can I update the texture coordinates in the vertex array to make certain quads (like…
0
votes
1 answer

Layout's location algo apply to filtered set of Vertexes

the job of the layout is to place vertexes at given locations. if the layout is iterative, then the layout's job is to iterate through an algo, moving the vertexes with each step, until the final layout configuration is achieved. I have a…
chris fabri
  • 1
  • 1
  • 1
0
votes
3 answers

equivalent to gl_FragCoord in glsl vertex shader

I'm trying to get a screen position of a vertex in pixels inside a vertex shader, I saw some others posts here but I can't find answer that works for me. this is what I've got in my vertex Shader: #version 400 layout (location = 0) in vec3…
user1822451
  • 101
  • 1
  • 5
0
votes
1 answer

Ogre3D - render water with waves by vertex? nurbs?

I have an Ogre3D application and I would like to render a surface that represents the water with waves. I think I am not the only one that has this purpose, so I was looking for an example to follow. I imagine that if I want to create a water…
Simu
  • 11
  • 3
0
votes
1 answer

Create cube using dimensions?

Is there an openGL function for creating a 3D cube using it's dimensions as input parameters? If not what algorithm would i use for generating the cube's vertex array? What would be the easiest way to create a cube that does not require…
kyle k
  • 5,134
  • 10
  • 31
  • 45
0
votes
2 answers

Optimal 3D vertex patterns OpenGL

In processing you can create 3D shapes quite easily by just giving vertex positions in a certain order. Example for a simple square: beginShape();// QUAD would work as…
Patrick Dahlin
  • 286
  • 2
  • 5
  • 19
0
votes
1 answer

LWJGL OpenGL passing a vertex to a shader

If I'm passing an array of floats that contains 3 floats the represent X Y Z of a vertex without the W component and I pass it to the VBO and I tell an input variable in my shader to use the contents of the VBO but this input variable is vec4 type,…
0
votes
1 answer

Custom data structures for directx buffers

Do I need to use the DirectXMath structures (XMFLOAT3, XMFLOAT4, XMMATRIX, XMFLOAT4X4, etc.) when I am setting the data for the vertex and constant buffers for a directx application. I have my own Vector3 and Matrix structures and would prefer to…
pghazanfari
  • 515
  • 2
  • 6
  • 8
0
votes
0 answers

Primitive made with Vertices deformed - C#

Hey im making a game out of primitive objects. To make these objects im using the Vertex Buffer. The problem im having is that when i am rendering a cube it looks perfect... But when i scale it bigger the cube deforms leaving holes and jagged…
0
votes
1 answer

Difficulty with Dijkstra's algorithm

I am new to advanced algorithms, so please bear with me. I am currently trying to get Dijkstra's algorithm to work, and have spend 2 days trying to figure this out. I also read the pseudo-code on Wikipedia and got this far. I want to get the…
user3298441
  • 91
  • 1
  • 4
0
votes
2 answers

OPENGL Terrain from text file

I am trying to create terrain which takes height values from txt file . During my search I realized that generally the terrains are created from bmp files or another kind of picture taking values from pixels. I read height values from file into a 2d…
0
votes
1 answer

Trying to create a circle with VBO's - LWJGL

Im trying to create a circle in LWJGL , using VBO's and VAO , and move it using an offset , but it seems one vertex is stuck in the center of the screen . I can't figure out how to move it to the new location . Any help is appreciated , thanks ! P.S…
Th3 D0ctor
  • 35
  • 5