Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#32409] HiDPI (retina) support

Date:
2012-08-25 22:22
Priority:
3
State:
Closed
Submitted by:
Alexander Chehovsky (madfish)
Assigned to:
jens verwiebe (jensverwiebe)
Category:
OS related: OSX
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
HiDPI (retina) support
Detailed description
Blender looks pixelated (low-res) on retina MacBook Pro (see attached screenshot).

What is necessary to fix this:

Should be added to Info.plist:
<key>NSPrincipalClass</key>
<string>NSApplication</string>

NSView that is used for OpenGL rendering should specifically opt-in for high-res, like this:
[view setWantsBestResolutionOpenGLSurface:YES];

Set viewport to the actual backing buffer resolution, NSView's convertRectToBacking can be used to handle this.
Text rendering should be aware of increased backing resolution.
Last step - provide 2x images for UI, select correct one in runtime.

Followup

Message
  • Date: 2012-09-19 11:17
  • Sender: jens verwiebe
  • The plist keys are added since a while.
    This should help all non-GL and text to be sharp on retina now.
    Unfortunately no one reported back.
    I made same for Luxrender ( also w/o updated icons atm ) and it is a huge improovement already.

    Jens
  • Date: 2012-09-19 11:19
  • Sender: jens verwiebe
  • P.S.: Full retina support is planned for 2.65

    Jens
  • Date: 2012-09-19 23:02
  • Sender: Alexander Chehovsky
  • The only difference in 2.64RC seems to be non-pixelated window caption, but the window content is exactly as it was before.
  • Date: 2012-09-24 19:13
  • Sender: Thomas Dinges
  • Jens, can you please re-check here?
  • Date: 2012-09-28 03:22
  • Sender: Campbell Barton
  • Could someone upload a patch? where to add "[view setWantsBestResolutionOpenGLSurface:YES];" isnt clear at all.
  • Date: 2012-09-28 04:39
  • Sender: Murphy Randle
  • I'd also love a patch. I figure out a good bit of it today, but I couldn't get the NSOpenGLView to resize correctly.
  • Date: 2012-10-02 12:57
  • Sender: jens verwiebe
  • I was looking last days and think i can provide a patch soon..

    Jens
  • Date: 2012-10-02 21:56
  • Sender: jens verwiebe
  • First patch as far as i understood it, pls try out.
    See attachment.

    Jens
  • Date: 2012-10-04 18:44
  • Sender: Murphy Randle
  • Jens, I just tried applying the patch. I get the blender interface as a tiny subset of the overall window.
    I've attached a screenshot of the result.
  • Date: 2012-10-07 12:48
  • Sender: jens verwiebe
  • Oh yeah ..... :)

    I'am doing blindflight here not having a testmachine.
    I guess would be better someone with a macbook retina starts to move my lines around.
    I think i placed the backbuffer stuff in the wrong place ....

    Jens
  • Date: 2012-10-29 19:56
  • Sender: Maui Postma
  • Hi,

    Just wondering if there has been any progress on this issue and if it's still a target for 2.65? (can't seem to find it on the projects page)

    Thank you
  • Date: 2012-10-29 23:32
  • Sender: jens verwiebe
  • Ton has a retina book now, guess he can make things right out of the patch soon ...

    Jens
  • Date: 2012-10-30 07:02
  • Sender: Maui Postma
  • Thank you Jens, looking forward to it!
 

Attached Files:

Name Date Download
Screen Shot 2012-08-25 at 10.21.36 PM.png 2012-08-25 22:22 Download
retina2.patch 2012-10-02 21:56 Download
RetinaPatchResult.png 2012-10-04 18:44 Download

Changes:

Field Old Value Date By
StatusNew2012-12-14 23:02blendix
status_idOpen2012-12-14 23:02blendix
close_dateNone2012-12-14 23:02blendix
File Added22262: RetinaPatchResult.png2012-10-04 18:44murphyspublic
File Added22239: retina2.patch2012-10-02 21:56jensverwiebe
assigned_tonone2012-08-26 15:33dingto
File Added21821: Screen Shot 2012-08-25 at 10.21.36 PM.png2012-08-25 22:22madfish