<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><a name="_MailEndCompose"><span style="color:#1f497d">Hiya John,</span></a></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">It depends on what the painters/mappers do. I think there are three main approaches you can use. The first would be to use the functions in vtkOpenGLPolydataMapper to modify the existing shader code generated by VTK to do something different (examples in Rendering/OpenGL2/Testing/Cxx/TestUserShader and TestUserShader2). You could do this by calling those functions in your application. The other approach is to subclass off of the mapper and modify the shader code there. vtkOpenGLPointGaussianMapper and vtkOpenGLSphereMapper are examples of this approach that provide a generic superclass (without the OpenGL) it can be quite a bit simpler if you are willing to just go with the OpenGL class.  If you need to pass different data arrays to the shader then subclassing like that is the current way to go.  </span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">The third option is to create a render pass that does something special to some or all of the props. This is more useful when your painters are being used to do some sort of rendering technique like shadow maps, or cell coloring, eye dome lighting etc. Examples of those include Rendeing/OpenGL2/*Pass* classes.</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks</span></p><p class="MsoNormal"><span style="color:#1f497d">Ken</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><div><p class="MsoNormal"><span style="color:#1f497d">Ken Martin PhD</span></p><p class="MsoNormal"><span style="color:#1f497d">Chairman & CFO</span></p><p class="MsoNormal"><span style="color:#1f497d">Kitware Inc.</span></p><p class="MsoNormal"><span style="color:#1f497d">28 Corporate Drive</span></p><p class="MsoNormal"><span style="color:#1f497d">Clifton Park NY 12065</span></p><p class="MsoNormal"><a href="mailto:ken.martin@kitware.com">ken.martin@kitware.com</a><span style="color:#1f497d"></span></p><p class="MsoNormal"><span style="color:#1f497d">919 869-8871 (w)</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">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></p></div><p class="MsoNormal"><span style="color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><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">vtk-developers-bounces@vtk.org</a>] <b>On Behalf Of </b>Biddiscombe, John A.<br><b>Sent:</b> Thursday, September 17, 2015 3:12 AM<br><b>To:</b> <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br><b>Subject:</b> [vtk-developers] Painters</span></p></div></div><p class="MsoNormal"> </p><p class="MsoNormal"><span lang="EN-GB">Dear list,</span></p><p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal"><span lang="EN-GB">Did I read somewhere that with the switch to OpenGL2, the support for painters in VTK was being dropped?</span></p><p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal"><span lang="EN-GB">If this is the case, should I rewrite all my custom renderers as plain old mappers again - or is there some new approach that I should adopt. A link to any kind of wiki entry would be appreciated if one exists.</span></p><p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal"><span lang="EN-GB">thanks</span></p><p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal"><span lang="EN-GB">JB</span></p><p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">-- </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">John Biddiscombe,                        email:biddisco @.at.@ <a href="http://cscs.ch">cscs.ch</a></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><a href="http://www.cscs.ch/"><span style="color:windowtext">http://www.cscs.ch/</span></a></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07</span></p><p class="MsoNormal"><span lang="IT-CH" style="font-size:10.0pt;font-family:"Courier New"">Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82</span></p><p class="MsoNormal"><span lang="IT-CH"> </span></p></div></body></html>