<div dir="ltr">David,<div><br></div><div>Thank you very much for your response! I tried what you suggested and it worked, but, I'm getting bad texture, i.e. I get texture 2xN, where N is number of segments in colormap and the exported texture mapped object looks like I turned OFF InterpolateScalarsBeforeMapping flag. I would like to simulate InterpolateScalarsBeforeMapping behavior by baking entire texture first and exporting it. You can easily see difference if you create Wavelet source, turn ON Surface representation, select RTData array for coloring and set Number Of Table Values (in Color Map Editor) to e.g. 5.</div><div><br></div><div>What I did in background is: I patched vtkCompositePolyDataMapper2Internal and vtkCompositePolyDataMapper2, so I'm able to access appropriate block mapper and get rid of old colormap texture, coordinates, colors, call MapScalars(), dump created ColorMapTexture to .vti file (everything performed on block-mapper).</div><div><br></div><div>Do you have some idea where I made mistake?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Nenad.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 2:33 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Nenand,<br><br></div>You might try vtkMapper::GetColorMapColors/C<wbr>olorCoordinates/ColorTextureMa<wbr>p. I'm using this in the OSPRay renderer for example.<br><br></div>Out of curiosity is this for the p2f3d exporter plugin?<br><br></div>cheers<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="m_1448125715563781455gmail_signature" data-smartmail="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:(518)%20881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Tue, Apr 11, 2017 at 6:34 AM, Nenad Vujicic <span dir="ltr"><<a href="mailto:nenadus@gmail.com" target="_blank">nenadus@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello everyone,<div><br></div><div>I've just started building my ParaView exporter plugin using ParaView v5.3 with OpenGL2 selected for backend rendering (PARAVIEW_RENDERING_BACKEND), however, I'm having troubles with generating textures from scalars used for coloring the meshes. What I'm actually doing here is that I'm generating texture from currently selected array and lookup-table and I export texture mapped object instead of exporting object plus scalars and colormap or colors. Previously (with OpenGL used for backend rendering), I was deriving class from vtkScalarsToColorsPainter class for this purpose, however, now, this class is not used anymore with OpenGL2.</div><div><br></div><div>Does anyone have idea how to solve this problem?</div><div><br></div><div>Thanks in advance,</div><div>Nenad.</div></div>
<br></div></div>______________________________<wbr>_________________<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/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>