Questions tagged [tessellation]

This tag refers to questions about increasing the complexity of a data-set through subdivision.

OpenGL/DirectX11

OpenGL and DirectX11 both have programmable tessellation generation on the correct hardware. OpenGL refers to the shaders as 'control' and 'evaluation' shaders, DirectX11 as 'hull' and 'domain' shaders. Commonly used for dynamic level-of-detail. Can be seen in many newer games and tech demos.

GLUTessellator

Tessellation may also refer to the functionality of GLUTesselator, which has functionality for creating concave and self intersecting polygons by splitting a complex face into multiple convex ones. There is a handy resource here.

138 questions
1
vote
1 answer

OpenGL - Draw non planar 3D polygon consisted of a set of points

I have a set of points that form a shape (specifically half a pipe, other similar shapes). I need a way to draw this Cylindrical face. For example: I want to draw this half-pipe, and I have the marked points ordered (drawn as red circles). Having…
user972014
  • 3,296
  • 6
  • 49
  • 89
1
vote
0 answers

Number of tiles is less than the number of points after running voronoi tessellation in R

I have generated a voronoi tessellation for the district of Bankura in West Bengal using the code, India <- getData("GADM", country = "India", level = 2) wb1 <- subset(India, NAME_1 == "West Bengal") bankura <-…
Shalini
  • 11
  • 3
1
vote
1 answer

Unique ids on triangles generated from tessellation shader?

When you create a tessellation shader in HLSL, is there a way to track these new triangles with ids? I have tried using semantics such as SV_PrimitiveID in the geometry shader along with SV_InstanceID in the domain shader but they seem to output the…
1
vote
0 answers

R package for hexagonal lattice tesselation of continental US

Does anyone know of an R package that will generate an optimal hexagonal cell lattice to tessellate the continental US? The package should allow the user-specification of a cell-size and it should return the area of the US that is covered by the…
Benjamin Levy
  • 333
  • 6
  • 19
1
vote
0 answers

tessellation in 3 dimensions with R

I have a set of 3D points (space (x,y) and time t) and I want to construct a quadrature using if possible the Dirichlet tessellation and most important, compute the quadrature weights, meaning the volume of the Dirichlet 3 dimensional 'tiles'. All…
A. Iftimi
  • 11
  • 2
1
vote
1 answer

How to identify the ID of the current vertex during the TES stage?

I am sending a triangle down the pipeline and want to tessellate it into an sierpinski gasket. It feels like this would be so much easier with instancing of the geometry shader, therefore please tell me if the idea of doing it with tessellation…
Kevin Streicher
  • 484
  • 1
  • 8
  • 25
1
vote
0 answers

Directx11 and Tessellation

I am trying to create a mesh which contains more than 1 triangle that I can then tessellate. One triangle works fine but when trying to create another triangle in my mesh I get strange behaviour. This is my vertex list. vertices[0].position =…
Alex L
  • 115
  • 11
1
vote
1 answer

Tesselation result flickering - OpenGL/GLSL

I'm trying to implement a simple tessellation program based on this tutorial. These are my shaders: Vertex: #version 410 core uniform mat4 mvMatrix; uniform mat3 normalMatrix; in vec4 vPosition; in vec3 vNormal; // Input for the tesselation…
pceccon
  • 9,379
  • 26
  • 82
  • 158
1
vote
1 answer

How to access all vertexes within the same patch in Tessellation Control Shader

I want to do LOD in Tessenllation Control Shader. And my method is to calculate the area each patch occupyed on screen coordinate, and set different tessellation level for them. So I need to access all vertices within a patch and I do so…
HgMs
  • 272
  • 2
  • 10
1
vote
1 answer

Sphere tessellation new primitves position

I'm trying to get an LOD working with the tessellation shader. I have a simple sphere which is tessellated with a 5 rings et 5 sectors at the begining. I would like the sphere to increase its details when the camera is approching. But the new…
R00t
  • 186
  • 1
  • 2
  • 14
1
vote
1 answer

Sphere Tessellation wrong coordinates

I'm trying to apply a tessellation on the GPU for a simple Sphere. This tessellation is working perfectly for a simple plan, but it's not working for the sphere. Of course, I know the coordinates mapping aren't the same, I tried many ways to do it.…
R00t
  • 186
  • 1
  • 2
  • 14
1
vote
1 answer

Tessellation shader drawing issues

I am currently trying to add tessellation shaders to my program and I feel as though I'm at my wit's end. I have gone through several tutorials and delved into a lot of the questions here as well. Unfortunately I still do not understand what I am…
1
vote
1 answer

Splitting a primitive triangle into smaller triangles

I am rendering a pipe using WPF with the Helix Toolkit. I realised that the function provided generates triangle primitives that are too large for my use. For example, if the red triangle is my primitive, I want control over (say) the middle part…
John Tan
  • 1,331
  • 1
  • 19
  • 35
1
vote
1 answer

OpenGL tessellation and GLSL for the Tessellation Control Shaders clarification

I'm studying the graphics pipeline and I have some questions about the tessellation phase. My basic reading material is "OpenGL SuperBible Sixth Edition: Comprehensive Tutorial and Reference". Question #1: In the SuperBible I read that the vertex…
AutomEng
  • 425
  • 2
  • 9
  • 19
1
vote
1 answer

gluTessCallback error C2440

I am trying to use the function gluTessCallback but I get C2440 error. I have no idea why. Here is the code: #define callback void(CALLBACK*)() template class Tessellation { private: GLUtesselator *pTess; void CALLBACK…