View in #ohif on Slack
@Veljo_Lasn: Hi!
We’re trying to rebase our projects to use v3.9.1 as a base instead of the 3.8.x beta version we were using before. While we’ve managed to sort out most of the necessary changes, we’re struggling with changing blend modes - trying to explicitly send blend mode to 3
(average intensity blend as per KitwareJS) by calling setBlendMode
on a volume viewport results in a gray image for the entire viewport.
Changing to other blend modes (eg. 1
or 2
for MIP and MinIP, respectively) works as intended.
I was able to reproduce the issue in the currently live demo version by navigating here and executing services.cornerstoneViewportService.renderingEngine.getViewport('mpr-axial').setBlendMode(3)
.
Is this a new bug or are we doing something wrong?
@Alireza_Sedghi: Hmmm i wonder why it doesn’t happen for other examples
is it data dependent?
@Veljo_Lasn: I’ll check with some of our datasets, will take a minute
Seems fairly consistent right now as long as volume viewports are used, the only variance being in the color the block gets rendered as
Examples:
https://viewer.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5&hangingprotocolId=mpr
https://viewer.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.5099.8010.217836670708542506360829799868&hangingprotocolId=mpr
services.cornerstoneViewportService.getViewportIds().map(id => services.cornerstoneViewportService.getCornerstoneViewport(id)).forEach(vp => vp.setBlendMode(3))
fwiw they seem to start out in blendMode 0
(composite)
@Alireza_Sedghi: Can you open an issue for us please
@Veljo_Lasn: Will do
https://github.com/OHIF/Viewers/issues/4567