I’ve been running into an issue with using the vtkSmartVolumeMapper to visualize datasets that exist in very small ranges. What happens is the opacity changes are very dramatic. If I change the opacity from 100% opaque to 95% opaque, it basically looks invisible.
I’ve encountered a similar issue with ray casting before, and I resolved it by changing the sample distance to something that works better across datasets of different sizes, so I figured that would be a good place to start here as well. Setting the sample distance for the vtkSmartVolumeMapper seems to have no effect whatsoever, though.
My code looks something like this:
vtkSmartVolumeMapper *mapper = vtkSmartVoluemMapper::New();
Does this look right? Am I missing something here? No matter what I set the sample distance to, the rendered image always looks exactly the same.