Demonstates how to use the
SoBufferedShape node in order to render large surfaces using buffer objects to store the actual data.
The SoBufferedShape node uses SoBufferObject which contains the actual data of the geometry. Using this buffers it calls fast OpenGL rendering functions. In order to avoid BoundingBox computation which can have a huge cost specialy with SoGLBufferObject in animated environment the demo uses a SoBBox with a user defined bouding box.
For the huge surface rendered in the demo we use an elevation map and an aerial map from the USGS. The elevation map is used to compute the elevation of each vertex and for the color mapping.
FILES:
-
Inventor/examples/Features/BufferObjects/SoBufferedShape/main.cxx
-
Inventor/examples/Features/BufferObjects/SoBufferedShape/geometry.cxx
-
Inventor/examples/Features/BufferObjects/SoBufferedShape/geometry.h
-
Inventor/examples/Features/BufferObjects/SoBufferedShape/data/colormap.png
-
Inventor/examples/Features/BufferObjects/SoBufferedShape/data/gui.iv
-
Inventor/examples/Features/BufferObjects/SoBufferedShape/data/StHelen.png
-
Inventor/examples/Features/BufferObjects/SoBufferedShape/data/StHelenAerial.jpg
SEE ALSO
SoBufferedShape, SoBBox, SoBufferObject
SCREENSHOT: