Post

Replies

Boosts

Views

Activity

Reply to How to move a camera in immersive space and render its output on 2D window using RealityKit
Thanks for your reply and code snippet! An entity can only have a single parent. Anytime you add an entity to another entity, it is removed from its parent. Oh, I see. That's why the entity disappeared from immersive space when I added it to RealityRenderer. (Also found this doc indicating this) Cloning the entity is a reasonable solution Let me ask one more question. Although cloning the entity can achieve my use case, but it means that I have to manage and update states of those two sets of entities. Do you have a plan to make this use case easier, something like let RealityRenderer just refer to the given entity?
Topic: Spatial Computing SubTopic: General Tags:
Feb ’25
Reply to How to move a camera in immersive space and render its output on 2D window using RealityKit
Hello @radicalappdev, thanks for your reply. it seemed that the only answer was to move the world around the user, instead of moving the user around the world. I understand that this is a way to move in space in visionOS, but what I'm trying to do is not to move main camera. I want to render texture on 2D window from a camera moving or fixed in space, and main camera stay in its position. e.g. Fly a drone in space and render its camera view (See the movie in my sample code) In the following thread, the answer says that RealityRenderer can render its scene to MTLTexture, and finally can be displayed on 2D window. https://developer.apple.com/forums/thread/762238?answerId=801164022#801164022 So I think this approach can help me to achieve my goal, and I was able to do it to some extent, except for that I need to clone entities for RealityRenderer.
Topic: Spatial Computing SubTopic: General Tags:
Feb ’25