Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoVolumeData and SoTexture2 GPU composition.

VolumeViz Demonstrates how to combine VolumeData and classical texture using the GPU.

Volume 1 is a medical image (3D head), texture is a mask texture. The data values of the data volumes are multiplied together, causing some portions of volume 1 to become completely transparent. The interesting part of the demo is in the .iv file. The demo just load and display the scenegraph.

FILES:

    • VolumeViz/multiData/GPUDataCompose/VolumeTextureCompose.cxx
    • VolumeViz/multiData/GPUDataCompose/VolumeTextureCompose.iv
    • VolumeViz/multiData/GPUDataCompose/customComputeColor_frag.glsl

SEE ALSO

SoVolumeData SoTexture2 SoVolumeShader

SCREENSHOT: