
Transparency issue with 3D Slice in Gizmo

Hi,
My goal is to create a 3D figure with constant energy maps, similar to this example (a and c): https://www.researchgate.net/publication/368452308/figure/fig2/AS:11431….
Since I had to rotate the data, the resulting slices have edges containing NaN values. I'm trying to make these edges fully transparent so they don't obstruct the background.
I'm using the 3D Slice function in Gizmo, I attempted to set transparency using firstColor and its alpha parameter. I also experimented with different blendMode settings, but I haven't found a solution where the edges correctly blend with the background instead of blocking it.
Does anyone know the correct approach to achieve smooth transparency in this case?
Thanks!
The example in the URL that you provided does not appear to use transparency in (a) and (c). Transparency is obvious in (b).
If it is possible I suggest that you send an experiment containing your graph (and data) to support@wavemetrics.com so I can help. If you want to work it out on your own I suggest you follow the VolumeSlicerDemo experiment and then add the following steps:
1. To simulate NaN values I am changing the data displayed in the slice2 object by executing the command:
2. Select from Gizmo Menu->Enable Transparency Blend
3. Edit the color preferences for Slice2 by setting both upper and lower values to fully transparent. You can accomplish this also using the commands:
HTH,
AG
March 3, 2025 at 10:50 am - Permalink
Thank you for your response. You are right that (a) and (c) in the example do not use transparency. My goal is to create an analogous figure, but with transparent regions.
I followed your instructions and attached an image showing the result. Unfortunately, the NaN values appear as white rather than transparent. I have already tried this approach and experimented with different settings, but I couldn't achieve the desired effect.
If I am not missing something obvious, I can send you my experiment. Let me know how you’d like to proceed.
March 4, 2025 at 12:48 am - Permalink
Thanks for the image but I really need to check your experiment. Did you enable transparency blend?
March 4, 2025 at 09:04 am - Permalink