<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 6:15 PM, Mike Guttman <span dir="ltr"><<a href="mailto:mguttman@yahoo.com" target="_blank">mguttman@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px;background-color:rgb(255,255,255)"><div><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px;background-color:rgb(255,255,255)"><div><div>BAM!  That was it.<div><br clear="none"></div><div>I added a default vtkExternalLight and turned on lights in the GL world and it works fine now.</div><div><br clear="none"></div><div>Perhaps in 6.2 it created a default light.</div><div><div><br clear="none"></div><div><div>In initializeGL(), set up default light:</div><div dir="ltr"><font face="Courier New, courier, monaco, monospace, sans-serif">  vtkNew<vtkExternalLight> light;<br>  renderer->AddExternalLight(light.GetPointer());<br></font><br></div></div><div><div>Then, to turn on the lighting:</div><div dir="ltr"><font face="Courier New, courier, monaco, monospace, sans-serif">  glEnable(GL_LIGHTING);<br>  glEnable(GL_LIGHT0);<br></font></div><div dir="ltr"><br></div><div dir="ltr">And turn it off:<br></div><div dir="ltr"><font face="Courier New, courier, monaco, monospace, sans-serif">  glDisable(GL_LIGHTING);<br></font><br clear="none"></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>Yup, you will need that since in the ExternalRender we do this: </div><div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">light</span><span style="color:rgb(0,0,0)">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(!</span><span style="color:rgb(0,0,0)">status</span><span style="color:rgb(0,0,0)">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">This</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">case</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">when</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">we</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">have</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">VTK</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">light</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">scene</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">but</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">no</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">external</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">light</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">corresponding</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">that</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">index</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">context.</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">In</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">this</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">case,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">we</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">remove</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">VTK</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">light</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">as</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">well.</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">light</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">SwitchOff</span><span style="color:rgb(0,0,0)">();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">RemoveLight</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">light</span><span style="color:rgb(0,0,0)">);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">No</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">need</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">go</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">forward</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">continue</span><span style="color:rgb(0,0,0)">;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span><span style="color:rgb(0,0,0)">}</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">Thanks,</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">Aashish</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px;background-color:rgb(255,255,255)"><div><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px;background-color:rgb(255,255,255)"><div><div><div><div><div dir="ltr"></div></div></div><div>Thank you!!</div><span class=""><font color="#888888"><div><br clear="none"></div><div>-Mike</div></font></span><div><div class="h5"><div><br clear="none"></div><div><br clear="none"><br clear="none"></div><div><div><div><br clear="none"><div style="direction:ltr"><blockquote type="cite"><div>On Mar 10, 2016, at 1:36 PM, Aashish Chaudhary <<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>> wrote:</div><br clear="none"><div><div dir="ltr">Hi Mike, <div><br clear="none"></div><div>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><br clear="none"></div><div>- aashish</div></div><div><br clear="none"><div>On Thu, Mar 10, 2016 at 1:31 PM, Ken Martin <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>></span> wrote:<br clear="none"><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">What does it look like in 7.0 when you set your opacity to 1.0 instead of 0.7?</div><div><br clear="none"><div><div><div>On Thu, Mar 10, 2016 at 1:17 PM, mguttman via vtkusers <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br clear="none"></div></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>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" href="http://vtk.1045678.n5.nabble.com/attachment/5737114/1/vtk6.2-opengl1.jpg" target="_blank">http://vtk.1045678.n5.nabble.com/attachment/5737114/1/vtk6.2-opengl1.jpg</a>
<a rel="nofollow" shape="rect" href="http://vtk.1045678.n5.nabble.com/attachment/5737114/0/vtk6.3-opengl2-externwidget.jpg" target="_blank">http://vtk.1045678.n5.nabble.com/attachment/5737114/0/vtk6.3-opengl2-externwidget.jpg</a>


        
        
        
<br clear="none"><hr align="left" width="300">
View this message in context: <a rel="nofollow" shape="rect" href="http://vtk.1045678.n5.nabble.com/translucent-trouble-with-external-OpenGL-render-window-tp5737114p5737157.html" target="_blank">Re: translucent trouble with external OpenGL render window</a><br clear="none">
Sent from the <a rel="nofollow" shape="rect" href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" target="_blank">VTK - Users mailing list archive</a> at Nabble.com.<br clear="none"><br clear="none"></div></div>_______________________________________________<br clear="none">
Powered by <a rel="nofollow" shape="rect" href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">
<br clear="none">
Search the list archives at: <a rel="nofollow" shape="rect" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">
<br clear="none"></blockquote></div><span><font color="#888888"><br clear="none"><br clear="all"></font></span><div><br clear="none"></div>-- <br clear="none"><div>Ken Martin PhD<div>Chairman & CFO<br clear="none">Kitware Inc.<br clear="none">28 Corporate Drive<br clear="none">Clifton Park NY 12065<br clear="none"><a rel="nofollow" shape="rect">518 371 3971</a><div><br clear="none"></div><div><span 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 clear="none">_______________________________________________<br clear="none">
Powered by <a rel="nofollow" shape="rect" href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">
<br clear="none">
Search the list archives at: <a rel="nofollow" shape="rect" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br clear="none">| Technical Leader         <br clear="none">| Kitware Inc.            <br clear="none"></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a rel="nofollow" shape="rect" href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">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></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div></div>