Skip to content

Modelisation5ETI/TP4_GeometryShader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Introduction to Geometry shader programming


CMake Build instructions


  • Out-of-source build :
git clone [email protected]:Modelisation5ETI/TP4_GeometryShader.git && \
mkdir TP4_GeometryShader-build && cd TP4_GeometryShader-build  && \
cmake ../TP4_GeometryShader  && \
make -j

  • QtCreator :
git clone [email protected]:Modelisation5ETI/TP4_GeometryShader.git  && \
mkdir TP4_GeometryShader-build && cd TP4_GeometryShader-build  && \
qtcreator ../TP4_GeometryShader

Then configure project using QtCreator API :

  • Set the build directory to TP4_GeometryShader-build/
  • Run CMake and build project

Implementation


  • Debug Normal

DebugNormal

./_DebugNormal

The geometry shader outputs a line for each vertex normal.

Use arrows UP/DOWN to increase/decrease the normals size.

  • Culling

culling

./_Culling

Implement culling using geometry shader.

Use arrow UP or DOWN to change the culling point position around the mesh.

  • Splitting

GravityCenter

Normal

Dilate

shrink

./_Splitting

Process different transformation using normals. Vertex and triangles are modified by the geometry shader.

Use arrows UP/DOWN to modify the alpha parameter in order to increase the transform effect.

Use 0,1, or 2 to process different transforms :

  • 0 : Translate vertices towards the triangle center.
  • 1 : Translate triangle along their normal.
  • 2 : Erode/Dilate the mesh.

About

Introduction to Geometry Shader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published