<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yiv5292391993"><div id="yui_3_16_0_1_1457651234738_5046"><div id="yui_3_16_0_1_1457651234738_5045" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv5292391993"><div id="yiv5292391993yui_3_16_0_1_1457651234738_2929">BAM!  That was it.<div id="yiv5292391993yui_3_16_0_1_1457651234738_2949"><br clear="none"></div><div id="yiv5292391993yui_3_16_0_1_1457651234738_2965">I added a default vtkExternalLight and turned on lights in the GL world and it works fine now.</div><div id="yiv5292391993yui_3_16_0_1_1457651234738_2966"><br clear="none"></div><div id="yiv5292391993yui_3_16_0_1_1457651234738_2950">Perhaps in 6.2 it created a default light.</div><div id="yiv5292391993yui_3_16_0_1_1457651234738_2951"><div id="yiv5292391993yui_3_16_0_1_1457651234738_2974"><br clear="none"></div><div id="yiv5292391993yui_3_16_0_1_1457651234738_2972"><div id="yui_3_16_0_1_1457651234738_5494">In initializeGL(), set up default light:</div><div id="yui_3_16_0_1_1457651234738_5373" dir="ltr"><font id="yui_3_16_0_1_1457651234738_5493" face="Courier New, courier, monaco, monospace, sans-serif">  vtkNew<vtkExternalLight> light;<br>  renderer->AddExternalLight(light.GetPointer());<br></font><br></div></div><div id="yiv5292391993yui_3_16_0_1_1457651234738_2973"><div id="yui_3_16_0_1_1457651234738_5548">Then, to turn on the lighting:</div><div dir="ltr" id="yui_3_16_0_1_1457651234738_5547"><font id="yui_3_16_0_1_1457651234738_5981" face="Courier New, courier, monaco, monospace, sans-serif">  glEnable(GL_LIGHTING);<br>  glEnable(GL_LIGHT0);<br></font></div><div id="yui_3_16_0_1_1457651234738_5650" dir="ltr"><br></div><div id="yui_3_16_0_1_1457651234738_5691" dir="ltr">And turn it off:<br></div><div dir="ltr" id="yui_3_16_0_1_1457651234738_5506"><font id="yui_3_16_0_1_1457651234738_5705" face="Courier New, courier, monaco, monospace, sans-serif">  glDisable(GL_LIGHTING);<br></font><br clear="none"></div></div></div><div id="yiv5292391993yui_3_16_0_1_1457651234738_2952">Thank you!!</div><div id="yui_3_16_0_1_1457651234738_5279"><br clear="none"></div><div id="yui_3_16_0_1_1457651234738_5374">-Mike</div><div id="yui_3_16_0_1_1457651234738_5478"><br clear="none"></div><div id="yui_3_16_0_1_1457651234738_5375" class="yiv5292391993qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5292391993yqt6608855205" id="yiv5292391993yqt69896"><div class="yiv5292391993yqt2326090699" id="yiv5292391993yqt11491"><div id="yiv5292391993yui_3_16_0_1_1457651234738_2928"><br clear="none"><div class="yiv5292391993AppleOriginalContents" id="yiv5292391993yui_3_16_0_1_1457651234738_2927" style="direction:ltr;"><blockquote id="yiv5292391993yui_3_16_0_1_1457651234738_2926" type="cite"><div id="yui_3_16_0_1_1457651234738_5378">On Mar 10, 2016, at 1:36 PM, Aashish Chaudhary <aashish.chaudhary@kitware.com> wrote:</div><br class="yiv5292391993Apple-interchange-newline" clear="none"><div id="yiv5292391993yui_3_16_0_1_1457651234738_2925"><div class="yiv5292391993" dir="ltr">Hi Mike, <div class="yiv5292391993"><br class="yiv5292391993" clear="none"></div><div class="yiv5292391993">One of the thing we do in external framework is get rid of default lights. So you would have to add lights to VTK yourself. Sankhesh might have more information on it (cc'd)</div><div class="yiv5292391993"><br class="yiv5292391993" clear="none"></div><div class="yiv5292391993">- aashish</div></div><div class="yiv5292391993gmail_extra" id="yiv5292391993yui_3_16_0_1_1457651234738_2924"><br class="yiv5292391993" clear="none"><div class="yiv5292391993gmail_quote" id="yiv5292391993yui_3_16_0_1_1457651234738_2923">On Thu, Mar 10, 2016 at 1:31 PM, Ken Martin <span class="yiv5292391993" dir="ltr"><<a rel="nofollow" shape="rect" class="yiv5292391993" ymailto="mailto:ken.martin@kitware.com" target="_blank" href="mailto:ken.martin@kitware.com">ken.martin@kitware.com</a>></span> wrote:<br class="yiv5292391993" clear="none"><blockquote class="yiv5292391993gmail_quote" id="yiv5292391993yui_3_16_0_1_1457651234738_2922" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv5292391993" dir="ltr">What does it look like in 7.0 when you set your opacity to 1.0 instead of 0.7?</div><div class="yiv5292391993gmail_extra" id="yiv5292391993yui_3_16_0_1_1457651234738_2921"><br class="yiv5292391993" clear="none"><div class="yiv5292391993gmail_quote" id="yiv5292391993yui_3_16_0_1_1457651234738_2920"><div class="yiv5292391993"><div class="yiv5292391993h5">On Thu, Mar 10, 2016 at 1:17 PM, mguttman via vtkusers <span class="yiv5292391993" dir="ltr"><<a rel="nofollow" shape="rect" class="yiv5292391993" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>></span> wrote:<br class="yiv5292391993" clear="none"></div></div><blockquote class="yiv5292391993gmail_quote" id="yiv5292391993yui_3_16_0_1_1457651234738_2919" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv5292391993"><div class="yiv5292391993h5">Hi,

Just wanted to attach my nabble presence to this post, since it seemed anonymous on nabble and not visible on markmail.

I really hope there is a migration path for me from 6.2/OpenGL1.  A simple surface rendering of polygon data in an vtkExternalOpenGLRenderWindow became much worse going from 6.2/OpenGL1 to 6.3/OpenGL2 (see the two pictures).

I've spent an embarrassing amount of time on this, when I should be writing, and I'm not sure what to try next.

Many thanks in advance,
Mike

<a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://vtk.1045678.n5.nabble.com/attachment/5737114/1/vtk6.2-opengl1.jpg">http://vtk.1045678.n5.nabble.com/attachment/5737114/1/vtk6.2-opengl1.jpg</a>
<a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://vtk.1045678.n5.nabble.com/attachment/5737114/0/vtk6.3-opengl2-externwidget.jpg">http://vtk.1045678.n5.nabble.com/attachment/5737114/0/vtk6.3-opengl2-externwidget.jpg</a>


        
        
        
<br class="yiv5292391993" clear="none"><hr class="yiv5292391993" align="left" width="300">
View this message in context: <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://vtk.1045678.n5.nabble.com/translucent-trouble-with-external-OpenGL-render-window-tp5737114p5737157.html">Re: translucent trouble with external OpenGL render window</a><br class="yiv5292391993" clear="none">
Sent from the <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br class="yiv5292391993" clear="none"><br class="yiv5292391993" clear="none"></div></div>_______________________________________________<br class="yiv5292391993" clear="none">
Powered by <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" class="yiv5292391993" id="yiv5292391993yui_3_16_0_1_1457651234738_2930" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none">
Search the list archives at: <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none">
Follow this link to subscribe/unsubscribe:<br class="yiv5292391993" clear="none">
<a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none"></blockquote></div><span class="yiv5292391993HOEnZb"><font class="yiv5292391993" color="#888888"><br class="yiv5292391993" clear="none"><br class="yiv5292391993" clear="all"></font></span><div class="yiv5292391993" id="yiv5292391993yui_3_16_0_1_1457651234738_2931"><br class="yiv5292391993" clear="none"></div>-- <br class="yiv5292391993" clear="none"><div id="yui_3_16_0_1_1457651234738_5044" class="yiv5292391993">Ken Martin PhD<div id="yui_3_16_0_1_1457651234738_5043" class="yiv5292391993">Chairman & CFO<br class="yiv5292391993" clear="none">Kitware Inc.<br class="yiv5292391993" clear="none">28 Corporate Drive<br class="yiv5292391993" clear="none">Clifton Park NY 12065<br class="yiv5292391993" clear="none"><a href="" rel="nofollow" shape="rect" class="yiv5292391993">518 371 3971</a><div class="yiv5292391993"><br class="yiv5292391993" clear="none"></div><div class="yiv5292391993"><span class="yiv5292391993" style="font-size:10pt;font-family:Tahoma, sans-serif;">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div>
</div>
<br class="yiv5292391993" clear="none">_______________________________________________<br class="yiv5292391993" clear="none">
Powered by <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none">
Search the list archives at: <a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none">
Follow this link to subscribe/unsubscribe:<br class="yiv5292391993" clear="none">
<a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class="yiv5292391993" clear="none">
<br class="yiv5292391993" clear="none"></blockquote></div><br class="yiv5292391993" clear="none"><br class="yiv5292391993" clear="all"><div class="yiv5292391993"><br class="yiv5292391993" clear="none"></div>-- <br class="yiv5292391993" clear="none"><div class="yiv5292391993gmail_signature"><div class="yiv5292391993" dir="ltr"><font class="yiv5292391993" face="trebuchet ms, sans-serif"><i class="yiv5292391993">| Aashish Chaudhary <br class="yiv5292391993" clear="none">| Technical Leader         <br class="yiv5292391993" clear="none">| Kitware Inc.            <br class="yiv5292391993" clear="none"></i></font><div class="yiv5292391993"><i class="yiv5292391993"><font class="yiv5292391993" face="trebuchet ms, sans-serif">| </font><a rel="nofollow" shape="rect" class="yiv5292391993" target="_blank" href="http://www.kitware.com/company/team/chaudhary.html">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div>
</div></blockquote></div><br clear="none"></div></div></div></div></div></div></div></div></div></body></html>