Hi Chris,<br><br>By default, Kiwi uses the gouraud shading model, which uses per-vertex normal vectors. When Kiwi loads a data file, and the data does not define any normals, then normals are automatically computed. This can cause less than ideal results for models that contain sharp edges, like the edges around the hole in the center of your model.<br>
<br>You can solve the problem by opening your data in ParaView and applying the Generate Surface Normals filter. This filter will add new vertices along sharp edges so that you can have multiple normal vectors defined at the edges, this produces much better visuals. The Generate Surface Normals filter allows you to specify the angle at which sharp edges are split. After applying the filter, re-save the data. This time, Kiwi will use the normal vectors computed in ParaView and the visualization should look better.<br>
<br>In the future, we plan to add a flat shader (non gouraud), so you can render models with sharp edges without adding new vertices. If you decide to implement this type of shader yourself, and want to contribute it back, we'd be happy to have it.<br>
<br>Pat<br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 10:38 AM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I can have a look at it later. Thanks for attaching the STL file.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, Jul 19, 2012 at 12:02 PM, Chris Vaught <<a href="mailto:cvaught@cmv-tech.com">cvaught@cmv-tech.com</a>> wrote:<br>
> The attached image shows a very simply plate with a hole in the center.<br>
> This is a simple stl file with no contour data. The stl file is also<br>
> attached. The resulting shading appears to be messed up. Any thoughts on<br>
> why this is and how to fix it? Also, I am working with the example ios<br>
> application. How do you change the background color? I changed the<br>
> background color of the GLView in MainWindow.xib and that did not work.<br>
><br>
> Thanks<br>
> Chris<br>
><br>
><br>
</div></div><div class="im HOEnZb">> _______________________________________________<br>
> Ves mailing list<br>
> <a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
><br>
<br>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
| Aashish Chaudhary<br>
| R&D Engineer<br>
| Kitware Inc.<br>
| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
</div></div></blockquote></div><br>