MeshDebugPluginMaterial Bug: vMainUV1 undeclared identifier

Hi~
When I display some model, UV0 mode throw “vMainUV1 undeclared identifier”. It is sure that mesh contains uv0.


image

It looks like that there is no error with pbrMaterial

cc @Evgeni_Popov

1 Like

Would you be able to share the model that generates the error?

Sorry, it is a fbx file, I think it is hard to regenerate in pg. I have a try to export model with .babylon

The textures of model are .dds, does it matter?
Model with other format Textures work well. Only .dds throw error.
Model with other format



Model with .dds

Your PG does not generate an error: we would need a PG with the error to be able to understand what’s going on.

Here I generate the error : https://playground.babylonjs.com/#PSP5JI#7
I find vScale cause the error.
image

The problem will be fixed by Mesh debug material plugin: Fix crash when showing uvs by Popov72 · Pull Request #15034 · BabylonJS/Babylon.js · GitHub.

However, the “uv” debug mode won’t work in your case, because when you don’t use an identity transformation matrix for at least one texture, we don’t directly use the uv vertex buffer but we recompute specific uv values by factoring the transformation matrix.

2 Likes