DiscussionsIssue archiveOCCT:Visualization

Archived issue #0025350

Visualization - provide a dpi-scaling ratio for V3d_View

CommunityOCCT:Visualizationclosed1 public note

Search issues

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...

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.

01Commenter 2
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.

Related records