Notifications
Clear all
[Closed] Get Viewport DIB with Alpha
Jan 18, 2017 7:59 pm
According to the max docs, gw.getViewportDIB now has the optional parameter “captureAlpha”…but that parameter is currently broken and no proper alpha is actually captured (in max2017 with Nitrous viewports, at least).
Is there another way to get a viewport DIB with alpha that doesn’t involve nasty things like capturing multiple DIBs and keying out their backgrounds or whatever? I’m assuming no, but maybe someone has a .NET trick up their sleeve?
2 Replies
Jan 18, 2017 7:59 pm
For reference, this is what I see when using:
display (viewport.getviewportdib capturealpha:true)
in 3dsmax2017 (Nitrous viewport, ‘Standard’ with ‘Default Shading’)
RGB:
Alpha:
It’s like the alpha is inverted to only show viewport lines.
Jan 18, 2017 7:59 pm
I found a workaround: by setting the viewport background to environment color, getViewportDIB returns the proper alpha.