It has been awhile since I looked at RoomPlan. I noticed when I was poking at the CapturedRoom, that there is binary data called coreModel... Does anyone know what this is? Is this related to ModelProvider?
Thanks in advance.
Post
Replies
Boosts
Views
Activity
There are some old answers out there... but is there ARKit, RealityKit, and RoomPlan way to do this?
Thanks in advance.
As my title indicates, I would like to figure out how to run RoomCaptureSession with meshing turned on and also get the captured room data as well.
Here is my vars:
var captureSession: RoomCaptureSession?
var finalResults: CapturedRoom?
var roomCaptureSessionConfig: RoomCaptureSession.Configuration = RoomCaptureSession.Configuration()
My setup:
override func viewDidLoad() {
super.viewDidLoad()
captureSession = RoomCaptureSession()
captureSession?.delegate = self
arView.session = captureSession!.arSession
arView.session.delegate = self
//captureSession?.run(configuration: roomCaptureSessionConfig)
setupCoachingOverlay()
arView.environment.sceneUnderstanding.options = []
// Turn on occlusion from the scene reconstruction's mesh.
arView.environment.sceneUnderstanding.options.insert(.occlusion)
// Turn on physics for the scene reconstruction's mesh.
arView.environment.sceneUnderstanding.options.insert(.physics)
// Display a debug visualization of the mesh.
arView.debugOptions.insert(.showSceneUnderstanding)
// For performance, disable render options that are not required for this app.
arView.renderOptions = [.disablePersonOcclusion, .disableDepthOfField, .disableMotionBlur]
// Manually configure what kind of AR session to run
arView.automaticallyConfigureSession = false
let configuration = ARWorldTrackingConfiguration()
configuration.sceneReconstruction = .mesh
configuration.environmentTexturing = .automatic
arView.session.run(configuration)
captureSession?.run(configuration: roomCaptureSessionConfig)
}
I have the RoomCaptureSessionDelegate setup and can get the captured room but no meshing. Seems to me when I run captureSession, it overrides the arView.session.
Any help will be appreciated.
Thank you.
Hey folks,I have entered "Extras" in the GLTF file and the conversion tool adds following metadata to USDA and USDZ file.#usda 1.0
(
customLayerData = {
string creator = "gltf2usd v0.2.0"
string gltf_extras_alignment = "vertical"
string gltf_extras_test_property = "test_value"
string gltf_generator = "FBX2glTF v0.9.7"
string gltf_version = "2.0"
}
)I have been poking around trying to find out how to extract this customLayerData from USDZ file but I am stuck. Anyone have any luck with stuff like this?Much appreciated!!