Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
GPU Data Compose

VolumeViz Demonstrates how to combine multiple volumes using the GPU.

Volume 1 is a medical image (3D head), volume 2 is computed, containing just zeros and ones, in order to create a "mask" volume. The data values of the data volumes are multiplied together, causing some portions of volume 1 to become completely transparent. Defining LIGHTING_AND_PREINTEGRATION in file GPUDataCompose.cxx will apply lighting and pre-integration.

FILES:

    • Medical/Analysis/medicalGPUDataCompose/GPUDataCompose.cxx
    • Medical/Analysis/medicalGPUDataCompose/GPUDataCompose_combine_frag.glsl
    • Medical/Analysis/medicalGPUDataCompose/GPUDataCompose_volume_frag.glsl

SEE ALSO

SoVolumeData SoDataCompositor SoMultiDataSeparator SoVolumeShader

SCREENSHOT: