MultiInstancingAlgebraicShape - This example shows SoMultipleInstance with algebraic shapes.
DESCRIPTION:
MultiInstancingAlgebraicShapes displays a scene containing a set of 50x50x50 SoAlgebraicShapes representing spheres having different radius linked by cylinders. The instances are disposed following a regular geometrical pattern in space, inside a cube. The examples shows how to customize the colors of the spheres by writing custom GPU shaders and how to link them the the existing shaders pipeline to integrate with OIV shadows and transparency shaders.
Commands on user interface, three sliders available:
radius | Radius of SoAlgebraicSphere. |
min | Minimum value used in the color map to assign color to shperes. |
max | Maximum value used in the color map to assign color to shperes. |
EXAMPLES
SEE ALSO
SoMultipleInstance SoInstanceParameter SoAlgebraicShape SoAlgebraicSphere SoAlgebraicCylinder SoColorMap
SCREENSHOT:
FILES:
-
Inventor/Features/MultiInstancing/AlgebraicShapes/main.cxx
-
Inventor/Features/MultiInstancing/AlgebraicShapes/BufferObjectMapper.h
-
Inventor/Features/MultiInstancing/AlgebraicShapes/Instancing.iv
-
Inventor/Features/MultiInstancing/AlgebraicShapes/shaders/oivASSlotColorCustomColormap_frag.glsl
-
Inventor/Features/MultiInstancing/AlgebraicShapes/shaders/oivASSlotColorCustomColormap_vert.glsl