Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisionOS: 在ImmersiveSpace中渲染基于Metal的VR视频 #706

Open
Vertroid opened this issue Dec 28, 2023 · 3 comments
Open

VisionOS: 在ImmersiveSpace中渲染基于Metal的VR视频 #706

Vertroid opened this issue Dec 28, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Vertroid
Copy link

Vertroid commented Dec 28, 2023

您好,这边算是Swift和visionOS的初学者,目前正在尝试了解KSMEPlayer相关的实现。
想了解下如果我这边想尝试直接在ImmersiveSpace中渲染Sphere或Box,这个模块应该朝着什么方向去修改呢?目前是没法直接显示,不知道是不是KSVideoPlayer本身封装成UIView的原因

@Vertroid Vertroid added the enhancement New feature or request label Dec 28, 2023
@Vertroid Vertroid changed the title 在ImmersiveSpace中渲染基于Metal的VR视频 VisionOS: 在ImmersiveSpace中渲染基于Metal的VR视频 Dec 28, 2023
@kingslay
Copy link
Owner

我这个项目是支持sphere和box的。 需要你对KSOptions进行设置。但是我没有在ImmersiveSpace上试过。不知道效果如何。

public enum DisplayEnum {
    case plane
    // swiftlint:disable identifier_name
    case vr
    // swiftlint:enable identifier_name
    case vrBox
}

@Vertroid
Copy link
Author

Vertroid commented Dec 29, 2023

好的,这些选项我也都大致了解过了,目前我只是简单粗暴把KSVideoPlayer放到了CompositorLayer里面(KSOptions里面先配置了KSMEPlayer,VR之类的设置),但是只有黑屏,不知道能不能单独拿出里面的Renderer

@kingslay
Copy link
Owner

你可以试下我的app,应该是不会黑屏的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants