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

多摄像机在原生环境下会黑屏的一种情况 #16862

Open
a1076559139 opened this issue Apr 3, 2024 · 1 comment
Open

多摄像机在原生环境下会黑屏的一种情况 #16862

a1076559139 opened this issue Apr 3, 2024 · 1 comment
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@a1076559139
Copy link

a1076559139 commented Apr 3, 2024

Cocos Creator version

3.8.2

System information

IOS and Android

Issue description

场景中有两个相机(都被添加为常驻节点)

有一个相机不负责渲染,只是为了清空颜色、深度与模板缓冲。
D-Chat_20240403185134

另一个相机负责渲染UI
D-Chat_20240403185145

这样做的目的是为了,某些UI中如果使用相机的话,不用费心去维护到底自己的相机是不是第一个渲染的(因为第一个相机最好把clearFlags设置为SOLID_COLOR,而如果不是第一个相机则几乎一定不能设置为SOLID_COLOR)

这样做之后,在原生环境会黑屏,无法显示任何UI,也没有报错

Relevant error log output

No response

Steps to reproduce

测试项目地址

Minimal reproduction project

No response

@a1076559139 a1076559139 added Bug Needs Triage Needs to be assigned by the team labels Apr 3, 2024
@a1076559139
Copy link
Author

后面继续测试发现,原生环境多Camera表现与Web/小游戏不一致。
Web/小游戏正常,原生却会出现黑屏、画面残留等情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

2 participants