Post

Replies

Boosts

Views

Activity

merge room with WorldMap
I'm trying to merge room with WorldMap: but my screen goes black when doing a scan, First: i load world map arWorldTrackingConfig.initialWorldMap = worldMap //arWorldTrackingConfig.planeDetection = [.horizontal, .vertical] arSession.run(arWorldTrackingConfig) if #available(iOS 17.0, *) { roomCaptureView = RoomCaptureView(frame: view.bounds, arSession: arSession) } else{ roomCaptureView = RoomCaptureView(frame: view.bounds) } roomCaptureView = RoomCaptureView(frame: view.bounds) roomCaptureView.captureSession.delegate = self roomCaptureView.delegate = self view.insertSubview(roomCaptureView, at: 0) and save when scan done: roomCaptureView?.captureSession.arSession.getCurrentWorldMap { worldMapData, error in if let error = error { return } if let worldMap = worldMapData { let fileURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent("worldMapData") do { let data = try NSKeyedArchiver.archivedData(withRootObject: worldMap, requiringSecureCoding: true) try data.write(to: fileURL) } catch { print("error ARWorldMap: \(error.localizedDescription)") } } } the first scan is fine, but the next time, when the worldMap is saved and loaded, my screen goes black, does anyone have a solution or sample code?? -thank-
0
1
552
Jul ’23
how get file gltF in RoomCaptureView
RoomCaptureView can export data to USDZ file, but i need file output is gltF, any sulution,
Replies
0
Boosts
0
Views
658
Activity
Feb ’23
how know position of wall in 2D
The position of the wall is represented by transform: simd_float4x4, how a know start point and end point of wall
Replies
0
Boosts
0
Views
894
Activity
Mar ’23
example app with MultiRoom
i want to test MultiRoom, but i can't make it, can someone give me solution or example app
Replies
0
Boosts
0
Views
582
Activity
Jun ’23
MultiRoom capture with loading ARWorldMap not work
im try load ARWorldMap roomCaptureView?.captureSession.arSession.run(arWorldTrackingConfig, options: []), but when i load ARWorldMap, RoomPlan not work, the screen goes black, and nothing is displayed, Does anyone know the cause and solution?
Replies
1
Boosts
0
Views
908
Activity
Jul ’23
merge room with WorldMap
I'm trying to merge room with WorldMap: but my screen goes black when doing a scan, First: i load world map arWorldTrackingConfig.initialWorldMap = worldMap //arWorldTrackingConfig.planeDetection = [.horizontal, .vertical] arSession.run(arWorldTrackingConfig) if #available(iOS 17.0, *) { roomCaptureView = RoomCaptureView(frame: view.bounds, arSession: arSession) } else{ roomCaptureView = RoomCaptureView(frame: view.bounds) } roomCaptureView = RoomCaptureView(frame: view.bounds) roomCaptureView.captureSession.delegate = self roomCaptureView.delegate = self view.insertSubview(roomCaptureView, at: 0) and save when scan done: roomCaptureView?.captureSession.arSession.getCurrentWorldMap { worldMapData, error in if let error = error { return } if let worldMap = worldMapData { let fileURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent("worldMapData") do { let data = try NSKeyedArchiver.archivedData(withRootObject: worldMap, requiringSecureCoding: true) try data.write(to: fileURL) } catch { print("error ARWorldMap: \(error.localizedDescription)") } } } the first scan is fine, but the next time, when the worldMap is saved and loaded, my screen goes black, does anyone have a solution or sample code?? -thank-
Replies
0
Boosts
1
Views
552
Activity
Jul ’23