GPU geometry computation based on parametric functions

VSG extension Demonstates how to use the SoBufferedShape in order to compute the geometry on the GPU each frame based on shader parameters.

The SoBufferedShape node uses SoBufferObject which contains the actual data of the geometry. In this demo the vertices buffer contains fake data and the actual data is computed by the geometry shader on the fly. OpenGL requires a valid vertices buffer even if it is not used.

The SoBBox node is used to provide a bounding box because as long as there is no data OIV cannot compute the bounding box.

Only the shaders parameters are sent to modify the geometry using the DialogViz API.

FILES:

SEE ALSO

SoBufferedShape, SoBBox, SoGpuBufferObject, SoShaderProgram, SoVertexShader, SoFragmentShader, SoGeometryShader

SCREENSHOT:


Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/