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

Web端的相机ClearFlags设置为DONT CLEAR或DEPTH ONLY,画面都会被强制清屏 #18088

Open
9 of 17 tasks
GengineJS opened this issue Dec 27, 2024 · 0 comments
Open
9 of 17 tasks
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@GengineJS
Copy link
Contributor

Cocos Creator version

3.x

System information

所有WebGL相关平台

Issue description

如下图,设置为了DONT_CLEAR或DEPTH_ONLY:
image

但是预览之后相机还是会被每帧清屏,下图是运动的物体:

image

image

理论上是会产生重影的,类似这样:

企业微信截图_38b84af3-2f55-4cb5-a7bc-8ce60be8ea56

抓帧之类的是没什么问题的,后面发现是preserveDrawingBuffer设置为false了,设置为true是能重现DONT_CLEAR的效果的。

image

引擎对这个属性是有注释的,说是为了性能:

企业微信截图_9ad46123-45a1-4022-aa0e-b7e2acce728c

是否需要重新为preserveDrawingBuffer设置为true?

【必填】测试环境

  • Android
  • iOS
  • HarmonyOS Next
  • Web / WebView
  • 微信 小游戏
  • OPPO 小游戏
  • vivo 小游戏
  • 华为 快游戏
  • 小米 快游戏
  • 字节 小游戏
  • 淘宝 小程序创意互动
  • 淘宝 小游戏
  • 支付宝 小游戏
  • 咪咕
  • Windows
  • Mac
  • Google Play

Relevant error log output

No response

Steps to reproduce

看描述

Minimal reproduction project

No response

@GengineJS GengineJS added Bug Needs Triage Needs to be assigned by the team labels Dec 27, 2024
@GengineJS GengineJS self-assigned this Dec 27, 2024
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

1 participant