I have same behavior - extra space(distance) from the wall when scene have two cubes - also for *.reality files exported in Reality Composer and viewed in AR QuickLook on device.
Post
Replies
Boosts
Views
Activity
Hi!
FB9864633
For AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera , .builtInWideAngleCamera, .builtInUltraWideCamera ], mediaType: .video, position: self.camera)
minAvailableVideoZoomFactor is 1.0
OOPer , thank you for your help!
I runed code in blank test iOS app and see in console
2021-02-27 13:15:29.587193+0300 TestApp[2104:187450] [Unknown process name] CGBitmapContextCreate: invalid data bytes/row: should be at least 2244 for 8 integer bits/component, 3 components, kCGImageAlphaPremultipliedFirst.
nil
So my mistake is use bytesPerRow: 2240 as constant, but increase width. In my original playground I use bytesPerRow from old image, but only increase image(context)size for new image.
Correct using CGContext with data = nil, you can pass bytesPerRow: 0 for auto calc.
It's sorry of course that Playground don't show all message in console like simulator.
OOPer , thank you for your results.
I upgraded Xcode to 12.4, but no luck.
With params 560 - not nil, with 561 - nil.
My system configuration is
MacBook Air (Retina, 13-inch, 2020), 16GB RAM, i5
macOS Catalina 10.15.7 (19H524)
Xcode Version 12.4 (12D4e)
Also I tried set env variables CGBITMAP_CONTEXT_LOG_ERRORS, CG_CONTEXT_SHOW_BACKTRACE, but I don't have additional info in console.
Eric, ❤️ for Bryce and Metasynth