scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
68 stars 17 forks source link

Adding a second volume seems to duplicate the first one #422

Closed frauzufall closed 1 year ago

frauzufall commented 3 years ago

Starting the VolumeRenderDemo and adding a new volume (using the T1 head) adds a blurry (?!) version of the first volume and slows down my machine drastically.

image

moreApi commented 1 year ago

Not sure if it is a second volume. But there is defnitly something wrong with visibilty. I can only hide all or none of the volumes by setting all volumes to visible. As long as one volume is set to visibible all volumes are visible.

kephale commented 1 year ago

@moreApi that sounds different, this bug is:

Run mesh demo: see the cube volume Add T1 head: another cube is added to the scene and there is no head.

moreApi commented 1 year ago

Then I cant repoduce the bug. For me the head is added but it is hidden by a very small scale and transparent transfer function. But that is expected behavior in my experience.

moreApi commented 1 year ago

I added the head by opening the sample in imageJ and then using "add->volume" in sciview

kephale commented 1 year ago

@moreApi you are very correct. I now understand why the visibility part is the main issue here.

If you delete the cube volume, then you can see the T1 head without doing anything with visibility.

moreApi commented 1 year ago

should be solved by https://github.com/scenerygraphics/scenery/pull/544 once merged

kephale commented 1 year ago

This was closed by updates for scenery 0.9.0. I tested on commit d50e2a8e920ace13b09dd0ed9e4f02646d8dd443

image