For compressed textures, MeshDebugPluginMaterial cannot be used

My model has compressed texture and uses KTX. I have investigated the reason and found that the code reports an exception when using PrepareMeshForTriangleAndVerticesMode. Normal rendering without using PrepareMeshForTriangleAndVerticesMode. Please try commenting on line 11 to see the comparison effect.

The error is as follows:

The PG address is as follows:

Seems there is an issue when there are instances. PR to address this is here: Filter out instance attributes in _convertToUnIndexedMesh by ryantrem · Pull Request #15454 · BabylonJS/Babylon.js (github.com)

4 Likes

good! :+1: