1 Reply
      Latest reply on Oct 17, 2018 7:29 AM by ubicolor
      purnachandarr Level 1 Level 1 (0 points)

        iPhone devices able to load 3d Model but textures are missing in iOS12.

        I am using ARKit - iOS12 -  Using below code:

        let documents = try? FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)

                if let myurl =   documents?.appendingPathComponent("product.scnassets/Teapot/Teapot.usdz"){

                    print("Path \(myurl)")

                    if let scene = try? SCNScene(url: myurl, options: nil) {

                        //scene.rootNode.scale = SCNVector3(0.01, 0.01, 0.01)

                        sceneView.scene = scene

                    }

                }

         

         

        In the above code is running Simulators as expected, In iPhoneDevice able to load 3d Model but textures are missing.