iPadLIDARScanExport icon indicating copy to clipboard operation
iPadLIDARScanExport copied to clipboard

Any way to apply texture to the 3D model?

Open jaswant-iotric opened this issue 3 years ago • 3 comments

jaswant-iotric avatar Feb 06 '22 20:02 jaswant-iotric

Yes, try below code for export texture to the 3D model

`let documentDirURL = try! FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)

    // let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
    //let documentsDirectory = paths[0]
    let filename = documentDirURL.appendingPathComponent("3d_Model.usdz")

    self.sceneModel.write(to: filename, options: nil, delegate: nil, progressHandler: nil)



    let activityController = UIActivityViewController(activityItems: [filename], applicationActivities: nil)
    // activityController.popoverPresentationController?.sourceView = sender
    self.present(activityController, animated: true, completion: nil)`

infocodiste avatar Jun 03 '22 08:06 infocodiste

No, this doesnt work!

jaswant-iotric avatar Jun 09 '22 04:06 jaswant-iotric

did you find anything? @jaswant-iotric

TannazParsa avatar Jul 02 '23 15:07 TannazParsa