Thanks for the feedback, this is great news that the issue with the right eye is solved.
From your report, I identify the following issues:
-
Small spacing required to remove white fog
The problem here is probably the default value of the vtkVolumeProperty::ScalarOpacityUnitDistance parameter being too big. Can you try callingvolumeProperty->SetScalarOpacityUnitDistance(0.001);
? -
The bounding box is cut
This could definitely be related to 1. or to the wrong camera clipping range. Does callingrenderer->ResetCameraClippingRange()
help? -
Volume is wrongly cut by the camera near plane
I confirm this is an issue. I have experienced this in the past but unfortunately I don’t have a fix for it yet.
The problem is again related to the camera clipping range. The GPU volume mapper should add a clipping plane just in front of the camera near plane, in order to “close” the hole that appears in your first screenshot (see here).
I suspect that the plane is wrongly placed because the physical scale or something is not taken into account.