<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_7819196588583183802WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">We need to detect insufficient OpenGL capabilities anyway (the current way of Paraview simply crashing when starting through RDP is just embarrassing). It should
 not be too difficult to add RDP connection termination and application restart there.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u></span></p></div></div></blockquote><div><br></div><div>It should be graceful but it wasn't. This topic makes it so that VTK at least can check and fail gracefully when running on RDP.  </div><div><br></div><div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2812">https://gitlab.kitware.com/vtk/vtk/merge_requests/2812</a><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_7819196588583183802WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">After some more web search, it doesn’t seem to be possible to access the regular OpenGL context when an application started through RDP. Applications that need
 maximum compatibility include multiple rendering backends with dynamic switching (such as Qt 5 rendering engine, based on a run-time check at application startup) or static selection (e.g., 3D Studio Max). However, in the long term I would prefer seeing the
 VTK community spending time with developing new features than maintaining a legacy backend.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Andras<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:calibri,sans-serif"> Ken Martin [mailto:<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a><wbr>]
<br>
<b>Sent:</b> Wednesday, May 10, 2017 9:51 AM<br>
<b>To:</b> Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>><br>
<b>Cc:</b> Vladimir Engelgardt <<a href="mailto:v.engelgardt@gmail.com" target="_blank">v.engelgardt@gmail.com</a>>; VTK Developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>><br>
<b>Subject:</b> Re: [vtk-developers] OpenGL backend - 1.1 vs 2.0<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hmmm, maybe something like this<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://social.technet.microsoft.com/Forums/windowsserver/en-US/c8295ef8-3711-4576-9293-2c4965280165/opengl-and-remote-desktop?forum=winserverTS" target="_blank">https://social.technet.<wbr>microsoft.com/Forums/<wbr>windowsserver/en-US/c8295ef8-<wbr>3711-4576-9293-2c4965280165/<wbr>opengl-and-remote-desktop?<wbr>forum=winserverTS</a><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p style="margin-right:0in;margin-bottom:12pt;margin-left:0in;outline:0px">
<span style="font-size:10.5pt;font-family:"segoe ui",sans-serif;color:rgb(42,42,42)">In your batch file make sure you reconnect your session to the physical console before attempting to launch the CAD app.  Here is the command:<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:12pt;margin-left:0in;outline:0px">
<span style="font-size:10.5pt;font-family:"segoe ui",sans-serif;color:rgb(42,42,42)">tscon 1 /dest:console<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:12pt;margin-left:0in;outline:0px">
<span style="font-size:10.5pt;font-family:"segoe ui",sans-serif;color:rgb(42,42,42)">I am thinking your batch file only needs two lines, something like:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"segoe ui",sans-serif;color:rgb(42,42,42)">tscon 1 /dest:console<br>
start "C:\Program Files\SolidWorks Corp\SolidWorks\sldworks.exe"<br>
<br>
</span><u></u><u></u></p>
<p style="margin-right:0in;margin-bottom:12pt;margin-left:0in">
<span style="font-size:10.5pt;font-family:"segoe ui",sans-serif;color:rgb(42,42,42)">The first line will disconnect your remote PC and connect the session to the physical keyboard/video/mouse, then the second line will launch the CAD program (substitute your CAD
 software).  After that you wait several seconds for the software to start and then reconnect to the session from your home PC.<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:12pt;margin-left:0in;outline:0px">
<span style="font-size:10.5pt;font-family:"segoe ui",sans-serif;color:rgb(42,42,42)">You should have the batch file Run as administrator.  I made an assumption above that the current session id is 1.  Your session id may be different--you can use query session at
 a command prompt to find your session id.<u></u><u></u></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, May 10, 2017 at 9:40 AM, Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>> wrote:<u></u><u></u></p>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">VTK's OpenGL2 backend works very well through RDP - including volume rendering, even using a client
 without GPU. The only limitation (an important one) is that you have to start your application before connecting through RDP.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">The only thing to figure out is how to convince applications to start “normally” when connected through
 RDP.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Andras</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:calibri,sans-serif"> vtk-developers [mailto:<a href="mailto:vtk-developers-bounces@vtk.org" target="_blank">vtk-developers-<wbr>bounces@vtk.org</a>]
<b>On Behalf Of </b>Ken Martin<br>
<b>Sent:</b> Wednesday, May 10, 2017 8:51 AM<br>
<b>To:</b> Vladimir Engelgardt <<a href="mailto:v.engelgardt@gmail.com" target="_blank">v.engelgardt@gmail.com</a>><br>
<b>Cc:</b> VTK Developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>><br>
<b>Subject:</b> Re: [vtk-developers] OpenGL backend - 1.1 vs 2.0</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">If you have to support RDP (as opposed to other solutions), and you have to support clients that lack a GPU etc, then you could build your application against Mesa (with OpenSWR
 or llvm as the renderer) and I believe it should work everywhere including RDP.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Ideally at run time we could detect this and pick Mesa/Hardware but I don't think anyone has had time to dig into how difficult that would be.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">From what I could find nvidia only supports hardware RDP on their professional cards. It would certainly be nice if vendors would do what they can to support modern OpenGL more
 broadly in cases like this.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Wed, May 10, 2017 at 6:14 AM, Vladimir Engelgardt <<a href="mailto:v.engelgardt@gmail.com" target="_blank">v.engelgardt@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<p class="MsoNormal" style="margin-bottom:12pt">Hi,<br>
<br>
Problem description: Application uses VTK 7.0 (OpenGL 2 module) for<br>
rendering on Windows platform. But the problem is, that OpenGL 2 has limited<br>
support over Microsoft's Remote Desktop. RDP is a must for our application<br>
(VNC, TeamViewer is not an option). On Win 10 there is an option called 'Use<br>
hardware drivers over RDP' and it works, but for limited set of video<br>
adapters - AMD, Integrated Graphics from Intel and NVIDIA (Tesla, Grid<br>
only).<br>
<br>
Is there any workaround for this problem, i.e. detect GL version at runtime<br>
and use 1.1 or 2.0? If no, we are going to switch for OpenGL 1.1.<br>
<br>
We concern about OpenGL 1.1 support in future versions of VTK. Is it going<br>
to be supported and how long?<br>
<br>
Best Regards,<br>
Vladimir.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/OpenGL-backend-1-1-vs-2-0-tp5743167.html" target="_blank">
http://vtk.1045678.n5.nabble.<wbr>com/OpenGL-backend-1-1-vs-2-0-<wbr>tp5743167.html</a><br>
Sent from the VTK - Dev mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<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/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" target="_blank">
http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">--
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Ken Martin PhD<u></u><u></u></p>
<div>
<p class="MsoNormal">Distinguished Engineer<br>
<span style="font-size:9.5pt">Kitware Inc.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">28 Corporate Drive<br>
Clifton Park NY 12065<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><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><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Ken Martin PhD<u></u><u></u></p>
<div>
<p class="MsoNormal">Distinguished Engineer<br>
<span style="font-size:9.5pt">Kitware Inc.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">28 Corporate Drive<br>
Clifton Park NY 12065<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><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><u></u><u></u></p>
</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"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></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></div>
</div></div>