BatchingUtility.batchStaticModel静态合批模型改变.

静态合批之后,模型绘制出问题.

** :nose: :nose: :nose: :nose: :nose:**

:rofl: :rofl: :rofl:求大佬们回复呀~

可以补充一下合批使用的代码,或者最简DEMO吗。

test.zip (1.9 MB)
demo,感谢大佬回复呀~ :pray:

大佬们有遇到么,有的模型可以,有的模型不行.

看你这个模型是有放大50倍的,从dcc导出的时候把模型放大试试

感恩感谢,我去试下

导出放大的模型这里还是不行.是导出模型时选项的问题么,想问下maya导出的模型有什么要求么,

已建issue: https://github.com/cocos/cocos-engine/issues/12557
待查是模型导出哪里设置的问题,我怀疑是多材质导致的。

好的,大概看了下,应该是模型本身的问题,和材质关系不大,删除了一些面就能合批了,但是具体的原因还是不清楚.

@995326489 此bug已修复,将会合入3.7.0。如果你立即需要可以这么改,在mesh.ts的merge函数中,
把vertBatchCount的定义放在这行上面
uint32_t vertBatchCount = 0;
for (const uint32_t bundleIdx : prim.vertexBundelIndices) {
vertBatchCount = std::max(vertBatchCount, _struct.vertexBundles[bundleIdx].view.count);
}

PR在这:fix mesh merge error by stanleyljl · Pull Request #13639 · cocos/cocos-engine · GitHub