Describe the bug, what's wrong, and what you expected.
When rendering two separate volumes that overlap a scene, the "last" volume added always occludes the first. This is visible in this volume rendering example of a CT scan of the whole body showing a mask of the heart: the heart is always rendered in front of the scan.
https://docs.pyvista.org/examples/02-plot/volume_rendering.html#volume-with-segmentation-mask
A solution seems to be to use vtkMultiVolume:
https://discourse.vtk.org/t/volume-rendering-incorrect-depth-occlusion-between-two-intersecting-spheres-in-vtk-9-1-0/16177
Steps to reproduce the bug.
System Information
Dataset Information
No response
Screenshots
No response
Describe the bug, what's wrong, and what you expected.
When rendering two separate volumes that overlap a scene, the "last" volume added always occludes the first. This is visible in this volume rendering example of a CT scan of the whole body showing a mask of the heart: the heart is always rendered in front of the scan.
https://docs.pyvista.org/examples/02-plot/volume_rendering.html#volume-with-segmentation-mask
A solution seems to be to use
vtkMultiVolume:https://discourse.vtk.org/t/volume-rendering-incorrect-depth-occlusion-between-two-intersecting-spheres-in-vtk-9-1-0/16177
Steps to reproduce the bug.
System Information
Dataset Information
No response
Screenshots
No response