<div dir="ltr">Hi Aashish,<br><br>Thanks for the patchs.<br>However, I've tried them but without success, the GPU rendering won't show up on an Intel HD chipset using the GPURenderDemo (the same exe/dll works fine on a machine with an NVidia/Ati card). The warning disappeared though ...<br>The proposed patchs seems to affect only the TextureMapper 3D, shouldn't there be modification to the vtkOpenGLGPUVolumeRayCastMapper::LoadExtensions method as well?<br><br>I've tried to uncomment all added lines in the GL_VERSION_1_2_DEPRECATED part of vtkgl.cxx, build correctly everything, and on the problematic machine the checkIfNull() fail for all the lines, the program prints out :<br>Function pointer vtkgl::ColorTable is invalid<br>Function pointer vtkgl::.. is invalid<br>For every one of them.<br><br>Also the vtkgl.cxx file is generated by the vtkParseOGLExt exe, shouldn't there be modification in the headers glext.h/glxext.h/wglext.h instead ? Maybe this is causing some troubles elsewhere...<br><br>If you have some other magical trick to solve this, I would be glad to hear about it! Also I can provide more informations if you want<br><br>Thank You<br>Simon<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-17 17:48 GMT+02:00 Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Andras, <div><br></div><div>Please find the patchs attached. If you run into issues let me know. I should mention that apply these patches at your discretion as I have not done enough testing to ensure the quality of the patches but the test passed last time I applied them. </div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 17, 2015 at 11:40 AM, Andras Lasso <span dir="ltr"><<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Please share the patch publicly, we would need it for some of our projects, too. Thank you!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Andras<u></u><u></u></span></p>
<p class="MsoNormal"><a name="14e9cb3efe0764fd_14e9cac6fcc48a03__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></a></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> vtk-developers [mailto:<a href="mailto:vtk-developers-bounces@vtk.org" target="_blank">vtk-developers-bounces@vtk.org</a>]
<b>On Behalf Of </b>Simon ESNEAULT<br>
<b>Sent:</b> Friday, July 17, 2015 11:35 AM<br>
<b>To:</b> Aashish Chaudhary<br>
<b>Cc:</b> VTK Developers; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>; ParaView list<br>
<b>Subject:</b> Re: [vtk-developers] [Paraview] GPU volume rendering failure on Intel HD XXXX/Iris, Windows and recent drivers<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Dear Aashish,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you very much for you answer.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Yes you are right, we are waiting for a new VTK release that defaults to the new OpenGL2 backend, for safety and because a change of VTK version requires a lot of extra work with our current framework... But the green dashboard indeed looks
 really promising, and we will probably make the move as soon as it's ready !<br>
<br>
Meanwhile, I would be really glad if you could send me the patch that solves this issue with the old backend, or guide me through the needed modification to make it work.<br>
<br>
Thanks again<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Simon<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2015-07-17 16:22 GMT+02:00 Aashish Chaudhary <<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>>:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">Dear Simon, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Jul 17, 2015 at 4:43 AM, Simon ESNEAULT <<a href="mailto:simon.esneault@gmail.com" target="_blank">simon.esneault@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">Hi All,<br>
<br>
We're experiencing GPU volume rendering failure on a lot (maybe all ?) Intel HD windows system with up to date drivers.<u></u><u></u></p>
<div>
<p class="MsoNormal"><br>
This is reproducible in Paraview or with the GPURenderDemo example from VTK, just load a volume and try to render the volume... Here is a result image from paraview on a Dell Latitude E7450 (Intel HD 5500 inside), with GPU rendering [1] and the same volume
 with CPU VR rendering [2].<br>
Interestingly, the volume rendering used to work with drivers older or equal to the version 10.18.10.3496 [3]. As a work around, we ask our customers to downgrade their driver version to this one, and they're enjoying smooth GPU rendering. But this driver is
 quite old and does not support recent chipset...<br>
<br>
I've built and tested the GPURenderDemo with the brand new OpenGL2 backend on an affected machine and of course it does work out of the box (congratulations for this amazing work !).
<u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal">Great! <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">But our application is FDA/CE marked and we need to wait that this new backend is completely ready for prime time. So for now, we have to stick with VTK 6.1 ...<u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Most of the tests are passing for OpenGL2 (<a href="https://open.cdash.org/index.php?project=VTK" target="_blank">https://open.cdash.org/index.php?project=VTK</a>) on most of the dashboards (various configurations etc) but it is a moving
 target just like VTK itself is a moving target. I guess you are waiting for a VTK release that defaults to OpenGL2 as oppose to OpenGL?  <u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><br>
Anyone has any clue ? They're some warning that pop up from paraview related to the extension "gl_version_1_2" that could not be loaded, not sure if that could be related ? Following this thread [4] and the fix proposed, I've tried to replace<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">/*****************/<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">extensions->LoadExtension("GL_VERSION_1_2")<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">/*****************/<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">by<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">/*****************/<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">extensions->LoadExtension("GL_EXT_texture3D");<br>
extensions->LoadExtension( "GL_ARB_texture_non_power_of_two" );<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">/*****************/<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">in the vtkOpenGLGPUVolumeRayCastMapper.cxx, The warning disappears but there is still no volume rendering (tested with GPURenderDemo). Maybe it needs some others extensions ?<u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Yes, there is a patch and I can send it to you. I have to talk to folks here if we can fix the old mapper with those changes but as of now it is not in the plan. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><br>
Should I fill a bug in paraview, vtk ? Are there any plan to maintain and maybe fix this for the old backend ?<u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">- Aashish<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><br>
Thanks,<span style="color:#888888"><br>
-- <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="color:#888888">------------------------------------------------------------------<br>
Simon Esneault<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="color:#888888">Rennes, France<br>
------------------------------------------------------------------<u></u><u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="color:#888888"><br>
[1] <a href="http://picpaste.com/pics/Paraview-4-3-1-GPU-VR_fail.1437122217.PNG" target="_blank">http://picpaste.com/pics/Paraview-4-3-1-GPU-VR_fail.1437122217.PNG</a></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888">[2] <a href="http://picpaste.com/pics/Paraview-4-3-1-CPU-VR_win.1437122267.PNG" target="_blank">http://picpaste.com/pics/Paraview-4-3-1-CPU-VR_win.1437122267.PNG</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888">[3] <a href="https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23339" target="_blank">https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23339</a><br>
[4] <a href="http://public.kitware.com/pipermail/vtkusers/2014-April/083584.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/2014-April/083584.html</a><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">
http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="color:#888888"><br>
<br clear="all">
<span><u></u><u></u></span></span></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><span><span style="color:#888888">-- </span><u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><i><span style="font-family:"Trebuchet MS",sans-serif;color:#888888">| Aashish Chaudhary
<br>
| Technical Leader         <br>
| Kitware Inc.            </span></i><u></u><u></u></p>
<div>
<p class="MsoNormal"><i><span style="font-family:"Trebuchet MS",sans-serif;color:#888888">| </span><span style="color:#888888"><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></span></i><span style="color:#888888"><u></u><u></u></span></p>
</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">------------------------------------------------------------------<br>
Simon Esneault<u></u><u></u></p>
<div>
<p class="MsoNormal">Rennes, France<br>
------------------------------------------------------------------<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><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></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------<br>Simon Esneault<div>Rennes, France<br>------------------------------------------------------------------</div></div></div></div>
</div>