Exporting dynamic texture in glb

Hello

I’m trying to figure out why my dynamic textures are missing when exported to glb.

It seems like it’s working in Standard Materials, but not PBR.

To reproduce:

  1. Open https://playground.babylonjs.com/#5ZCGRM#4833
  2. Export to GLB
  3. Open in https://sandbox.babylonjs.com

Exact same steps, but with Standard materials works fine: https://playground.babylonjs.com/#5ZCGRM#2

Standard material, changing diffuseTexture to opacityTexture also prevents dynamic textures getting exported:

It is _resizeTexturesToSameDimensions called in _convertSpecularGlossinessTexturesToMetallicRoughnessAsync that resize the dynamic texture causing the bug. You can add a same size reflectivityTexture or setting metallic/roughness to enable metallicRoughness work flow as a temp resolution.

3 Likes

Brilliant Thanks!