xeogl icon indicating copy to clipboard operation
xeogl copied to clipboard

xeogl + glTF Loader does not support glTF 2.0

Open cx20 opened this issue 8 years ago • 6 comments

Description of the problem

I tried the glTF 1.1 sample with some glTF Loader. https://github.com/cx20/gltf-test#gltf-11-tutorial-models https://cx20.github.io/gltf-test/

However, xeogl + glTF Loader does not compatible with glTF 1.1.

I would like each library to be all green.

image

...

xeogl version
  • [x] Master
Browser
  • [x] All of them
  • [ ] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer
OS
  • [x] All of them
  • [ ] Windows
  • [ ] Linux
  • [ ] Android
  • [ ] IOS
Hardware Requirements

cx20 avatar Jan 14 '17 04:01 cx20

Since glTF 1.1 has been released as 2.0, I changed the title.

cx20 avatar Jun 10 '17 06:06 cx20

There seems to be a sample of glTF 2.0 below but it does not work. WIP? http://xeogl.org/examples/importing_gltf_2.0.html http://xeogl.org/examples/importing_gltf_2.0_PBR.html

cx20 avatar Jun 10 '17 06:06 cx20

Yes these are WIP.

xeolabs avatar Jun 12 '17 11:06 xeolabs

@xeolabs I tried to display the model of glTF 2.0 with the latest version of xeogl. It's a wonderful job. The PBR model is almost perfectly displayed. https://github.com/cx20/gltf-test#pbr-models image However, it is mysterious that triangles are not displayed. https://github.com/cx20/gltf-test#simple-models-for-testing-individual-features image I think it is one of the reasons why it is not displayed that there is no default scene in the model.

cx20 avatar Sep 08 '17 23:09 cx20

Thanks @cx20 - I just fixed loading glTF 2.0 for these three triangle examples:

You were right about the loader not handling the case when there is no default scene, and the other reason was that xeogl was not even drawing triangle meshes without indices.

Note that xeogl doesn't support morphs and animations yet though, but will eventually. For now, loading static models is pretty much the focus of xeogl.

xeolabs avatar Sep 14 '17 21:09 xeolabs

I'll fix these two test failures over the next few days, then glTF 2.0 will be complete for this iteration.

xeolabs avatar Sep 14 '17 21:09 xeolabs