<div dir="ltr">What if you try to change in vtkXOpenGLRenderWindow.cxx:642 the line <div><div><br></div><div>if(this-&gt;OwnWindow)<br></div><div><br></div></div><div>into</div><div><br></div><div>if (this-&gt;OwnWindow &amp;&amp; !this-&gt;GetOffScreenRendering())</div>


<div><br></div><div style>Julien.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 9:08 AM, Juan Cardelino <span dir="ltr">&lt;<a href="mailto:juan.cardelino@gmail.com" target="_blank">juan.cardelino@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div>              I&#39;ve been using the attached example for many years now to test Offscreen Rendering. It used to work like a charm in every platform. I had 3 different states on this program.</div>


<div><br></div><div>1) Some time ago, it started opening a blank window in mac. After that it also happened in Linux. In windows it still works properly.</div><div><br></div><div>2) I added the following code:</div>
<div><div><br></div><div>    // Graphics Factory</div><div>  vtkGraphicsFactory * graphics_factory</div><div>      = vtkGraphicsFactory::New();</div><div>  graphics_factory-&gt;SetOffScreenOnlyMode( 1);</div><div>  graphics_factory-&gt;SetUseMesaClasses( 1 );</div>


<div> </div><div>  // Imaging Factory</div><div>  vtkImagingFactory * imaging_factory</div><div>      = vtkImagingFactory::New();</div><div>  imaging_factory-&gt;SetUseMesaClasses( 1 ); </div><div><br></div></div><div>
Which made it work on linux but not on mac.</div><div><br></div><div>3) Now even with that code osx/linux still open the blank widonw, and in Windows works properly.</div><div><br></div><div>I tested it with many different vtk configurations, I don&#39;t know what I&#39;m doing wrong. At the moment I&#39;m testing it in VTK 6.0.0 under Linux.</div>


<div><br></div><div>Any hints would be appreciated.</div><div>Thanks.</div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>