<div dir="ltr"><div><div>My apologies (again): Looks like we were previously on version 6.2, and not 6.3 as I originally thought. I see that there were a few DPI-related changes in version 6.3, so I'm investigating those now. I'll report back as soon as I have a conclusion.<br><br></div>Thank you and sorry for the noise,<br><br></div>Tiago Nobrega<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 23, 2016 at 8:27 AM, Tiago Nobrega <span dir="ltr"><<a href="mailto:tigarmo@gmail.com" target="_blank">tigarmo@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><div>Hello,<br><br></div>I apologize for not reading the guidelines properly and submitting an issue on Gitlab before trying the mailing list. Here's my issue:<br><br>We are in the process of updating VTK from 6.3 to 7.0 and some of our tests are failing because text actors are being rendered differently. This usually happens when we update the library (minor differences are to be expected) but in this particular case it looks like a regression.<br><br>The following code (python):<br><br></div>```python<br>import vtk<br><br>ren1 = vtk.vtkRenderer()<br>renWin = vtk.vtkRenderWindow()<br>renWin.AddRenderer(ren1)<br>iren = vtk.vtkRenderWindowInteractor(<wbr>)<br>iren.SetRenderWindow(renWin)<br><br>prop_1 = vtk.vtkCaptionActor2D()<br>prop_1.SetCaption('Hello')<br>prop_1.SetAttachmentPoint((-0.<wbr>1, 0.0, 0.0))<br><br>prop_1.GetCaptionTextProperty(<wbr>).Modified()<br><br>ren1.AddActor(prop_1)<br>ren1.SetBackground(0, 0, 0)<br>ren1.GetActiveCamera().<wbr>SetFocalPoint(0,0,0)<br>ren1.GetActiveCamera().<wbr>SetPosition(1,0,0)<br>ren1.GetActiveCamera().<wbr>SetViewUp(0,0,1)<br>ren1.ResetCamera()<br>renWin.SetSize(500, 500)<br><br>iren.Start()<br>```<br><br>... generates two different renderings depending on the version, as shown on the following image: <br><br><a href="http://imgur.com/w8VXM8z" target="_blank">http://imgur.com/w8VXM8z</a><br><br><p>The left side is VTK 6.3, and the right one is 7.0. Both ran on a
Windows 10 machine, but the issue was replicated on our Linux boxes too.
In all cases we're still using the old OpenGL backend and not the new
OpenGL2 one. The behavior in version 6.3 seems more "correct" in the
sense that the text is more fully filling up the rectangle, with the
default scaling mode being to scale to the prop. I've investigated the
commit history for the classes that seem relevant - vtkCaptionActor2D,
vtkTextActor, vtkTextProperty, etc - but nothing stood out as possible
"culprits".</p>
<p>Let me know if you need further info or clarifications. Thanks.</p><span class="HOEnZb"><font color="#888888"><p></p><p>Tiago Nobrega<br></p><br></font></span></div>
</blockquote></div><br></div>