<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
I have attached the dataset and a simple MATLAB script that
demonstrate the problem. Java bindings are used in the script. <br>
With the chosen fill light settings the artifact patches are almost
black. They are visible on the high slope parts of the model.<br>
<br>
Hope this helps,<br>
<br>
Marcin<br>
<br>
<br>
<div class="moz-cite-prefix">On 05/27/2015 02:58 PM, Aashish
Chaudhary wrote:<br>
</div>
<blockquote
cite="mid:CAEw35Z_7z=qM-EYJGN2kbETD4kNdKs+Qkn3sifcavYX_QbNpVg@mail.gmail.com"
type="cite">
<div dir="ltr">Looks like a bug but hard to tell without a sample
code that can replicate this behavior on other machines.
<div><br>
</div>
<div>- Aashish</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, May 27, 2015 at 8:00 AM,
marcin.krotkiewski <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:marcin.krotkiewski@gmail.com" target="_blank">marcin.krotkiewski@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 style="font-family:-moz-fixed;font-size:12px"
lang="x-unicode">Hi, <br>
<br>
I have a problem with shading in VTK 6.2 when using
OpenGL2. The problem is visible when using lightkit, but
not with simple scene light. I have attached pictures
that demonstrate the problem. <br>
<br>
- model.jpg shows the 3D surface I am looking at - three
combined gaussians. <br>
- shading_flat.jpg and shading_gouraud.jpg show a view
from below at a place in the shadows, with steep surface
slope. Both pictures are taken at the same camera
position. <br>
<br>
shading_flat.jpg shows a strange patch that seems to me
is a shading artifact. In contrast, shading_gouraud.jpg
shows a nice, smooth gradient in the shadows. I have
tested my code using vtk 6.1 and the result is
different, i.e., similar to that shown in
shading_gouraud.jpg. <br>
<br>
It seems also that the artifact is not there (or not
visible) when lightkit is switched off. I have played
around and I think it is caused by the fill light in the
lightkit. Depending on the position of the fill light I
can make this artifact patch all black.<br>
<br>
Could this be a bug related to the new OpenGL2 rendering
engine?<br>
<br>
Thanks, <br>
<br>
Marcin<br>
<br>
</div>
</div>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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 VTK FAQ at: <a
moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a moz-do-not-send="true"
href="http://markmail.org/search/?q=vtkusers"
target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://public.kitware.com/mailman/listinfo/vtkusers"
target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr"><font face="trebuchet ms, sans-serif"><i>|
Aashish Chaudhary <br>
| Technical Leader <br>
| Kitware Inc. <br>
</i></font>
<div><i><font face="trebuchet ms, sans-serif">| </font><a
moz-do-not-send="true"
href="http://www.kitware.com/company/team/chaudhary.html"
target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>