<div dir="ltr"><div>OffScreen does not require EGL or Mesa.  You should be able to do offscreen with any opengl implementation. <br></div><div><br></div><div>When folks mention offscreen, sometimes they mean "rendering without an xserver" or "rendering on a system without opengl 3.2"  for those cases you can use EGL or Mesa or OSMesa depending on the issue. </div><div><br></div><div>In terms of putting it all into one there is some OpenGL initiative to support this (I forget the name, gl virtual dispatch maybe) which could handle it I think. Failing that you can do the test at runtime and then dynamically load osmesa/mesa etc as needed. Some folks do that. I agree having it built in and automatically selected would be nice. Not sure how difficult it is though.<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 24, 2018 at 2:59 PM Prabhu Ramachandran <<a href="mailto:prabhu@aero.iitb.ac.in">prabhu@aero.iitb.ac.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="m_6734181455518655402moz-cite-prefix">On 11/23/18 10:01 AM, Ken Martin wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>In vtk master I think the answer for all of those is to
          call OffScreenRenderingOn() prior to the first render.  Or
          after the first render to call</div>
        <div><br>
        </div>
        <div>ShowWindow(false)</div>
        <div>UseOffScreenBuffers(true)</div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>I see that you've centralized some of the code recently but you
      still need to enable EGL or Mesa at build time, and that can still
      be a bit tricky, right? <br>
    </p>
    <p> Would it at all be possible to support one VTK build that has
      all the possible options available?  i.e. EGL, OSMesa, and the
      normal backend?  Or is that simply impossible to do on all
      platforms?  Would it make sense to bundle OSMesa with VTK?  At
      least on Linux this would make many things very convenient.</p>
    <p>Regards,</p>
    <p>Prabhu<br>
    </p>
  </div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>101 East Weaver Street<br>Carrboro, North Carolina<br>
27510 USA<br><br><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></div></div></div>