Results 1 to 3 of 3

Thread: What are the applications of Geometry Shader?

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2004
    Location
    Australia/China
    Posts
    22

    What are the applications of Geometry Shader?

    hi guys,
    I have been played with Geometry Shader for a while, and I know I can emit vertices from Geometry Shader. However, I'm not quite sure the typical applications of GS.

    Can someone give me some examples where Geometry Shader gives you lots of benefits?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Inside an xbox
    Posts
    279

    Re: What are the applications of Geometry Shader?

    Basically:

    1) Billboard expansion ( rain, fireworks, fire, explosions, blah blah )
    2) Basic terrain LOD + snow
    3) Patches/subdivision surfaces
    4) Procedural vegetation creation
    5) Decals
    6) Laser beams
    7) Spaceship motor marks
    Shadow volume extrussion
    9) Fur and hair
    10) All that your imagination can create

    However the current GS-capable hardware has three limitations:

    1) The GS speed is not exceptional
    2) The current HW can only emit maximum 1024 primitives per input.
    3) I'm not sure if all the HW supports texture fetching inside the GS. See the http://opengl.org/registry/specs/EXT...ry_shader4.txt

    it says:

    Code :
    Texture Access
     
        Geometry shaders have the ability to do a lookup into a texture map, if
        supported by the GL implementation. The maximum number of texture image
        units available to a geometry shader is
        MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT; a maximum number of zero indicates
        that the GL implementation does not support texture accesses in geometry
        shaders.
     
    so if returns zero then you cannot fetch.
    hope it helps.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2004
    Location
    Australia/China
    Posts
    22

    Re: What are the applications of Geometry Shader?

    Thanks a lot. It really helps

Similar Threads

  1. shader storage buffer objects within geometry shader
    By minidrive in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-14-2014, 08:43 AM
  2. Replies: 5
    Last Post: 06-23-2013, 01:13 AM
  3. Replies: 4
    Last Post: 11-16-2012, 04:20 PM
  4. Geometry Shader
    By Cgor_Cyrosly in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-21-2007, 05:09 AM
  5. Geometry shader with VBO
    By ropel in forum OpenGL: GLSL
    Replies: 4
    Last Post: 03-21-2007, 02:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean