[vtkusers] HiDPI Support for vtkRenderWindow
Max-Heinrich Laves
maxheinrich1988 at gmail.com
Wed Feb 24 17:07:47 EST 2016
Hello List,
I am using VTK 7.0 on OS X 10.11 on a MacBook Pro with HiDPI resolution (Retina). When creating a vtkRenderWindow, everything looks blurry and pixelated due to hidpi upscaling. However, I saw screenshots of users with full retina support (e.g. http://stackoverflow.com/questions/22441782/vtk-camera-pose-from-opencvs-estimated-pose-from-solvepnp ). I compiled VTK with the following CMake command:
cmake -G "Unix Makefiles" -DVTK_USE_COCOA:BOOL=ON -DCMAKE_INSTALL_PREFIX=/opt/vtk -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_PREFIX_PATH:PATH=/Users/max/Qt/5.5/clang_64/ -DVTK_USE_SYSTEM_ZLIB:BOOL=ON -DVTK_Group_Qt:BOOL=ON -DVTK_QT_VERSION:STRING=5 ..
How can I get VTK windows with HiDPI support? I couldn’t figure it out, but it’s obviously possible.
Thanks in advance!
Max
More information about the vtkusers
mailing list