A repo to capture the importation of a .glb file and my results from that
Dragging it right in basically works, the animation seems ot be working in the preview.
Here's what didn't work:
- the materials are mostly all black for some reason. This isn't the same as the broken-image thing. They are just black.
- animation does not run at all in the 'editor preview' after clicking
Play
This unfortunately doesn't work at all, here are the steps and logs:
- I save the scene. I notice that none of the textures are output into the scene folder. I assume that should be right?
- close the editor
- Double click the just-saved project
- there is a critical failure
Here is the log:
Uncaught (in promise) TypeError: Cannot set property 'invertY' of null
at RawTexture../Materials/Textures/texture.ts.Texture.serialize (node_modules/babylonjs/babylon.max.js:66978)
at eval (build/src/editor/scene/scene-manager.js:66)
at Array.forEach (<anonymous>)
at Function.SceneManager.SaveOriginalObjects (build/src/editor/scene/scene-manager.js:66)
at Function.eval (build/src/editor/scene/scene-loader.js:220)
at step (build/src/editor/scene/scene-loader.js:32)
at Object.eval [as next] (build/src/editor/scene/scene-loader.js:13)
at fulfilled (build/src/editor/scene/scene-loader.js:4)
Since I cannot reload my saved project, I will attempt to make the web project in the same gesture as importation, so I will start over with a new scene and re-import.
this..kinda works.
- open editor
Project
>New Project...
- Drag in the
solar_system.glb
file - Export Project Template
yarn install && yarn build && yarn run webserver
- No textures
- No animations
- Interestingly no breaks otherwise, the camera works.
Here is the repo with all of the test results:
https://github.com/simiancraft/BabylonJs-Editor-Mesh-Test-GLB