cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

WebGL2 keep showing unbound buffer when change skinning mesh root

Open hana-alice opened this issue 2 years ago • 2 comments

Cocos Creator version

3.8.0

System information

test on mac 13.4 chrome

Issue description

When changing node of skinned model, webgl keep telling there are unbound buffers.

Somehow we noticed:

  1. when change hairstyle of a human model, node is updated;
  2. skiningRoot setter triggered;
  3. tryBindAnimation in skinning root setter binds gfx buffer to descriptor set;
  4. update -> ensureEnoughBuffers in skinning root setter destroy original buffers but without updating descriptor set; thus error occurred when drawing.

Relevant error log output

No response

Steps to reproduce

Change node of skinned model, like change another hairstyle of a human model.

Minimal reproduction project

No response

hana-alice avatar Jun 16 '23 03:06 hana-alice

@wuzhiming any progress will be updated here

hana-alice avatar Jun 16 '23 03:06 hana-alice

A possible solution: WXWorkCapture_16868270443507

hana-alice avatar Sep 01 '23 07:09 hana-alice