<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">With vtkInteractorStyleRubberBandZoom::Zoom() I'm having good results, no noise when getting closer to the structure. However it is easy to go into the structure. Does VTK provides a way to avoid the camera go into the visible object? </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 3:06 PM, Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@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">OK in that case you want to print out the ViewAngle of the camera. It could be that the view angle is getting really small leading to some issues. <div>It might be worth trying to use Dolly instead of Zoom. The difference is that Zoom adjust the view angle while Dolly moves the position. </div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 1:24 PM, Patricio Palma C. <span dir="ltr"><<a href="mailto:patriciop@gmail.com" target="_blank">patriciop@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 dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi Ken, experts</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I have double checked and the case shown in previous email, do not have coincident geometries.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Regarding the interactor, I'm using a custom interactor style (derived from vtkInteractorStyle) that provides a rubber band zoom into the 3D scene. The code shows Dolly() function in custom interactor is calling camera->Zoom(). </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"> </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Regards</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Patricio </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 9:49 AM, Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@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">Are you zooming using one of VTK's interactor styles? or are you explicitly calling zoom or dolly on the camera? Using dolly() the distance on the camera should be changing and as you noticed it isn't.<div><br></div><div>Since you mentioned you have coincident geometry that can be an issue. When you have two polygons at the same location the rendering process can result in a random determination of which is on top. If the coincident geometry is in two different mappers you can use the </div><div><br></div><div><div>void SetRelativeCoincidentTopologyP<wbr>olygonOffsetParameters(</div><div> double factor, double units);</div></div><div><br></div><div>method to move one of the mappers slightly in front of the other.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="m_6178777709865141605m_-7085825004043166661HOEnZb"><div class="m_6178777709865141605m_-7085825004043166661h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 1:01 AM, Patricio Palma C. <span dir="ltr"><<a href="mailto:patriciop@gmail.com" target="_blank">patriciop@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 dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi Ken, experts, </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"> Thank you for the quick response.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Regarding point one, SetDiffuse(0.0) was applied to all actors, the structure looks darker with no shadows, but the issue still occurs.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">About point 2:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">- the actor we use is derived from vtkQuadricLODActor</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">- and there are some overlapping geometries </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Below is a image of the structure in the beginning. Clipping range, position, focal point and distance are shown below</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><img src="cid:ii_157d6186a982dbcd" alt="Inline image 1" width="328" height="298" style="margin-right:0px"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera clipping range: 3.61282 4.44839</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera position: -1.93487 2.37646 2.48559</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera focal point: 0.0543755 -0.0598546 0.0492757</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera distance: 3.97849</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , 0.05 ]</font></div><div style="font-family:arial,sans-serif"><br></div></div><div class="gmail_default"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">After zooming in a bit, it appears a soft pattern of lines over the face of the structure</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><img src="cid:ii_157d6196d1f49ddd" alt="Inline image 2" width="340" height="293" style="margin-right:0px"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera clipping range: 3.61282 4.44839</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera position: -1.92875 2.37186 2.4952</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera focal point: 0.0604954 -0.0644594 0.0588774</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera distance: 3.97849</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , 0.05 ]</font></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div class="gmail_default">Finally after zooming in a couple of steps more, it appears noise/lines over the face.</div><div class="gmail_default"><img src="cid:ii_157d61a9d57b1023" alt="Inline image 3" width="345" height="327" style="margin-right:0px"><br></div><div class="gmail_default"><div class="gmail_default"><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera clipping range: 3.61282 4.44839</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera position: -1.92882 2.37202 2.49498</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera focal point: 0.0604254 -0.0643013 0.0586621</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Camera distance: 3.97849</font></div><div style="font-family:arial,sans-serif"><font face="arial, helvetica, sans-serif">Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , 0.05 ]</font></div></div><div><br></div></div></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">It calls my attention that only position and focal point are being updated after zooming in. </div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks</div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Patricio </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 17, 2016 at 8:21 PM, Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">It could be a few things, we would really need more details to narrow it down. Two things you can check<div><br></div><div>1) maybe a lighting issue, if you change your actors to be only ambient, no diffuse, do you still see the issue?</div><div><br></div><div>2) maybe a zbuffer issue, If you zoom too far you can end up with bad (not ideal) zbuffer clipping ranges. To narrow that down</div><div> - are these Actors or Actor2D, what mapper are you using, <div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline"></div>do you have overlapping or coincident geometry?</div><div> - when you see the problem what is the value of </div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline"></div> - the camera's clipping range</div><div> - camera's position, and focal point, distance</div><div> - the bounds of your data</div><div><br></div><div>Generally you do not want any of those values to be really small or large relative to the square root of the range a float can normally hold.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail-h5">On Mon, Oct 17, 2016 at 5:28 PM, Patricio Palma C. <span dir="ltr"><<a href="mailto:patriciop@gmail.com" target="_blank">patriciop@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail-h5">Hi experts, does anybody has any idea of what could causing the issue described in the previous email? <div>Recently I have noted that something similar occurs on 3D structures when zooming in extremely to the structure and then rotating it. It appears a kind of pattern to generate the shadow of the face but as you rotate the structure the face begin to get noisy.<span></span><div><br></div>My current setup is VTK git development branch using OpenGL2 as rendering backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 and the results are the same.<div><br></div><div>Thanks!</div><div>Regards </div><div>Patricio <br><div><div><div><br>El Monday, October 3, 2016, Patricio Palma C. <<a href="mailto:patriciop@gmail.com" target="_blank">patriciop@gmail.com</a>> escribió:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small">Dear Experts</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I have an application that display a 2D structure and some data on it. After zooming in a couple times in the same spot of the structure it begins to appear some noise over the 2D structure that increase after continuing zooming in.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Is this a known issue? is there a way to solve/avoid this?</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">I've attached some pictures showing how the noise appears while zooming in. </div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><img src="cid:ii_1578c199a013ae66" alt="Inline image 2" width="153" height="139"></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><img src="cid:ii_1578c19e566e43fc" alt="Inline image 3" width="143" height="140"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><img src="cid:ii_1578c1a6ba3cf124" alt="Inline image 5" width="142" height="156" style="margin-right:0px"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><img src="cid:ii_1578c1abf0c55f9b" alt="Inline image 6" width="116" height="151" style="margin-right:0px"><span class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail-m_-7306438068371275477HOEnZb"><font color="#888888"><br></font></span></div><span class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail-m_-7306438068371275477HOEnZb"><font color="#888888"><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div>-- <br><div><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:16.3636px">Patricio Palma Contreras</span></font></div></div>
</font></span></div><span class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail-m_-7306438068371275477HOEnZb"><font color="#888888">
</font></span></blockquote></div></div></div></div></div><span class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail-m_-7306438068371275477HOEnZb"><font color="#888888"><br><br>-- <br><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:16.3636px">Patricio Palma Contreras</span></font></div><br>
</font></span><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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br></blockquote></div><span class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail-HOEnZb"><font color="#888888"><br><br clear="all"><span class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail-m_-7306438068371275477gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</font></span></font></span></div><span class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050m_-8081856273683378689gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:16.3636px">Patricio Palma Contreras</span></font></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><span class="m_6178777709865141605HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_6178777709865141605m_-7085825004043166661m_2883154985765466050gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</font></span></div><span class="m_6178777709865141605HOEnZb"><font color="#888888">
</font></span></div></div></blockquote></div><span class="m_6178777709865141605HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_6178777709865141605m_-7085825004043166661gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:16.3636360168457px">Patricio Palma Contreras</span></font></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_6178777709865141605gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:16.3636360168457px">Patricio Palma Contreras</span></font></div></div>
</div>