<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.emailstyle17
{mso-style-name:emailstyle17;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Yep, I got that.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></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).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Patrick<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></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<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></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><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
For UV texture shading:</span><o:p></o:p></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><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="https://www.paraview.org/download/">https://www.paraview.org/download/</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Best</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Jonathan </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></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><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks. Do these values make it into vertex shaders?
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></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><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
</div>
<div id="compose-container">
<div>
<div>
<div>
<p class="MsoNormal"><a name="_MailOriginalBody"><span style="font-size:11.0pt">Hey</span><o:p></o:p></a></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">All these examples may help.</span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/VTKConcepts/Scalars"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/VTKConcepts/Scalars</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">Best,</span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">Jonathan Borduas</span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">Get
</span></span><a href="https://aka.ms/o0ukef"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">Outlook for iOS</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">
<hr size="2" width="98%" align="center">
</span></span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><b><span style="font-size:11.0pt;color:black">From:</span></b></span><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt;color:black"> vtkusers <</span></span><a href="mailto:vtkusers-bounces@public.kitware.com"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">vtkusers-bounces@public.kitware.com</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt;color:black">>
on behalf of Patrick Bergeron <</span></span><a href="mailto:pbergeron@spiria.com"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">pbergeron@spiria.com</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><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="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">vtkusers@vtk.org</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt;color:black"><br>
<b>Subject:</b> [vtkusers] Questions about vtkPolyData</span></span><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">
</span><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">Hi everyone.</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><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><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><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><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt"> </span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:11.0pt">Thanks</span></span><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>