Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Volume depth occlusion #8882

Description

@user27182

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.

Insert code here

System Information

main

Dataset Information

No response

Screenshots

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUh-oh! Something isn't working as expected.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions