<div dir="ltr">Hi all ... again.<div> I just tested Ken's suggestion of <span style="font-size:12.8px">setting alpha bitplanes to 8 in the default settings for vtkRenderWindow and all tests pass as before. On my Kubuntu setup I get 1673/1673 tests passing.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">With respect to the python test, if I comment out def testWIFRGB(self) in Kubuntu I get an image with a transparent background as expected. In Kubuntu 16.10 I suspect there is some issue with Plasma when in interactive mode as I get a lot of window resets.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">So perhaps this is the way to go at this stage, just change line 62 in vtkRenderWindow.cxx to:</span></div><div><span style="font-size:12.8px">this->AlphaBitPlanes = 8;</span><br></div><div><span style="font-size:12.8px">and maybe add a test.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I suspect that the only a few linux users may notice something if they have inadvertently used vtkWindowToImageFilter.SetInputBufferTypeToRGBA() when they meant to use </span><span style="font-size:12.8px">vtkWindowToImageFilter.SetInputBufferTypeToRGB()</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">What do people think?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If everyone is pressed for time, I could probably do something on Monday as my weekend starts tomorrow. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Regards</span></div><div><span style="font-size:12.8px"> Andrew</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 11, 2016 at 12:06 PM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi All,</div><div><br></div>I had to switch the display manager back to lightdm (in order to log into Ubuntu). Look at what I get when running either Kubuntu or Ubuntu.<div><br></div><div>For both Kubuntu and Ubuntu, for the <span style="white-space:pre-wrap">TestWIFPNGRGBA_*.png files,</span> I would have expected a 1/4 sphere with a transparent background. Instead Kubuntu has a transparent background with a few pixels that are not transparent, whilst Ubuntu has a 1/4 sphere with a non-transparent background.</div><div><br></div><div>I have a GTX980 card and the OpenGL version is 4.5.0 NVIDIA 367.57</div>
<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Nov 11, 2016 at 7:11 AM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>David,</div><div><br></div>What you are seeing in the Mac is what I see in Windows and what I would expect.<div><br></div><div>On Kubuntu 16.10 I get the attached RGBA image - trasnparent with a few scattered pixels.</div><div><br></div><div>if I comment out def testWIFRGB(self): in the code, I get an RGBA with a blue background (I expected a transparent one). In other words it's the same as the RGB image. Interestingly, when I was running Unbuntu I got this image instead of the Kubuntu version.</div><div><br></div><div>Attached is the output from running the program in Kubuntu 16.10.</div><span class="m_-578144038490585975HOEnZb"><font color="#888888"><div><br></div><div>Andrew</div></font></span></div><div class="m_-578144038490585975HOEnZb"><div class="m_-578144038490585975h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 11, 2016 at 1:24 AM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>In the RGBA version the blue background _should_ be invisible. The question in my mind is why doesn't your Linux build not show anything in the foreground? Can you share the png's made by your ubuntu build? </div><div><br></div>On my Mac for example, for both GL1 and GL2, RGB has a blue background, RGBA's is transparent.<div>That is expected. The image contents are the same at every pixel except that the RGBA'a alpha channel has value 255 for foreground and 0 for background pixels.</div><span class="m_-578144038490585975m_-8906041911820956201HOEnZb"><font color="#888888"><div><br></div></font></span></div><div class="gmail_extra"><span class="m_-578144038490585975m_-8906041911820956201HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_-578144038490585975m_-8906041911820956201m_4092870828008727620gmail_signature" data-smartmail="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div>
<br></font></span><div class="gmail_quote"><span>On Wed, Nov 9, 2016 at 5:18 PM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>></span> wrote:<br></span><div><div class="m_-578144038490585975m_-8906041911820956201h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Guys,<div> For me this still appears to be the case. Try running the attached test code.</div><div>In Windows and Linux, TestWIFPNGRGB.png are the same.</div><div>In Windows TestWIFPNGRGBA.png has a transparent background, whilst in KUbuntu no image is produced just a transparent background.</div><div> Are you able to replicate this behaviour?</div><span class="m_-578144038490585975m_-8906041911820956201m_4092870828008727620HOEnZb"><font color="#888888"><div><br></div><div>Andrew</div></font></span></div><div class="gmail_extra"><span><br><div class="gmail_quote">On Wed, Nov 9, 2016 at 10:22 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Andrew, does this still appear to be the case in the 7.1 release branch? If so mind filing a quick issue on gitlab with the 7.1 milestone tag?</div>
</blockquote></div><br><br clear="all"><div><br></div></span><span>-- <br><div class="m_-578144038490585975m_-8906041911820956201m_4092870828008727620m_8210724299094633016gmail_signature" data-smartmail="gmail_signature">______________________________<wbr>_____________<br>Andrew J. P. Maclean<br><br>______________________________<wbr>_____________</div>
</span></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-578144038490585975m_-8906041911820956201gmail_signature" data-smartmail="gmail_signature">______________________________<wbr>_____________<br>Andrew J. P. Maclean<br><br>______________________________<wbr>_____________</div>
</div>
</div></div></blockquote></div></div></div><div><div class="h5"><br><br clear="all"><div><br></div>-- <br><div class="m_-578144038490585975gmail_signature" data-smartmail="gmail_signature">______________________________<wbr>_____________<br>Andrew J. P. Maclean<br><br>______________________________<wbr>_____________</div>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div>