Wings 3D Development Forum
Retina display support - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Programming (https://www.wings3d.com/forum/forumdisplay.php?fid=7)
+--- Thread: Retina display support (/showthread.php?tid=1999)



Retina display support - alelepd - 06-13-2016

Hello there,

It is possible to give retina display support to Wings 3d? I have been digging around the code without any success.

In theory, we should be able to get the window size within a pixelRatio of the native screen or somehow duplicate the current pixel ratio.

This is probably related to wxGLCanvas or wxWindow. Does anyone have a clue on how and where to implement this feature (maybe wings_wm.erl)?


RE: Retina display support - dgud - 06-13-2016

I don't have a retina display so I have not looked at that.

There have been a lot of talk about it in the wxWidgets mailinglist, so try and google it and see how to do it in C++ first?


RE: Retina display support - alelepd - 06-14-2016

Yeah, I learned that there is a wxWidget class to get the pixel ratio of the screen, it is called scaleFactor in wxWidget terminology. Retina screens (hpdi) have a scale factor of 2.

Of course, the real problem is how to render everything in 2x for these screens.

Some parts of the app works fine in retina screen (eg the preferences windows). But everything inside the 3d editor looks blurred so I guess that I should find a way to render that in twice the resolution.

If you where to render the 3d editor in twice the resolution it has, how would be your approach?