Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Covering clipped opening in geometry with surface

Hybrid View

  1. #1
    Newbie Newbie
    Join Date
    Apr 2013
    Posts
    3

    Covering clipped opening in geometry with surface

    Hello

    I am rendering a geometry using a geometry shader and VBO. I have to clip the geomtry using two clipping planes.
    This clipping exposes the hollow parts of the geometry. So I want to cover the opening with a surface.
    I googled and tried the stencil buffer and could do it. But he performance is very very poor as I have to render the geometry trice and the geometry is large.
    Also I many times have multiple clipping planes. Can any one suggest me another way to do so?

    Regards
    Aditya.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    You could look at a transform feedback buffer to collect the vertices so you don't have to keep calling the geometry shader.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •