Sign in to follow this  
ua4192

GLTF2 and importMEsh method issue

Recommended Posts

Hi.

Some days ago I realized that the was a new release of COLLLADA2GLTF2.0 available:

You can see it at:

https://github.com/KhronosGroup/COLLADA2GLTF/releases

I have tried with:

- COLLADA2GLTF-2.0-windows-Debug-x64.zip

or:

- COLLADA2GLTF-2.0-windows-Release-x64.zip

My problem is that I am trying to use the BABYLON.SceneLoader.ImportMesh method but it seems it is not able to import anything. No meshes, no in

In order to use the GLTF2Loader I am using babylon.glTF2FileLoader in the header section of my HTML but it doesn't work neither provides any error output.

As I want to import everything from my GLTF files I use "" or null as the first argument of ImportMesh.

With GLTF1.0 it works with both.

 

Am i doing anything wrong or maybe GLTF2 is not yet fully supported? I read that it was but it seems it is not the case.

My meshes don't have anything than geometries and standard materials.

I have tested with the multiple options the command provides:

  • -i inputdaefile -o outputfile
  • [-g] --> with or without
  • -b --> with or without
  • -m --> with or without

 

Best regards

Share this post


Link to post
Share on other sites

Hi.

 

The PG you prepared had only one single mesh, no product structure on it.

To reproduce the problem is very simple, just create a collada model with product structure and convert it to GLTF1.0, you will see that the structure is properly converted , now try with GLTF2.0 and you will see.

 

Here you can see my model example converted to GLTF2.0 and you can also see the original DAE file.

 

Best regards

test.glb

test.dae

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.