pieper
(Steve Pieper (Isomics, Inc.))
October 15, 2023, 9:49pm
26
@ME_Rad - in case you missed it, there’s been some progress in fixing the underlying rendering code and adding a module in the sandbox extension that exposes this technique for end users.
See these links some example images and movies including TotalSegmentator labels.
Slicer:slicer-v9.2.20230607-1ff325c54
← pieper:fix-rgba-gpu-vr
opened 10:33PM - 06 Oct 23 UTC
Implements the feature and fixes discussed in this thread:
https://discourse.… slicer.org/t/volume-rendering-colorized-with-segmentation/26689/6
Basically allows RGBA volumes to be shaded according to their alpha component so that something like a CT or microCT can define an rgb value at spatial regions, while getting opacity and gradient information from the alpha channel (e.g. the Hounsfield unit).
Also always uses the 0 channel for defining the lighting parameters. This part is WIP since it may be more appropriate to set the alpha channel lighting parameters in this scenario. Currently, at least in 3D Slicer, only the 0 compnent's lighting parameters are being set, so they are being used here.
OMG! This is a game changer for us.
We just now a way to adjust TF per segment basis somehow… And regular shadows/lights work great, just need the ambient shadows as @lassoan mentioned.
[image]