Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
Simple vertex attrib feedback example

VSG extension Demonstates how to use the SimpleVertexAttribFeedback to perform GPU computation and record the result in SoGpuBufferObject objects.

The SoVertexAttribFeedback node allows to record the content of the varyings in a geometry shader into SoGpuBufferObject. In this demo we use a geometry shader to tesselate some triangles by outputing for each triangle a set of three new triangles. Then the generated content is used in a SoBufferedShape and added to the viewer's scene graph.

The node SoVertexAttribFeedback, by default, disables the rasterizer because we want to record the triangles but it is posible to enable it.

FILES:

    • Inventor/Features/BufferObjects/SimpleVertexAttribFeedback/main.cpp

SEE ALSO

SoVertexAttribFeedback SoBufferedShape SoBBox SoGpuBufferObject SoShaderProgram SoVertexShader SoFragmentShader SoGeometryShader

SCREENSHOT: