Transparent renderers stop rendering when resolution changes
Cocos Creator version
3.8
System information
WebGL 2.0
Issue description
When Post Processing is enabled for the Main Camera, if the Canvas size changes transparent renderers stop rendering.
Relevant error log output
No response
Steps to reproduce
- Create New Project
- Add default particle system in view of the camera
- Enable the Custom Render Pipeline
- Set the CUSTOM_PIPELINE_NAME to Custom
- Attach FXAA to the Main Camera and enable Post Processing on the Main Camera
- Play in browser
- Switch between different resolutions using the picker in the top left
- Notice after swapping between a couple resolutions the particles stop rendering
Minimal reproduction project
Should be fixed in https://github.com/cocos/cocos-engine/pull/16157
Should be fixed in #16157
@GengineJS is backporting it to 3.8.1
https://github.com/cocos/cocos-engine/pull/16321
@pandamicro Transparency no longer breaks using the repro steps I outlined but now the Frame Buffer is just stuck with the contents of the last frame before the window is resized sometimes. So end user experience is the game looks "frozen" until you resize the window again.
Bump. My project cannot upgrade to 3.8.1 because the new issue is worse than the previous one.
@hulcypdiscord What does the new question refer to? Is it still a problem that transparent objects need to be restored by resizing the window?
Is it convenient to post a recorded video or a simple demo for troubleshooting?
https://github.com/cocos/cocos-engine/assets/75751645/1dfbe74d-df85-4cf3-8811-a21881d89dfa
Here is an attached video using the same sample project provided in this issue reproducing the new issue.
OK, received, we will provide a solution as soon as possible
Related questions in the video have been merged into PR https://github.com/cocos/cocos-engine/pull/16524
@GengineJS As of 3.8.2 the render-frame-broken issue no longer occurs but the originally reported issue of transparent rendering is still broken. If you follow the same repro steps in the video above instead of the render frame freezing it just stops rendering all transparent objects.
https://github.com/cocos/cocos-engine/pull/17279/files This pr has fixed this issue