Post

Replies

Boosts

Views

Activity

visionOS plane anchor rotation and wall direction are inconsistent
I have a problem with the wall plane detection using visionOS/ARKit: I am using ARKitSession's PlaneDetectionProvider detection.wall in the space of visionOS. I recorded the position and rotation information of the first detected plane, but found that the rotation value will be facing when the user starts the space. There is a deviation in different directions. That is to say, even if the plane is located on the same wall, the rotation quaternion will be different. I hope that no matter from which direction the user enters the scan, the real direction of the wall can be correctly obtained so that the virtual content can be accurately aligned with the wall. I have tried to use anchor.originFromAnchorTransform or Transform.rotation directly, but the rotation value is still affected by the user's initial orientation. In addition, I would like to know whether the user's initial orientation will affect the location information. If so, please provide a solution. Thank you!
1
0
490
Sep ’25
visionOS Widget Bug
When I was developing the visionOS 26beta Widget, I found that it could not work normally when the real vision OS was running, and an error would appear. Please adopt container background api It is worth mentioning that this problem does not occur on the visionOS virtual machine. Does anyone know what the reason and solution are, or whether this is a visionOS error that needs Feedback? Thank you!
1
0
396
Sep ’25
visionOS SwiftUI rounded square button
I'm writing a visionOS App using SwiftUI language, in which I wrote a button with the following code: import SwiftUI Button(action: { openWindow(id: landmark.windowTag) }) { VStack { Image(landmark.imageName) .resizable() .aspectRatio(contentMode: .fill) .clipShape(RoundedRectangle(cornerRadius: 10)) .frame(width: 150, height: 150) VStack(alignment: .leading){ Text(landmark.name) .font(.title) .foregroundColor(.white) Text(landmark.describe) .font(.subheadline) .foregroundColor(.gray) } } .frame(width: 200, height: 400) .padding() .clipShape(RoundedRectangle(cornerRadius: 20)) } .padding(20) My idea is that the border of the button is a rounded square (note that I'm not talking about the picture is a rounded square, but the border of the button is a rounded square), but the default button border of visionOS is oval, so I added the following code: .clipShape(RoundedRectangle(cornerRadius: 20)) But there is no change in operation, and the border of the button has not become a rounded square. It is still the default oval of visionOS. How can I modify the code?
1
0
2.3k
Aug ’23