Color map with alpha values disables interaction events
See original GitHub issueIn the recent example called slice-plane, the code works as expected.
However, if you set a color map with alpha values, it doesn’t work anymore.
In my case, I created a color map with hundreds of opaque (alpha 1.0) rgb colors and only one transparent (alpha 0.0) color. Then I built a LUT with that color map. Setting this color map disables interaction events, even if pickable(True)
is set.
I tried first setting a LUT with slice._mapper.SetLookupTable(lut)
and then with vedo’s cmap slice.cmap(color_map, alpha=alpha_map)
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Use alpha channels, masks, and mattes in After Effects
Learn about alpha channels that contain transparency information, track mattes, traveling mattes, and feathering masks in After Effects.
Read more >Albedo Color and Transparency - Unity - Manual
The alpha value of the Albedo colour controls the transparency level for the material. This only has an effect if the Rendering Mode...
Read more >opacity - CSS: Cascading Style Sheets - MDN Web Docs
To change the opacity of a background only, use the background property with a color value that allows for an alpha channel. For...
Read more >Visualization: GeoChart | Charts - Google Developers
A geochart is a map of a country, a continent, or a region with areas ... The region mode colors whole regions, such...
Read more >Alpha Channel | 3ds Max 2021 - Autodesk Knowledge Network
Each channel has a particular intensity or value at each pixel. The intensity of each channel determines the color of the pixel.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great fix for VTK 9, thank you! I feared that ForceOpaqueOn would also force black to opaque but it keeps transparency as desired. I suppose we can close this because there’s a way to fix the regression.
I confirm it works with vtk8, py37 and latest vedo (pip install -U git+https://github.com/marcomusy/vedo.git).