Questions tagged [geometry-shader]

Geometry shader should not be mixed up with [vertex-shader], but are shader programs executed after vertex shaders. They take as input a whole primitive like point, line or triangle.

Geometry shaders are the 3rd type of GPU shader programs after and and process whole primitives like points, lines or triangles.

Resources

232 questions
-1
votes
1 answer

THREE.js: RingGeometry and CircleGeometry blurry when rotating the scene

I'm using RingGeometry in my scene, at start the rings are renderer perfectly, but if I rotate the scene, artifacts appears on the rings. I tried CircleGeometry and I have the same result. The circle and the scene has an alpha channel because I need…
-1
votes
2 answers

How to generate geometry to link neighbour nodes in a geometry shader with OpenCL/GL interop?

I am working on a 3D mesh I am storing in an array: each element of the array is a 4D point in homogeneous coordinates (x, y, z, w). I use OpenCL to do some calculations on these data, which later I want to visualise, therefore I set up an OpenCL/GL…
ezor
  • 1
  • 1
-1
votes
1 answer

Geometry shader doesnt work as expected

I have written a geo shader which gets a line (2 vertices) and should add width (length) along the line normal. Without the geo shader everything gets displayed correctly. I have also calculated the formula with pencil and paper (worked). I am…
Sens4
  • 605
  • 1
  • 11
  • 29
-1
votes
1 answer

OpenGL Stencil shadows with geometry shaders

I have forked one OpenSourced project on GitHub and would like to add support for geometry shaders. This is my fragment code for OpenGL what I am using. Those two shaders (Fragment and Vertex shaders) are used for "Per Pixel Lighting" calculation…
ErrorCode
  • 1
  • 2
-1
votes
1 answer

Faulty geometry shaders to visualise normals

Somehing is wrong with visualising my normals. As you can see in this video, the normals are faulty and seem to move. The duck and sphere are loaded .dea files (with assimp) and I hard coded the cube myself. Here are my shaders: Vertex shader:…
Edvin
  • 1,841
  • 4
  • 16
  • 23
-3
votes
1 answer

When I add geometric shader to shaderprogram than object dont render

I code my game with tutoterial by thinmatrix and when I add geometric shaders to water. Than water dont display. This is my ShaderProgram: package shaders; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import…
-3
votes
1 answer

Geometry Shader example code not working from Opengl Superbible

I am reading the OpenGL Superbible 7th edition. It is a great book and all, but when I get to the Geometry Shader part of the book, the program stops working. Some things that happen: Whenever I don't render with the Geometry Shader, all of the…
1 2 3
15
16