Archived issue #0025350
Visualization - provide a dpi-scaling ratio for V3d_View
Description
see: http://dev.opencascade.org/index.php?q=node/1002
Currently, Visualization layer in OCCT is currently dpi-unaware.
This is a concern for for Retina displays on OS X, Windows (see also APIs introduced in Windows 8.1) and Android as well.
Right now, an OCCT visualization on a mac book pro ( or the other platforms mentioned above ) do not provide hi-resolution OpenGL windows on hardware that supports these features.
providing a global dpi-scaling in V3d_View would be a very welcome addition.
this way, the application can react on events ( such as you mention moving from a hi-dpi to a conventional monitor ) and it would serve as a logical API call to manage hi-dpi resolution on any platform...
Currently, Visualization layer in OCCT is currently dpi-unaware.
This is a concern for for Retina displays on OS X, Windows (see also APIs introduced in Windows 8.1) and Android as well.
Right now, an OCCT visualization on a mac book pro ( or the other platforms mentioned above ) do not provide hi-resolution OpenGL windows on hardware that supports these features.
providing a global dpi-scaling in V3d_View would be a very welcome addition.
this way, the application can react on events ( such as you mention moving from a hi-dpi to a conventional monitor ) and it would serve as a logical API call to manage hi-dpi resolution on any platform...
Additional information
on Cocoa_Window's NSVIew, the setWantsBestResolutionOpenGLSurface method should be called for hi-resolution rendering, if supported by the hardware. however, as the discussion on the forum outlines, providing hi-dpi support is more involved.
Public activity
1 archived note
Participants are labeled by their role within this record.
Dear Commenter 1,
please close this issue.
The patch for #0026298 introduced per-view resolution factor (as Graphic3d_RenderingParams::Resolution parameter) which can be used to display correctly fixed-size elements on HiDPI screens.
please close this issue.
The patch for #0026298 introduced per-view resolution factor (as Graphic3d_RenderingParams::Resolution parameter) which can be used to display correctly fixed-size elements on HiDPI screens.
Related records
- #0026790 · parent of · closedVisualization, TKOpenGl - apply view resolution to the line width in OpenGl_Context::SetLineWidth()
- #0026791 · parent of · assignedVisualization, TKOpenGl - apply view resolution to built-in markers
- #0026298 · related to · closedVisualization, OpenGl_Text - make font resolution configurable
- #0025146 · child of · closedPorting to Android