<div dir="ltr">FYI, this behavior will change in the next version of ParaView. Specular hightlights will be off by default for all surfaces, pseduocolored or otherwise. And to turn them on, one simply changes the "Specular" factor from the Properties panel.<div>
<br></div><div>Refer to the blog post for more details: <a href="http://www.kitware.com/blog/home/post/671">http://www.kitware.com/blog/home/post/671</a></div><div><br></div><div>Utkarsh</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jun 27, 2014 at 3:01 PM, Burlen Loring <span dir="ltr"><<a href="mailto:burlen.loring@gmail.com" target="_blank">burlen.loring@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>btw, the default is to automatically
disable specular affects when pseudocoloring. If you want specular
affects in pseudocolor plots you can enable it in the settings
menu. edit->settings->general. The fact that it's
automaticly changed on us is a bit confusing. I guess the rational
is that specular highlights modify the coloring, the down side of
course is that your depth preceptipon of curved surface reduced
and then also as you noticed that it looks funny when you have
other surfaces that are not pseduocolored. <br><div><div class="h5">
<br>
On 6/26/2014 4:25 PM, Fernando Paolo wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Indeed, turning off specular highlights on the
sphere produces the same lightning on both surfaces (the sphere
was set to 0.2 and the grid to 0.1).
<div><br>
</div>
<div>Thanks for your help, Ken!</div>
<div>-fernando</div>
<div><br>
</div>
<div><br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Jun 26, 2014 at 2:05 PM,
Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div>I don't know why the lighting is different, but
here some guesses you can try.</div>
</div>
</div>
<div><br>
</div>
<div>The default resolution for the sphere is quite
coarse and results in large facets. The lighting on
the large flat facets of the sphere might be quite
different than the smaller facets of the grid. Try
increasing the resolution of the sphere.</div>
<div><br>
</div>
<div>The sphere source comes with normals on the points
whereas your grid might not. That could result in
different lighting equations. You could try running
the generate surface normals on your grid (assuming it
is poly data). That's assuming that your grid is not a
clipped sphere, which could result in inconsistent
normals as the edge.</div>
<div><br>
</div>
<div>It could be that the sphere is using specular
highlighting whereas the colored mesh is not. Try
turning off specular highlighting on the sphere (under
the display properties).</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Fernando
Paolo <<a href="mailto:fspaolo@gmail.com" target="_blank">fspaolo@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday,
June 26, 2014 2:29 PM<br>
<span style="font-weight:bold">To: </span>Kenneth
Moreland <<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL]
Re: [Paraview] Offset between grid and points on
spherical projection<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Ok, that seems to work for the
points. Thanks so much, Ken.
<div><br>
</div>
<div>Not sure if this is also related to a
similar issue. But when I add a 'Source
-> Sphere' of radius = 1 (same radius
as the grid) to the plot, there is
different "illumination" between the
surface of the sphere and the grid. This
"effect" also changes with angle of view.
In the attached figure you can clearly see
how the illumination changes across the
boundary between the surface of the sphere
(lighter) and the grid (darker). This two
surfaces should blend.</div>
<div><br>
</div>
<div>Once again, thank you!
<div>-fernando</div>
<div><br>
</div>
<div><br>
</div>
<div><img src="cid:part6.08010403.00020200@gmail.com" alt="Inline image 1" height="387" width="390"><br>
</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Jun 26,
2014 at 12:45 PM, Moreland, Kenneth <span dir="ltr">
<<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div>This looks like it might be
caused by the coincident
topology resolution feature in
ParaView's rendering. The
problem when trying to draw
surfaces and points or lines on
that surface as you are doing is
that you get z-buffer fighting
so that the points/lines don't
just show up on top like you
want.</div>
</div>
</div>
<div><br>
</div>
<div>ParaView implements a couple of
tricks to prevent this from
happening, but they all sometimes
cause shifts in the data so that
they do not line up correctly. My
suggestion is to first turn off
coincident topology resolution and
see if that fixes this problem
(although it might introduce a new
one). Go to settings and then Render
View -> General to get to the
coincident topology resolution
options.</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From:
</span>Fernando Paolo <<a href="mailto:fspaolo@gmail.com" target="_blank">fspaolo@gmail.com</a>><br>
<span style="font-weight:bold">Date:
</span>Thursday, June 26, 2014
1:36 PM<br>
<span style="font-weight:bold">To:
</span>"<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>"
<<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject:
</span>[EXTERNAL] [Paraview]
Offset between grid and points on
spherical projection<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>I have a 2d grid
projected on top of a
spherical surface. On
the same surface, and on
top of the grid, I am
also projecting a set of
points delimiting the
boundaries of the
quantity in question.
The problem is that both
the grid and the points
when plotted together
are displayed with an
offset in between them
(in the "r" direction
from the spherical
projection). Also
interesting is the fact
that when I change the
angle of view the
"offset" also changes (<u>see
attached figures</u>).</div>
<div><br>
</div>
<div>The coordinates of
both the grid and the
points are simply
converted from spherical
lon/lat/radius=1 to
cartesian xyz.</div>
<div><br>
</div>
<div>The points are
projected using an
UNSTRUCTURED GRID format
(polydata ascii file).
And the grid is
projected using the XDMF
3DSMesh, with the
following template:</div>
<div><br>
</div>
<div>
<div> <Grid
Name="Mesh"
GridType="Uniform"></div>
<div> <Time
Value="%f" /></div>
<div> <Topology
TopologyType="3DSMesh"
NumberOfElements="{0}
{1} {2}"/></div>
<div> <Geometry
GeometryType="XYZ"></div>
<div> <DataItem
Name="Coordinates"
Dimensions="{3} {4}"
NumberType="Float"
Precision="4"
Format="HDF"></div>
<div>
PATH_TO_XYZ</div>
<div>
</DataItem></div>
<div>
</Geometry></div>
<div> </div>
<div> <Attribute
Name="DATA_NAME"
AttributeType="Scalar"
Center="Cell"></div>
<div> <DataItem
Dimensions="{5} {6}
{7}"
NumberType="Float"
Precision="4"
Format="HDF"></div>
<div>
PATH_TO_DATA</div>
<div>
</DataItem></div>
<div>
</Attribute></div>
<div> </Grid></div>
<div><br>
</div>
<div>If both datasets
have a radius = 1, why
is there any offset in
between them? Since
this offset also
changes with the angle
of view, it seems that
both datasets are not
being projected on top
of the same spherical
surface (note: I've
tried setting
different radius for
both datasets). How
can I fix this?</div>
<div><br>
</div>
<div>I appreciate any
help!</div>
<div>-fernando</div>
<div><br>
</div>
<div><br>
</div>
<div><img src="cid:part11.00070702.05070604@gmail.com" alt="Inline image 1" height="284" width="303"><br>
</div>
<div><br>
</div>
<div><img src="cid:part12.09030604.05040207@gmail.com" alt="Inline image 2" height="290" width="317"><br>
</div>
<div><br>
</div>
<div><br>
</div>
-- <br>
Fernando Paolo<br>
Institute of Geophysics
& Planetary Physics<br>
Scripps Institution of
Oceanography<br>
University of
California, San Diego<br>
<br>
web: <a href="http://fspaolo.net" target="_blank">fspaolo.net</a> </div>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Fernando Paolo<br>
Institute of Geophysics & Planetary
Physics<br>
Scripps Institution of Oceanography<br>
University of California, San Diego<br>
<br>
web: <a href="http://fspaolo.net" target="_blank">fspaolo.net</a>
</div>
</div>
</div>
</div>
</div>
</span>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Fernando Paolo<br>
Institute of Geophysics & Planetary Physics<br>
Scripps Institution of Oceanography<br>
University of California, San Diego<br>
<br>
web: <a href="http://fspaolo.net" target="_blank">fspaolo.net</a>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<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/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/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>