<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
p.msonormal0, li.msonormal0, div.msonormal0
        {margin-right:0cm;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0cm;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.emailstyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.EmailStyle20
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.EmailStyle21
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.EmailStyle22
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div id="compose-container" itemscope="" itemtype="https://schema.org/EmailMessage" style="direction:ltr">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name"></span></span>
<div>
<div style="direction:ltr">Never play with that, but you specify “user” shader like this:</div>
<div><br>
</div>
<div style="direction:ltr">https://gitlab.kitware.com/vtk/vtk/blob/v7.0.0.rc2/Rendering/OpenGL2/Testing/Cxx/TestUserShader.cxx</div>
<div><br>
</div>
<div style="direction:ltr">Jonathan Borduas</div>
<div><br>
</div>
<div class="acompli_signature">Get <a href="https://aka.ms/o0ukef">Outlook for iOS</a></div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Patrick Bergeron <pbergeron@spiria.com><br>
<b>Sent:</b> Friday, June 8, 2018 4:43:21 PM<br>
<b>To:</b> Jonathan Borduas; vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] Questions about vtkPolyData</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Yep, I got that.
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">My question “</span><span style="font-size:11.0pt">Do these values make it into vertex shaders?</span><span lang="EN-US" style="font-size:11.0pt">“ was meant so that I’d like to know that, if
 they DO get into shaders, how would they be names, and what would the shader script look like, because I need to do custom GLSL shading stuff with scalar/vector attributes that are sent on a per-vertex basis.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">(in fact, I want data to be sent on a per-vertex basis to the VTK vertex shader, so that I can make them a varying variable in the fragment shader).</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Thanks!</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Patrick</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Jonathan Borduas <jonathan.borduas@caboma.com><br>
<b>Date: </b>Friday, June 8, 2018 at 2:03 PM<br>
<b>To: </b>Patrick Bergeron <pbergeron@spiria.com>, "vtkusers@vtk.org" <vtkusers@vtk.org><br>
<b>Subject: </b>RE: [vtkusers] Questions about vtkPolyData</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Patrick,<br>
<br>
You can do per-vertex and per-cell coloring. </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TriangleColoredPoints">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TriangleColoredPoints</a><br>
<a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
For UV texture shading:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/Texture/TexturedSphere">https://www.vtk.org/Wiki/VTK/Examples/Cxx/Texture/TexturedSphere</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="http://scylardor.fr/2013/05/06/making-multi-texturing-work-with-vtk/">http://scylardor.fr/2013/05/06/making-multi-texturing-work-with-vtk/</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">To try some of the possibilities of VTK, you want to use ParaView. This application is heavily based on VTK and can give you a good sense of what is feasible with VTK.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="https://www.paraview.org/download/">https://www.paraview.org/download/</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Best</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Jonathan </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt">From:</span></b><span style="font-size:11.0pt"> Patrick Bergeron <pbergeron@spiria.com>
<br>
<b>Sent:</b> Friday, June 08, 2018 12:58 PM<br>
<b>To:</b> Jonathan Borduas <jonathan.borduas@caboma.com>; vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] Questions about vtkPolyData</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks. Do these values make it into vertex shaders?
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Jonathan Borduas <</span><a href="mailto:jonathan.borduas@caboma.com">jonathan.borduas@caboma.com</a><span style="color:black">><br>
<b>Date: </b>Thursday, June 7, 2018 at 7:18 PM<br>
<b>To: </b>Patrick Bergeron <</span><a href="mailto:pbergeron@spiria.com">pbergeron@spiria.com</a><span style="color:black">>, "</span><a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><span style="color:black">" <</span><a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><span style="color:black">><br>
<b>Subject: </b>Re: [vtkusers] Questions about vtkPolyData</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<div id="compose-container">
<div>
<div>
<div>
<p class="MsoNormal"><a name="_MailOriginalBody"><span style="font-size:11.0pt">Hey</span></a></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt">All these examples may help.</span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints"><span style=""><span style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints</span></span><span style=""></span></a><span style=""></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData"><span style=""><span style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData</span></span><span style=""></span></a><span style=""></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/VTKConcepts/Scalars"><span style=""><span style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/VTKConcepts/Scalars</span></span><span style=""></span></a><span style=""></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt">Best,</span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt">Jonathan Borduas</span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt">Get </span></span><a href="https://aka.ms/o0ukef"><span style=""><span style="font-size:11.0pt">Outlook for iOS</span></span><span style=""></span></a><span style=""></span></p>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style=""><span style="font-size:11.0pt">
<hr size="2" width="98%" align="center">
</span></span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><span style=""><b><span style="font-size:11.0pt; color:black">From:</span></b></span><span style=""><span style="font-size:11.0pt; color:black"> vtkusers <</span></span><a href="mailto:vtkusers-bounces@public.kitware.com"><span style=""><span style="font-size:11.0pt">vtkusers-bounces@public.kitware.com</span></span><span style=""></span></a><span style=""><span style="font-size:11.0pt; color:black">>
 on behalf of Patrick Bergeron <</span></span><a href="mailto:pbergeron@spiria.com"><span style=""><span style="font-size:11.0pt">pbergeron@spiria.com</span></span><span style=""></span></a><span style=""><span style="font-size:11.0pt; color:black">><br>
<b>Sent:</b> Thursday, June 7, 2018 7:08:43 PM<br>
<b>To:</b> </span></span><a href="mailto:vtkusers@vtk.org"><span style=""><span style="font-size:11.0pt">vtkusers@vtk.org</span></span><span style=""></span></a><span style=""><span style="font-size:11.0pt; color:black"><br>
<b>Subject:</b> [vtkusers] Questions about vtkPolyData</span></span><span style=""><span style="font-size:11.0pt">
</span></span></p>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt">Hi everyone.</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt">How would I go about specifying multiple sets of user attributes on a per-vertex basis on a polydata?</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt">For example, hlet’s say I would like multiple sets of uv coordinates, normal, colors, int attributes, etc?</span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt"> </span></span></p>
<p class="MsoNormal"><span style=""><span style="font-size:11.0pt">Thanks</span></span></p>
</div>
</div>
</div>
</div>
</body>
</html>