ejeinc / MetalScope

Metal-backed 360° panorama view for iOS
MIT License
324 stars 72 forks source link

Google Cardboard optimizations? #26

Closed stursby closed 7 years ago

stursby commented 7 years ago

First off, great lib here!

So, I've got a stereo image demo running on an iPhone 7 with a Google Cardboard and it's looking pretty good, but a tad fuzzy/blurry. I was just curious if there were any settings or optimizations I could play with... Also, I tried loading my own equirectangular image in there, which didn't work so I stacked two of them on top of each other in Photoshop, but still not quite right. So I was wondering if you had any tips for creating assets for this lib.

Any thoughts would be much appreciated, thanks!

junpluse commented 7 years ago

Hi @stursby

Thanks for your feedback, and sorry for the late reply 🙇

For best quality:

If your own image is mono, edit line 45 in Examples/StereoImage/Sources/ViewController.swift:

// from
panoramaView.load(#imageLiteral(resourceName: "Sample"), format: .stereoOverUnder)
// to 
panoramaView.load(#imageLiteral(resourceName: "YOUR_IMAGE_NAME"), format: .mono)

If 4096 pixels are still not enough for you, unfortunately we can not achieve further quality at this time.

stursby commented 7 years ago

@junpluse Ok, thanks!