Post

Replies

Boosts

Views

Activity

Comment on HelloWorld example: How to make the globe in immersive space interactable?
I think my biggest problem is that the existing DragRotationModifier rotates the entire RealityView around the world origin. If it would rotate around the local axis of the globe, it would work as I would expect it. But I cannot figure out how to do that. Basically, I would have to apply the "rotation3DEffect" the modifier sets on the RealityView's content on the entity of the globe instead, which is a child of the content.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’24
Comment on HelloWorld example: How to make the globe in immersive space interactable?
Tried it out, but didn't work as I expected. I tried this code: .gesture(RotateGesture().targetedToAnyEntity().onChanged({ value in guard let angle = earthEntity?.transform.rotation.angle else { return } earthEntity?.transform.rotation = simd_quatf(Rotation3D(angle: Angle2D(radians: value.rotation.radians), axis: .y)) })) but it starts the rotation at 0. If I try to add the current rotation of the earth in radians instead, the globe rotates weirdly.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’24
Comment on visionOS: How to debug Safari / WkWebView?
Thanks, I found this property in the meantime. I think this should be mentioned on this page: https://developer.apple.com/documentation/safari-developer-tools/inspecting-visionos The way I read this, it's enough to run you app in the simulator. But even if you try to debug Safari, it will not work. Setting the isInspectable flag worked, though.
Topic: Safari & Web SubTopic: General Tags:
Feb ’24
Comment on Grab frames in Vision Pro using ARFrame
It's a pity that camera access is not possible. We definitely need this in our app.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Mar ’24
Comment on How to know when an app or WindowGroup is in the background?
Is there a particular reason why I can't follow these feedback link? I always get the message: "Feedback not found."
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Comment on Spatial Keyboard Position
That would be fine, if it would not have the tendency to lay itself just over the input field. At least in the simulator. Don't have any experience with a real device yet.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’24
Comment on Getting WeatherKit error WeatherDaemon.WDSJWTAuthenticatorService.Errors
Ok, the entry on the second tab "App Services" was missing in my case. This is completely counterintuitive. Thanks for pointing this out!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’24
Comment on How to use drag gestures on objects with inverted normals?
Thanks for the hint to the other discussion. I think it would be an important addition, since I can imagine a lot of use-cases where the user is standing inside an immersive sphere and wants to interact with something.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on In Real Time Panoramic View on Apple Vision Pro
Great. That works fine for video consumption. But how can I make this work for interactive UIs, like SwiftUI or an interactable map?
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on HelloWorld example: How to make the globe in immersive space interactable?
I think my biggest problem is that the existing DragRotationModifier rotates the entire RealityView around the world origin. If it would rotate around the local axis of the globe, it would work as I would expect it. But I cannot figure out how to do that. Basically, I would have to apply the "rotation3DEffect" the modifier sets on the RealityView's content on the entity of the globe instead, which is a child of the content.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on HelloWorld example: How to make the globe in immersive space interactable?
I also would like to use the drag gesture instead, like it is in the DragRotationModifier of the sample. But I can't get this modifier adapted so it rotates the sphere locally and not globally, which only works if the pivot point is at [0,0,0]. Is there any tutorials out there how to work with this 3D stuff?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on HelloWorld example: How to make the globe in immersive space interactable?
Tried it out, but didn't work as I expected. I tried this code: .gesture(RotateGesture().targetedToAnyEntity().onChanged({ value in guard let angle = earthEntity?.transform.rotation.angle else { return } earthEntity?.transform.rotation = simd_quatf(Rotation3D(angle: Angle2D(radians: value.rotation.radians), axis: .y)) })) but it starts the rotation at 0. If I try to add the current rotation of the earth in radians instead, the globe rotates weirdly.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on HelloWorld example: How to make the globe in immersive space interactable?
Awesome, will try this out!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on Gloves assets from wwdc2023-10111
I am confused. This is definitely a development related questions. I'd like to use these gloves in our app as well.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on visionOS: How to debug Safari / WkWebView?
Thanks, I found this property in the meantime. I think this should be mentioned on this page: https://developer.apple.com/documentation/safari-developer-tools/inspecting-visionos The way I read this, it's enough to run you app in the simulator. But even if you try to debug Safari, it will not work. Setting the isInspectable flag worked, though.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on Vision Pro prescription lenses: How to get them from abroad?
This is not about a device intended to be used by a consumer. It's about getting a developer device to another location.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on visionOS: Moving window with a Map causes app to freeze
That was my first assumption as well. I double checked and could not find any code that might interfere. I'm wondering if this is caused by the map tile downloads? However, it even happens if you do not touch really move the map.
Replies
Boosts
Views
Activity
Feb ’24
Comment on Using WKWebKit and Safari on visionOS
This one: https://marblever.se
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’24