Multivolume rendering

I am testing multiple volume rendering for a visualization. When I turn on the 3rd volume, it doesn’t displayed, and I receive this message

Links failed: ERROR: Implementation limit of 16 active fragment shader samplers (e.g., maximum number of supported image units) exceeded, fragment shader uses 18 samplers
Shader failed to compile

These are very small volumes 178x314x221. Is there any way to mitigate this?

I don’t know for sure, but that sounds like a hardware limit that would be hard to workaround without rewriting the renderer.

1 Like

I just managed to show three sample datasets with Multi-volume rendering:

This computer has a 4090, But based on the message you posted this does not seem to be a hardware problem.

What Slicer version do you use?

Update: I just saw that the “regular” GPU Ray Casting now seems to support multiple volumes (the volumes are not just rendered on top of each other). I am surprised, because I try to follow updates about this, and we even talked about this at the PW in January and I wasn’t aware.

This was on a M3 pro with a recent (within a few days of latest) preview version. I will give it a try with a windows box later.

1 Like