<div dir="ltr">Currently you can pass uniforms (see <a href="https://gitlab.kitware.com/vtk/vtk/blob/v7.0.0.rc2/Rendering/OpenGL2/Testing/Cxx/TestUserShader2.cxx">https://gitlab.kitware.com/vtk/vtk/blob/v7.0.0.rc2/Rendering/OpenGL2/Testing/Cxx/TestUserShader2.cxx</a> for an example). You currently cannot pass your own attributes without subclassing, only work with the default ones that are passed (position/scalars/normals/tcoords) <div><br></div><div>Thanks</div><div>Ken</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 4, 2016 at 7:47 PM, Brad Hollister <span dir="ltr"><<a href="mailto:behollis@sci.utah.edu" target="_blank">behollis@sci.utah.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've been using vtkOpenGLPolyDataMapper() to set custom vertex / fragment shaders. I'd also like to provide user-defined vertex attributes accessible in the shader code. I assumed from the documentation that MapDataArrayToVertexAttributes() is the proper way to do this.<br>
<br>
However, I get the ERROR: vtkOpenGLPolyDataMapper (0x2872160): Not implemented at this level...<br>
<br>
There doesn't appear to be a derived class of vtkOpenGLPolyDataMapper available for my needs (which is that I'm specifying polygons via a vtkPolyData object).<br>
<br>
Is it possible to pass vertex attributes and custom uniforms using vtkOpenGLPolyDataMapper? Is there a different way from the one I've been trying that makes this possible?<br>
<br>
Regards,<br>
Brad<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</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>