Post

Replies

Boosts

Views

Activity

Comment on Cannot extract imagePair from generated Spatial Photos
Another possible aspect about this issue is that I use PHCachingImageManager()/PHImageManager.default() to retrieve/request this photo. And this photo was previously a 2D photo. Is it possible that this manager caches this photo somewhere (OS level) and I may not yet request the correct converted 3D asset? If so, how to force refreshing the cache then?
Topic: Spatial Computing SubTopic: General Tags:
May ’25
Comment on How to extracted stereo image pair from generated spatial photos by visionOS 2.0
hiiiii I am using your method to findout leftindex and rightindex here. But this function failed at Check for any groups. It's working for native Spatial Photos, but not for generated photos. The only difference between me and kevin_wang is, hes using imagePicker to fetch imageItem but me using PHImageManager.default().requestImageDataAndOrientation to request imageSource. Would that make any difference?
Topic: Spatial Computing SubTopic: General Tags:
May ’25
Comment on App crashes after requesting PhotoLibrary limited access
Thanks for the reply! I actually figure out what happens here. As the debugger said: 'Presentations are not permitted within volumetric window scenes.' When I ask for PH permissions, I also open an immersiveSpace, therefore I have two scenes both open. I know that volumetric view won't display system pop out sheet (simply it cannot), and nor does an immersiveSpace. Volumetric window scenes also includes ImmersiveSpace for sure.
Topic: Spatial Computing SubTopic: General Tags:
Jan ’25
Comment on App crashes after requesting PhotoLibrary limited access
I believe that when two scenes open, visionOS randomly (or some mechanism in black box) picks a "main view" as a "window carrier" to pop out PH picker. I just don't know how to set the .plain Window as main scene when two scenes open. So I choose to openImmersiveSpace after permission granted, problem solved. But still, can you elaborates more on the mechanism here? About how visionOS system selects the carrier.
Topic: Spatial Computing SubTopic: General Tags:
Jan ’25
Comment on Post Notification to RCP but Timeline won't fire
I feel like it's more of the issue of AnimationLibraryComponent, I switch the onNotification to onTap trigger on BehaviorComponent, it behaves just like onNotification trigger, not working. Then I found that there is actually missing AnimationLibrary component on my target entity (the one with BehaviorComponent, let's call it entityA). I found that when I add AnimationLibraryComponent on it, the timeline animations in the scene don't add themselves into the AnimationLibraryComponent.
Sep ’24
Comment on Implementing a bouncing surface
The weird thing is, when the ball moves towards the block(wall) directly with linearVelocity's direction almost equaling to the wall's normal's direction. The ball then stopped immediately like it sticks to the wall. Seems like the momentum has completely transferred to the wall. (But I locked the movement of the wall so the wall won't move)
Topic: Graphics & Games SubTopic: RealityKit Tags:
Jul ’24
Comment on Implementing a bouncing surface
I tried to replace Qiu with code-generated ModelEntity, I would say...its probably work? As the simulation result is quite confusing. All I need to do is to let the invisible block not "consume" any of the momentum there. All the speed damping process should only be determined by Qiu's property.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Jul ’24