2

I'd like to utilise the HDR display on OLED iPhone's for my apps to display vibrant colors like I've seen is possible in the iOS game 'FROST'. To be extra clear: I'm not looking for HDR support for video playback or camera capture.

UIColor has a lot of options like sRGB, P3 and Hue, Saturation and Brightness. I can't seem to figure out how to do HDR colors though.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
denniswave
  • 127
  • 6

1 Answers1

2

My guess is that the game you're talking about uses SceneKit, where you just set this property on the "camera" object:

https://developer.apple.com/documentation/scenekit/scncamera/1644101-wantshdr

Otherwise HDR is just a way of encoding info into photos / videos and the iPhone X screen is a more vivid way of displaying that info.

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • Presumably you could use Metal to apply your own HDR effects to an image, but you'd probably need to look for a third-party library to help you with that. – matt May 08 '19 at 15:44