Add new items to the .babylon format exporter

Hi everyone,

It should be great to add some items to the babylonjs exporter. For instance :

  • area lights
  • GUI
  • Sprites
  • Crowd navigation system

And may be some more which are implemented and cannot still be saved in the .babylon JSON.

Thanks

sprites and GUI should be there

Adding @alexchuber

1 Like

cc @srzerbetto for area lights

1 Like

Yeah, the .babylon serializer should already support Sprites. I’m at least able to serialize this PG: https://playground.babylonjs.com/#YCY2IL#2516.
@bvaisman , could you share a repro where Sprites or GUI don’t export correctly? Thanks in advance!

GUIs, however, don’t look like they’re included in the .babylon serializer. But they definitely have a serialization mechanism that is used by the GUI editor.

Hi @alexchuber

You’re right about the sprites (but not written in the docs Babylon.js docs) but I think it is not possible for the GUI. Here’s a PG :

Thanks for your help

1 Like

Thanks for the PG. We should update the docs to include Sprites :slight_smile:

You’re correct that GUIs are not exported in the .babylon format.

If anyone would like to contribute a PR for this, there are already serialize and parse methods for GUI. They just need to be included somewhere in the SceneSerializer.

I’ve made a PR to add the sprites to the docs :

4 Likes