Post

Replies

Boosts

Views

Activity

Reply to How To Load a ModelEntity from a URL?
This involves a few short steps: Storing the assets on a remote server: For this purpose, you'd need to host your assets on a remote server. Halocline (https://www.haloclinetech.com/) offers a unique, dedicated platform for this specific need, and the best part is that it's free! Given my experience with it, I'd recommend checking it out. Fetching the assets in your app: Once you have a URL for your asset, you can use the provided script from Halocline (https://www.haloclinetech.com/learn/) which helps store files from remote URLs in the user’s temporary directory. Using the assets in your app: After fetching the assets, you can incorporate them into your application as if they were locally stored. let halocline = HaloclineHelper() let url = URL(string: "your-halocline-url")! let modelEntity = try await halocline.loadEntity(from: url)
Aug ’23
Reply to How To Rotate A 3D Model - Vision OS
I was able to accomplish this with a DragGesture() instead. I was having difficulties with the RotateGesture3D Model3D(named: "Purse", bundle: realityKitContentBundle){ model in model .resizable() .aspectRatio(contentMode: .fit) } placeholder: { ProgressView() } .rotation3DEffect(rotation, axis: rotationAxis) .gesture( DragGesture() .onChanged { value in // Calculate rotation angle let angle = sqrt(pow(value.translation.width, 2) + pow(value.translation.height, 2)) rotation = Angle(degrees: Double(angle)) // Calculate rotation axis let axisX = -value.translation.height / CGFloat(angle) let axisY = value.translation.width / CGFloat(angle) rotationAxis = (x: axisX, y: axisY, z: 0) } )
Jul ’23
Reply to Using digital crown on Vision Pro Simulator
Am I correct that XCTest is only usable in code testing? If so, how exactly would we simulate this during development? While models from Reality Composer Pro show up, their display is near identical to Mixed. How does one build a skybox or other objects which replace the user's room? Apologies for so many questions. The documentation seems to lack nuance on how to build much beyond making a model show up on a table. ImmersiveSpace(id: "ImmersiveSpace") { ImmersiveView() }.immersionStyle(selection: .constant(.full), in: .full)
Jul ’23