Error Message when Adding Babylon.js File

I’m encountering the following error message when adding by Babylon.js file.

UnsupportedMaterialTypeInBabylonJsFile: The BabylonJs file ‘scene’ contains an invalid material ‘BABYLON.StandardMaterial’ at $.materials[0].

I’m a beginner in the field, would you be able to direct me towards a solution?

Hello Luca, welcome to the forum!

We currently only support PbrMaterials in the asset manager:
https://docs.combeenation.com/docs/babylon-and-pbr-material-assets

Your Babylon.js file seems to be using a StandardMaterial.

I’m not a Babylon expert myself, but my understanding is that PbrMaterials are generally superior to StandardMaterials.

Do you have a specific use case that requires the use of a StandardMaterial, or can you change it to a PbrMaterial?

We are considering to add support for other material types if there is interest in that.

Let us know if you need help with changing the material type or have other questions!

Hey @LucaExpo,
just a quick heads-up: we will add support for other kinds of materials, so that Babylon.js files like yours will work out of the box. This feature is planned to be released by mid December.

A bunch of other 3D-viewer improvements will also come in the very near future resp. a few have already been released – check out our release notes if you’d like to know more!

Hello ENZ,

I have tried several times to use a “.glb” file and it doesn’t work on the configurator.
I deleted and re-uploaded a few times, still didn’t work.
Am I doing something wrong?
Would really appreciate your help.
Thanks in advance!

Hey Bright,

can you provide more details where the problem occurs? It sounds as if you can uplooad the .glb file but it doesn’t show in the configurator, is that right?

If you message me the name of your company and configurator I can have a look.

The general steps to use a BabylonJS asset in a configurator is to make sure that the asset bundle that contains it is assigned to the configurator, that you create a 3D viewer control in the UI editor and that you connect it to a component that specifies the 3D model and parameters for it.

At the very least you must set the visible property of the desired model to true.

Hey ENZ,

Thanks for your response.

Yes the file doesn’t show in the configurator.
What do I need to do to make it show?
Apologies for the late response.

Hi Bright,

I don’t know how far along you are with your configurator, basically make sure that you have followed these steps, that is:

  • make sure that the asset bundle in which you uploaded your GLB is assigned to your configurator
  • you need to add a 3D viewer control in the UI editor of the configurator
  • you must tell the viewer control to display your GLB, which is done with a viewer parameters component that you connect to the UI editor

These steps are explained in detail in the linked docs. If you are having trouble with a specifc step, let me know and I can help you out with that. Or you can message me the name of your company and configurator and I can help you figure out what is missing.