Hi Philipp,<br><br>You need to check the &quot;Compute Normals&quot; box on the properties panel of the contour filter.  Alternatively, you can apply the &quot;Generate Surface Normals&quot; to any polydata dataset to enable correct Gouraud shading.<br>
<br>Pat<br><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 11:24 AM, Philipp Schlatter <span dir="ltr">&lt;<a href="mailto:pschlatt@mech.kth.se">pschlatt@mech.kth.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks a lot for the help!<br>
Concerning the suggested workaround, I have a follow-up question: How would one get the Gouraud shading of the isocontours working? In my case I will get properly coloured isocontours, but they seem to have uniform shade for each triangle as opposed to an interpolated shade.<br>

<br>
Thanks,<br><font color="#888888">
philipp</font><div><div></div><div class="h5"><br>
<br>
On Wed, 29 Jun 2011 14:34:34 +0200, Karl König &lt;<a href="mailto:kkoenig11@web.de" target="_blank">kkoenig11@web.de</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Philipp,<br>
<br>
It seems you have hit a bug in the Contour filter occurring with &gt; 1<br>
pvserver process and rectilinear grid input. I can reproduce the issue<br>
you reported as such:<br>
<br>
Load ParaView, connect to &gt; 1 pvserver processes<br>
Open Data/RectGrid2.vtk (e.g. from git://<a href="http://vtk.org/VTKData.git" target="_blank">vtk.org/VTKData.git</a>)<br>
Calculator filter, operation: &quot;coordsX&quot;,<br>
    Result Array Name: &quot;Result&quot;, Apply<br>
Contour filter, Contour by &quot;scalars&quot;, Compute Normals,<br>
    Isosurface Value 0.5, Apply<br>
Representation &quot;Surface&quot;, Color by &quot;Result&quot;<br>
<br>
With 1 pvserver process the surface coloring is indeed a single smooth<br>
gradient while with more than 1 pvserver process the gradient starts<br>
anew at half the X range. If applying an additional &quot;Process ID Scalars&quot;<br>
filter, one can confirm that the &quot;reset&quot; happens at a process boundary.<br>
<br>
Converting the rectilinear grid to an unstructured grid prior to<br>
applying the contour filter may serve as as a workaround. The filters<br>
&quot;Clean to Grid&quot;, &quot;Tetrahedralize&quot; and &quot;Tesselate&quot; all do that trick<br>
(they are listed with increasing memory footprint). So, I recommend<br>
using &quot;Clean to Grid&quot; somewhere before applying the contour filter in<br>
the parallel case.<br>
<br>
Karl<br>
<br>
<br>
<br>
Philipp Schlatter wrote, On 29.06.2011 11:50:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
Thanks for the answer. Let me give some comments to your questions:<br>
- I am using the distributed 3.10.1 binaries (32 bit), and I tried it on<br>
a Ubuntu 11.04 system (older dualcore T60p)<br>
- I used now the sample dataset Data/RectGrid2.vtk. Using the calculator<br>
operation &quot;CoordsX&quot;, I can reproduce the behaviour I was originally<br>
describing. I simply use the Contour filter (&quot;Compute Scalars&quot; did not<br>
change the behaviour). I have uploaded 3 more screenshots:<br>
<br>
<br>
<a href="http://www.mech.kth.se/%7Epschlatt/files/Screenshot3.png" target="_blank">http://www.mech.kth.se/~<u></u>pschlatt/files/Screenshot3.png</a><br>
is the intended result, obtained using a single core (no Auto-MPI etc.)<br>
<br>
<a href="http://www.mech.kth.se/%7Epschlatt/files/Screenshot2.png" target="_blank">http://www.mech.kth.se/~<u></u>pschlatt/files/Screenshot2.png</a><br>
is the result obtained with Auto-MPI, running on my two cores.<br>
<br>
<a href="http://www.mech.kth.se/%7Epschlatt/files/Screenshot1.png" target="_blank">http://www.mech.kth.se/~<u></u>pschlatt/files/Screenshot1.png</a><br>
is the result obtained with explicitly initiating paraview and pvserver<br>
using a total of 16 MPI ranks.<br>
<br>
I tried all/most of the rendering options (LOD etc.), however it did not<br>
help. Also, I have run on 64 bit version at the computer centre (with<br>
older versions though), and the same problem appears there too.<br>
<br>
I am really puzzled by the fact that you could not reproduce the<br>
problem. Could there be some setting that is for some reason wrong in my<br>
setup?<br>
<br>
Best regards,<br>
Philipp<br>
<br>
<br>
On Tue, 28 Jun 2011 18:36:25 +0200, Karl König &lt;<a href="mailto:kkoenig11@web.de" target="_blank">kkoenig11@web.de</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Philipp,<br>
<br>
A couple of questions:<br>
* Are you using the distributed 3.10.1 binaries or did you compile PV<br>
3.10.1 from source yourself?<br>
* Can you reproduce the behavior with the sample dataset<br>
Data/RectGrid2.vtk (part of both git://<a href="http://vtk.org/VTKData.git" target="_blank">vtk.org/VTKData.git</a> and<br>
<a href="http://www.paraview.org/files/v3.10/ParaViewData-3.10.1.zip" target="_blank">http://www.paraview.org/files/<u></u>v3.10/ParaViewData-3.10.1.zip</a>)<u></u>? That&#39;s<br>
also a &quot;Rectilinear Grid&quot;. Using the Calculator operation &quot;1 +<br>
coordsX*coordsY&quot; followed by a Contour filter with &quot;Compute Scalars&quot;<br>
checked and 10 auto-chosen values, I got identical results with 1 and 16<br>
cores (using PV 3.10.1 Linux 64-bit binaries and Windows 64-bit<br>
binaries, relying on Auto-MPI (&quot;Settings&quot; - &quot;Use Multi-Core&quot;) for the 16<br>
core case)<br>
<br>
Karl<br>
<br>
<br>
Philipp Schlatter wrote, On 28.06.2011 17:50:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear all,<br>
Unfortunately, I am still struggling with running MPI and producing<br>
coloured<br>
isosurfaces. A screenshot exemplifying the problem can be found at<br>
<a href="http://www.mech.kth.se/%7Epschlatt/files/Screenshot.png" target="_blank">http://www.mech.kth.se/~<u></u>pschlatt/files/Screenshot.png</a>; note that the<br>
colour<br>
scheme based on the x-coordinate is just to show the problem, but in<br>
reality<br>
I am using some scalar data coming from file.<br>
<br>
Anyway, I wanted to ask you whether any of you has had similar problems,<br>
i.e. colouring isosurfaces when running MPI. It seems to me that the<br>
data<br>
field used to colour the surfaces is only created on one MPI rank and<br>
then<br>
used by all other ranks, instead of computed for each rank independently<br>
based on the local data. Can anyone confirm that behaviour?<br>
<br>
This problem makes it at the moment impossible for me to visualise a<br>
certain<br>
very large data set as I need to use MPI to distribute the data due to<br>
memory limitation.<br>
<br>
Thanks a lot for any help!<br>
<br>
Philipp<br>
<br>
-----Original Message-----<br>
From: Philipp Schlatter [mailto:<a href="mailto:pschlatt@mech.kth.se" target="_blank">pschlatt@mech.kth.se</a>]<br>
Sent: den 20 juni 2011 22:55<br>
To: &#39;Utkarsh Ayachit&#39;<br>
Cc: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
Subject: RE: [Paraview] FW: Coloured isosurfaces when running MPI<br>
<br>
Dear Utkarsh,<br>
Thanks a lot for your answer. The type of my data is &quot;Rectilinear Grid&quot;<br>
(turbulence data on a regular grid). The test case that I use to<br>
reproduce<br>
the data leads to a size of the contours (from the statistics inspector)<br>
230316 cells, and a memory of 15 MB. I have turned off all the remote<br>
render<br>
thresholds etc. and the problem persists. Thus it is likely that it<br>
is the<br>
contour filter that causes the miscolouring.<br>
<br>
I have just reroduced the problem using the latest version 3.10.1 (Linux<br>
32-bit); and I generated a screenshot on<br>
<a href="http://www.mech.kth.se/%7Epschlatt/files/Screenshot.png" target="_blank">http://www.mech.kth.se/~<u></u>pschlatt/files/Screenshot.png</a>.<br>
<br>
The test is simple; I read in a rectilinear grid with a few velocity<br>
components. Then I compute a new scalar field, essentially being the<br>
x-corrdinate. Then I plot an isocontour, and colour it with the<br>
result of<br>
the calculator. I would expect a continuous colour going from blue to<br>
red<br>
spread over the whole x extent, however - according to the number of<br>
processors used (in that case 16) - I get a repetitive pattern. By<br>
some more<br>
experimenting it becomes clear that for some reason the colouring is<br>
done<br>
based on the scalar value on the first processor only.<br>
<br>
Running on 1 processor everything is fine.<br>
<br>
I am of course happy to provide the respective data files, if this could<br>
help.<br>
<br>
Thanks for any help!<br>
Best regards,<br>
Philipp<br>
<br>
<br>
-----Original Message-----<br>
From: Utkarsh Ayachit [mailto:<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@<u></u>kitware.com</a>]<br>
Sent: den 20 juni 2011 16:59<br>
To: Philipp Schlatter<br>
Cc: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
Subject: Re: [Paraview] FW: Coloured isosurfaces when running MPI<br>
<br>
That&#39;s very peculiar. What datatype are you contouring? (With the reader<br>
selected in the pipeline browser, go to the information tab, what<br>
does the<br>
&quot;Type&quot; field say?) Also after generating the iso-surface, open the<br>
statistics inspector (View | Statistics Inspector). What is the size<br>
of the<br>
geometry generated from  the contour filter. If that&#39;s not too large,<br>
you<br>
try doing local-rendering (go to Edit | Settings, on the Server page,<br>
uncheck Remote Render Threshold). Does that help? This will help<br>
diagnose if<br>
the issue is with rendering or with the data generated by the contour<br>
filter<br>
itself.<br>
<br>
Utkarsh<br>
<br>
On Sun, Jun 19, 2011 at 11:25 AM, Philipp Schlatter<br>
&lt;<a href="mailto:pschlatt@mech.kth.se" target="_blank">pschlatt@mech.kth.se</a>&gt;<br>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear forum,<br>
<br>
I am using Paraview to visualise a large dataset coming from a direct<br>
simulation of turbulence (size of the original data of order 10-100GB).<br>
Naturally, I am running in parallel on a cluster (using the mesa),<br>
which also works very well.<br>
<br>
However, there is one issue: I want to visualise isosurfaces of a<br>
quantity, and colour them using another scalar quantity. When running<br>
serial, everything is fine. When using multiple processors with MPI<br>
leading to the data being distributed, the rendering of the<br>
isosurfaces is<br>
</blockquote>
still ok.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
However, the colouring seems to be based on the scalar field of the<br>
first data segment (i.e. the first processor) only. This then leads to<br>
very visible boundaries between the processors as the colours are<br>
clearly not correct (see example on<br>
<a href="http://www.mech.kth.se/%7Epschlatt/files/resampled.jpg" target="_blank">http://www.mech.kth.se/~<u></u>pschlatt/files/resampled.jpg</a>). Again, running<br>
on a single processor everything is correct, and running on different<br>
numbers of processors will shift the edges.<br>
<br>
This issue could be confirmed in all version up to 3.10.<br>
<br>
Due to this, I am required to run in serial, which is very painful<br>
both due to memory requirements and very long rendering times (up to<br>
15 minutes for a single frame). Thus, if there would be a simple<br>
fix, I&#39;d<br>
</blockquote>
be very interested.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks a lot in advance for any hint.<br>
Best regards,<br>
Philipp Schlatter<br>
KTH Mechanics, Stockholm, Sweden<br>
</blockquote></blockquote></blockquote></blockquote></blockquote>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>