Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
Transparent pyramid using custom nodes

VSG extension CustomNodePyramid - This example shows how to use custom nodes with .

DESCRIPTION:

    This example demonstrates how to render a transparent shape - here a pyramid - using the different types of custom nodes. It shows that, to add transparency to a OpenGL custom node, you need to encapsulate the handling of transparency in an Inventor custom node, and do a forward traversal on an OpenGL custom node that will contain the actual draw calls

SCREENSHOT:

FILES:

    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodePyramid.cxx
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeBase.cxx
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeBase.h
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeGLCallback.cxx
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeGLCallback.h
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeOpenGLCore.cxx
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeOpenGLCore.h
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeOpenGLLegacy.cxx
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeOpenGLLegacy.h
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeOIV.cxx
    • Inventor/Features/CustomNode/CustomNodePyramid/CustomNodeOIV.h
    • Inventor/Features/CustomNode/CustomNodePyramid/pyramid.cxx
    • Inventor/Features/CustomNode/CustomNodePyramid/pyramid.iv
    • Inventor/Features/CustomNode/CustomNodePyramid/shaders/CustomNodeCore.frag
    • Inventor/Features/CustomNode/CustomNodePyramid/shaders/CustomNodeCore.vert
    • Inventor/Features/CustomNode/CustomNodePyramid/shaders/CustomNodeLegacy.frag
    • Inventor/Features/CustomNode/CustomNodePyramid/shaders/CustomNodeLegacy.vert