<div dir="ltr">I took a quick stab at updating the first wiki link.<div><br></div><div>Thanks!</div><div>Ken</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 5, 2016 at 3:16 PM, Gerrick Bivins <span dir="ltr"><<a href="mailto:Gerrick.Bivins@halliburton.com" target="_blank">Gerrick.Bivins@halliburton.com</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">So are these not valid anymore?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.vtk.org/Wiki/Shader_In_VTK" target="_blank">http://www.vtk.org/Wiki/Shader_In_VTK</a><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Courier New";color:black"><a href="http://www.vtk.org/Wiki/images/3/39/Vtk_shaders_tudelft_tut.pdf" target="_blank">http://www.vtk.org/Wiki/images/3/39/Vtk_shaders_tudelft_tut.pdf</a></span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black"><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">Or am I misunderstanding the question?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Gerrick<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"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","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>Ken Martin<br>
<b>Sent:</b> Friday, February 05, 2016 12:21 PM<br>
<b>To:</b> Aashish Chaudhary<br>
<b>Cc:</b> VTK Developers; Steve Pieper<br>
<b>Subject:</b> [EXTERNAL] Re: [vtk-developers] VTK OpenGL2 Shaders<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p><span style="font-size:9.5pt;color:#1f497d">Here is some info from an old email on customizing the polydatamapper shaders. The PointGaussianMapper also supports custom shaders and there is an example of that in Rendering/OpenGL2/Testing/Cxx/TestPointGaussianMapperOpacity.cxx</span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p><span style="font-size:9.5pt;color:#1f497d">Thanks</span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p><span style="font-size:9.5pt;color:#1f497d">Ken</span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p><span style="font-size:9.5pt"><u></u> <u></u></span></p>
<p><span style="font-size:9.5pt;color:#1f497d">2)</span><span style="font-size:7.0pt;color:#1f497d"> </span><b><span style="font-size:9.5pt;color:#1f497d">CUSTOM SHADERS</span></b><span style="font-size:9.5pt;color:#1f497d"> - Added support for customizing
the default PolyDataMapper shaders. You can now modify or completely replace the default VTK shadersusing methods such as</span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p><span style="font-size:9.5pt;color:#1f497d"> </span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p style="margin-left:1.0in"><span style="font-size:9.5pt;color:#1f497d">AddShaderReplacement: replaces a strings in the current shader<br>
SetVertexShaderCode: replaces the default shader template with your own</span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p style="margin-left:1.0in"><span style="font-size:9.5pt;color:#1f497d">AddObserver(vtkCommand::UpdateShaderEvent,...)</span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p style="margin-left:1.0in"><span style="font-size:9.5pt;color:#1f497d"> </span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p><span style="font-size:9.5pt;color:#1f497d">These methods (and similar others) give you a great degree on control of the VTK PolyData shaders. There are examples/tests in Rendering/OpenGL2/Testing/Cxx/TestUserShader.cxx and TestUserShader2.cxx. Through
the UpdateShaderEvent you can modify the default VTK uniforms or your own uniforms as desired. There is currently not a general purpose easy API for binding your own data arrays to attributes but we may add one at some point in the future. Currently VTK will
send down the default attributes for you to use in your shader (position, normal, tcoords, colors, etc)</span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<p><span style="font-size:9.5pt;color:#1f497d"> </span><span style="font-size:9.5pt"><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Feb 5, 2016 at 12:11 PM, Aashish Chaudhary <<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>> wrote:<u></u><u></u></p>
<div>
<p class="MsoNormal">Not to my knowledge. Although we talked about it at-least having an API so that folks can replace the shader or ember new shader code to the existing one. Also, having some common convention would be nice. <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Feb 5, 2016 at 11:31 AM, Steve Pieper <<a href="mailto:pieper@isomics.com" target="_blank">pieper@isomics.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi Bill - <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Great question - I'm looking forward to hear what folks have been doing in this respect.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">For me, I have two classes I have been testing with Slicer - one that manages 3D textures and one that implements shaders [1,2]. We worked on it at project week [3] and I'm liking how it works.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">-Steve<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">[1] <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pieper_CommonGL_blob_master_ShadedActor_Logic_vtkOpenGLTextureImage.h&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=JLVNzBHTy2yDiWAhQ0jnM62_2X-JALDcuHvl4RY9ZpY&e=" target="_blank">
https://github.com/pieper/CommonGL/blob/master/ShadedActor/Logic/vtkOpenGLTextureImage.h</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">[2] <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pieper_CommonGL_blob_master_ShadedActor_Logic_vtkOpenGLShaderComputation.h&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=Upj6sEV1BITP7GV9N2UGJNJM64zB3ZL_YaisWo-g7-0&e=" target="_blank">
https://github.com/pieper/CommonGL/blob/master/ShadedActor/Logic/vtkOpenGLShaderComputation.h</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">[3] <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.na-2Dmic.org_Wiki_index.php_2016-5FWinter-5FProject-5FWeek_Projects_CommonGL&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=-oFwTMNXYMuPGDDU4QWUesSB464T4cUMyOE2_7fiYTk&e=" target="_blank">
http://www.na-mic.org/Wiki/index.php/2016_Winter_Project_Week/Projects/CommonGL</a><u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Feb 5, 2016 at 11:10 AM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Folks,<br>
<br>
Is there documentation on how to write glsl shaders for VTK?<br>
<span style="color:#888888"><br>
Bill<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
_______________________________________________<br>
Powered by <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=Ov3UXUt9EbFHF6exobtHjeAMwopRx6Q8Ml-eP8N9jOg&e=" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=JwTfptIFeIgiB38cuIHFDKpknvOFhK46OJWaOs4AgVY&e=" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtk-2Ddevelopers&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=dEi2gXi3oLcl7qTf-dfO5g5VFdamU6el6anpwWupNSA&e=" target="_blank">
http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_vtk-2Ddevelopers&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=n3WrRWDvXW4V8Cfch8-qv38ZzO-JbMpk5ZC5oqPwKYk&e=" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a></span><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Powered by <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=Ov3UXUt9EbFHF6exobtHjeAMwopRx6Q8Ml-eP8N9jOg&e=" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=JwTfptIFeIgiB38cuIHFDKpknvOFhK46OJWaOs4AgVY&e=" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtk-2Ddevelopers&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=dEi2gXi3oLcl7qTf-dfO5g5VFdamU6el6anpwWupNSA&e=" target="_blank">
http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_vtk-2Ddevelopers&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=n3WrRWDvXW4V8Cfch8-qv38ZzO-JbMpk5ZC5oqPwKYk&e=" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<u></u><u></u></p>
</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="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_company_team_chaudhary.html&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=RYxdu_hFWqBEji7llxapa6LTZ_5rrmqWFA4eE9XA-as&e=" 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>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Powered by <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=Ov3UXUt9EbFHF6exobtHjeAMwopRx6Q8Ml-eP8N9jOg&e=" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=JwTfptIFeIgiB38cuIHFDKpknvOFhK46OJWaOs4AgVY&e=" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtk-2Ddevelopers&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=dEi2gXi3oLcl7qTf-dfO5g5VFdamU6el6anpwWupNSA&e=" target="_blank">
http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_vtk-2Ddevelopers&d=CwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dYPoPShFc1EqLn33Mo4Py4WqeXt1iYFFH8LtrXQrL0g&m=XoFNZ9OxJwMjdGGPJ5fjbJWBncB9E_q-Rw9Vhuk3Tcc&s=n3WrRWDvXW4V8Cfch8-qv38ZzO-JbMpk5ZC5oqPwKYk&e=" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<u></u><u></u></p>
</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>
<p class="MsoNormal">Ken Martin PhD<u></u><u></u></p>
<div>
<p class="MsoNormal">Chairman & CFO<br>
Kitware Inc.<br>
28 Corporate Drive<br>
Clifton Park NY 12065<br>
<a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<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>