Post

Replies

Boosts

Views

Activity

Reply to How to visualize a point cloud in RealityKit on visionOS?
I attempted to use a LowLevelMesh and I referenced this sample.. I tried to change the .topology of the LowLevelMesh.Partin the initializeMeshParts function to .point. Referencing the documentation for MTLPrimitiveType.point states that "The vertex shader must provide [[point_size]], or the point size is undefined." However, in this sample, the vertex shader function is not defined. What would be the best way to implement this simply?
Topic: Spatial Computing SubTopic: General Tags:
1w
Reply to Using a WKWebView inside RealityView attachment causes crashes.
Not sure what is different, but I can now interact with it: struct ImmersiveView: View { @Environment(AppModel.self) private var appModel var body: some View { RealityView { content, attachments in let anchor = AnchorEntity(AnchoringComponent.Target.head) if let sceneAttachment = attachments.entity(for: "test") { sceneAttachment.position = SIMD3<Float>(0,0,-3.5) anchor.addChild(sceneAttachment) } content.add(anchor) } attachments: { Attachment(id: "test") { WebViewWrapper(webView: WKWebView()) } } } } @MainActor @Observable class AppModel { let immersiveSpaceID = "ImmersiveSpace" enum ImmersiveSpaceState { case closed case inTransition case open } var immersiveSpaceState = ImmersiveSpaceState.closed } struct WebViewWrapper: UIViewRepresentable { let webView: WKWebView func makeUIView(context: Context) -> WKWebView { let url = URL(string: "http://apple.com") webView.load(URLRequest(url: url!)) return webView } func updateUIView(_ uiView: WKWebView, context: Context) { } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’25