# \#sceneserializer

**URL:** https://forum.babylonjs.com/tag/sceneserializer/46.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [PBR \_imageProcessingConfiguration Parse Regression after 8.28.2](https://forum.babylonjs.com/t/pbr-imageprocessingconfiguration-parse-regression-after-8-28-2/62831)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [March 18, 2026, 9:38am UTC](https://forum.babylonjs.com/t/pbr-imageprocessingconfiguration-parse-regression-after-8-28-2/62831 "2026-03-18T09:38:26Z")

</div>

Version: 8.28.2~8.55.3 Steps to repro: Open this playground at 8.28.2 (or any version after that) https://playground.babylonjs.com/?version=8.28.2#XH0PW9#7 Compare it with 8.28.1 https://playground.babylonjs.com/?ve…

---

## [Function included in serialized result after enableEdgesRendering](https://forum.babylonjs.com/t/function-included-in-serialized-result-after-enableedgesrendering/62575)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 4\
**Last updated:** [March 3, 2026, 6:20pm UTC](https://forum.babylonjs.com/t/function-included-in-serialized-result-after-enableedgesrendering/62575 "2026-03-03T18:20:24Z")

</div>

OS: Win10 Engine: WebGL2 Browser: any Version: 8.52.1 Steps to reproduce: Open the playground: Babylon.js Playground Check console for errors Expected: No errors Actual: s.materials\[0\].options.extraInitializati…

---

## [SpriteManager not included in AssetContainer](https://forum.babylonjs.com/t/spritemanager-not-included-in-assetcontainer/62223)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 3\
**Last updated:** [January 26, 2026, 9:31pm UTC](https://forum.babylonjs.com/t/spritemanager-not-included-in-assetcontainer/62223 "2026-01-26T21:31:23Z")

</div>

Version: 8.47.0 Engine: any Browser: any Steps to reproduce: Open the playground https://playground.babylonjs.com/#YCY2IL#2543 Open console and check logs Expected: removeAllFromScene (empty array) addAllToScene…

---

## [PostProcess: add doNotSerialize](https://forum.babylonjs.com/t/postprocess-add-donotserialize/61186)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [October 30, 2025, 9:33am UTC](https://forum.babylonjs.com/t/postprocess-add-donotserialize/61186 "2025-10-30T09:33:45Z")

</div>

Background Following ISpriteManager: add doNotSerialize, PostProcess have no doNotSerialize to control if a post process should be serialized. Proposal Add a doNotSerialize to PostProcess with a default false, since it’…

---

## [ISpriteManager: add doNotSerialize](https://forum.babylonjs.com/t/ispritemanager-add-donotserialize/61133)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [October 28, 2025, 2:31am UTC](https://forum.babylonjs.com/t/ispritemanager-add-donotserialize/61133 "2025-10-28T02:31:47Z")

</div>

Background Following IParticleSystem: add doNotSerialize, ISpriteManager and impls have no doNotSerialize to control if a sprite manager should be serialized. Proposal Add an optional doNotSerialize to ISpriteManager, a…

---

## [IParticleSystem: add doNotSerialize](https://forum.babylonjs.com/t/iparticlesystem-add-donotserialize/61085)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 4\
**Last updated:** [October 24, 2025, 3:23pm UTC](https://forum.babylonjs.com/t/iparticlesystem-add-donotserialize/61085 "2025-10-24T15:23:37Z")

</div>

Background In the babylon.js serialization system, many kind of objects have doNotSerialize, to keep object from being serialized. But currently IParticleSystem and its implements do not have a doNotSerialize, or any ot…

---

## [Pack / Serialize the Environment (.env) During Export to BabylonJS .babylon File](https://forum.babylonjs.com/t/pack-serialize-the-environment-env-during-export-to-babylonjs-babylon-file/60914)

<div class="topic-metadata">

**Author:** [@staub](https://forum.babylonjs.com/u/staub)\
**Replies:** 3\
**Last updated:** [October 14, 2025, 1:55am UTC](https://forum.babylonjs.com/t/pack-serialize-the-environment-env-during-export-to-babylonjs-babylon-file/60914 "2025-10-14T01:55:05Z")

</div>

Please make it possible to pack / serialize the Skybox environment with all properties within .babylon files during export.

---

## [Optimize performance of ShadowGenerator.Parse](https://forum.babylonjs.com/t/optimize-performance-of-shadowgenerator-parse/60086)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 8\
**Last updated:** [August 25, 2025, 3:31pm UTC](https://forum.babylonjs.com/t/optimize-performance-of-shadowgenerator-parse/60086 "2025-08-25T15:31:26Z")

</div>

Background ShadowGenerator.Parse called scene.getMeshesById, which is O(n) in time, for each mesh id in parsedShadowGenerator.renderList, makes the loop O(m\*n) in time, where n is the count of meshes in scene, m is the c…

---

## [How to serialize a subset of scene](https://forum.babylonjs.com/t/how-to-serialize-a-subset-of-scene/59941)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 3\
**Last updated:** [August 11, 2025, 12:50am UTC](https://forum.babylonjs.com/t/how-to-serialize-a-subset-of-scene/59941 "2025-08-11T00:50:25Z")

</div>

Description Currently there is a SceneSerializer that serializes a scene to a json object, where almost all babylon-specify properties can be kept and transfered to another context. But since both Serialize and Serializ…

---

## [Optimize performance of AssetContainer.addToScene](https://forum.babylonjs.com/t/optimize-performance-of-assetcontainer-addtoscene/59125)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [July 4, 2025, 12:44am UTC](https://forum.babylonjs.com/t/optimize-performance-of-assetcontainer-addtoscene/59125 "2025-07-04T00:44:16Z")

</div>

Background Following Optimize performance of AnimationGroup.Parse, the benchmark also shows that in AssetContainer.addToScene, getNodes takes most of CPU time. It called scene.getNodes() for every nodes added. A…

---

## [Optimize performance of AnimationGroup.Parse](https://forum.babylonjs.com/t/optimize-performance-of-animationgroup-parse/59124)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 6\
**Last updated:** [July 3, 2025, 7:38am UTC](https://forum.babylonjs.com/t/optimize-performance-of-animationgroup-parse/59124 "2025-07-03T07:38:02Z")

</div>

Background A recent profiling of loading a serialized scene with babylonFileLoader shows that scene.getNodeById takes about half of the CPU time in the whole loading process. After looking into the source, I found …

---

## [Texture.serialize, hardcoded image/png for all mime types](https://forum.babylonjs.com/t/texture-serialize-hardcoded-image-png-for-all-mime-types/56852)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 9\
**Last updated:** [April 11, 2025, 6:01pm UTC](https://forum.babylonjs.com/t/texture-serialize-hardcoded-image-png-for-all-mime-types/56852 "2025-04-11T18:01:53Z")

</div>

Version: 7.51.1 and git master OS: any Browser: any Engine: any Desc In texture.serialize, if the texture contains \_buffer as Uint8Array, commonly if loaded from a glb model, serializing texture will result in base64…

---

## [shadowGenerators serialized without light](https://forum.babylonjs.com/t/shadowgenerators-serialized-without-light/56134)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 3\
**Last updated:** [January 24, 2025, 3:28am UTC](https://forum.babylonjs.com/t/shadowgenerators-serialized-without-light/56134 "2025-01-24T03:28:11Z")

</div>

Background Version: 7.44.1 Engine: any Browser: any Desc There is currently no doNotSerialize option for a ShadowGenerator, and a ShadowGenerator would be serialized even if the light of it marked with doNotSerialize. …

---

## [Compatiblity of serialization format (.babylon file)](https://forum.babylonjs.com/t/compatiblity-of-serialization-format-babylon-file/55632)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 8\
**Last updated:** [January 4, 2025, 12:36am UTC](https://forum.babylonjs.com/t/compatiblity-of-serialization-format-babylon-file/55632 "2025-01-04T00:36:39Z")

</div>

In docs, there is a SceneSerializer that serializes a scene to a .babylon file. https://doc.babylonjs.com/features/featuresDeepDive/Exporters/Save\_Babylon/ As babylon.js changes, the serialization format changes too, s…

---

## [Why Can't AbstractMesh Be Recognized When Exporting the Scene as JSON Using SceneSerializer?](https://forum.babylonjs.com/t/why-cant-abstractmesh-be-recognized-when-exporting-the-scene-as-json-using-sceneserializer/54829)

<div class="topic-metadata">

**Author:** [@Norman](https://forum.babylonjs.com/u/Norman)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 3:52am UTC](https://forum.babylonjs.com/t/why-cant-abstractmesh-be-recognized-when-exporting-the-scene-as-json-using-sceneserializer/54829 "2024-11-18T03:52:03Z")

</div>

I used importMeshAsync to import a GLTF file into the scene, and it seems that all the models imported by this method are of type AbstractMesh. In this case, I tried to export the scene to a .babylon format using SceneSe…

---

## [SceneSerializer: serialized mesh contains Float32Array](https://forum.babylonjs.com/t/sceneserializer-serialized-mesh-contains-float32array/54467)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 3\
**Last updated:** [November 1, 2024, 11:08am UTC](https://forum.babylonjs.com/t/sceneserializer-serialized-mesh-contains-float32array/54467 "2024-11-01T11:08:22Z")

</div>

Ver: 7.32.0 Browser: Firefox and Chrome OS: Windows 10 Engine: WebGL2 Playground: Desc: Doc of BABYLON.SceneSerializer.SerializeMesh saying that it “Serialize a mesh into a JSON compatible object”, but the object …

---

## [Sandbox: loading \`.babylon\` file exported from glb never ends](https://forum.babylonjs.com/t/sandbox-loading-babylon-file-exported-from-glb-never-ends/52930)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 5\
**Last updated:** [August 27, 2024, 9:43pm UTC](https://forum.babylonjs.com/t/sandbox-loading-babylon-file-exported-from-glb-never-ends/52930 "2024-08-27T21:43:30Z")

</div>

OS: Windows 10 GPU: GTX 1050 2GB Browser: Chrome and Firefox Ver: Babylon.js v7.21.5 Url: https://sandbox.babylonjs.com/ Expected: Loaded successfully Actual: Loading never ends Steps: Get a glb model from glTF-…

---

## [New versions 7.10/7.11 have errors with model normal maps](https://forum.babylonjs.com/t/new-versions-7-10-7-11-have-errors-with-model-normal-maps/51320)

<div class="topic-metadata">

**Author:** [@AutoBikeMan](https://forum.babylonjs.com/u/AutoBikeMan)\
**Replies:** 6\
**Last updated:** [June 15, 2024, 9:17am UTC](https://forum.babylonjs.com/t/new-versions-7-10-7-11-have-errors-with-model-normal-maps/51320 "2024-06-15T09:17:50Z")

</div>

This is the model import in the new version (7.11 in PG) This is the model import in the new version (7.5 in PG) I updated from 6.x to 7.5 without any issues. However, after updating to 7.10.5 today, I noticed th…

---

## [When serializing a scene, properties like the mesh's physicsImpostor and mass can be serialized. However, why can't the mesh's physicsImpostor and related properties be loaded when using the serialized file to load the scene?](https://forum.babylonjs.com/t/when-serializing-a-scene-properties-like-the-meshs-physicsimpostor-and-mass-can-be-serialized-however-why-cant-the-meshs-physicsimpostor-and-related-properties-be-loaded-when-using-the-serialized-file-to-load-the-scene/50963)

<div class="topic-metadata">

**Author:** [@AutoBikeMan](https://forum.babylonjs.com/u/AutoBikeMan)\
**Replies:** 9\
**Last updated:** [June 6, 2024, 4:54pm UTC](https://forum.babylonjs.com/t/when-serializing-a-scene-properties-like-the-meshs-physicsimpostor-and-mass-can-be-serialized-however-why-cant-the-meshs-physicsimpostor-and-related-properties-be-loaded-when-using-the-serialized-file-to-load-the-scene/50963 "2024-06-06T16:54:21Z")

</div>

i use “BABYLON.SceneSerializer.Serialize(scene)” to serializer the scene and find it has but i use ‘SceneLoader.AppendAsync’ to load this scene i find

---

## [The free camera serialization cannot save the touch screen swipe perspective information](https://forum.babylonjs.com/t/the-free-camera-serialization-cannot-save-the-touch-screen-swipe-perspective-information/50715)

<div class="topic-metadata">

**Author:** [@AutoBikeMan](https://forum.babylonjs.com/u/AutoBikeMan)\
**Replies:** 11\
**Last updated:** [May 27, 2024, 6:28pm UTC](https://forum.babylonjs.com/t/the-free-camera-serialization-cannot-save-the-touch-screen-swipe-perspective-information/50715 "2024-05-27T18:28:46Z")

</div>

（Sorry, I didn’t use pg here because the serialized file is not well displayed when loaded.） 1.When I use the following code, the mobile device can support swipe to switch the free camera perspective \*\*var camera = new…

---

## [The framePerSecond property of TargetedAnimation and Animation cannot be serialized](https://forum.babylonjs.com/t/the-framepersecond-property-of-targetedanimation-and-animation-cannot-be-serialized/50276)

<div class="topic-metadata">

**Author:** [@AutoBikeMan](https://forum.babylonjs.com/u/AutoBikeMan)\
**Replies:** 3\
**Last updated:** [May 8, 2024, 1:07am UTC](https://forum.babylonjs.com/t/the-framepersecond-property-of-targetedanimation-and-animation-cannot-be-serialized/50276 "2024-05-08T01:07:43Z")

</div>

I modified the framePerSecond property of the animation, then used the SceneSerializer.Serialize() method to generate a JSON (.babylon) file.When I load the file, I found that the frame rate of the animation hasn’t been …

---

## [Bug in fog serialization](https://forum.babylonjs.com/t/bug-in-fog-serialization/50033)

<div class="topic-metadata">

**Author:** [@AutoBikeMan](https://forum.babylonjs.com/u/AutoBikeMan)\
**Replies:** 9\
**Last updated:** [April 27, 2024, 2:57pm UTC](https://forum.babylonjs.com/t/bug-in-fog-serialization/50033 "2024-04-27T14:57:30Z")

</div>

1.“scene.fogEnabled” cannot be serialized 2.When my "fogMode " is 0, parameters like "fogColor " cannot be serialized. My procedure involves creating a scene with fog and exporting it. Upon loading, fogMode or fogEnabl…

---

## [The .babylon file is too large. What should I do?](https://forum.babylonjs.com/t/the-babylon-file-is-too-large-what-should-i-do/49668)

<div class="topic-metadata">

**Author:** [@AutoBikeMan](https://forum.babylonjs.com/u/AutoBikeMan)\
**Replies:** 10\
**Last updated:** [April 16, 2024, 6:37am UTC](https://forum.babylonjs.com/t/the-babylon-file-is-too-large-what-should-i-do/49668 "2024-04-16T06:37:39Z")

</div>

I imported a glb file into an empty scene. The glb file is only 5 MB, but after importing it into the Babylon scene and exporting it as a .babylon file, the .babylon file becomes 20 MB. When I checked the .babylon file, …

---

## [Double Fxaa deserialize error](https://forum.babylonjs.com/t/double-fxaa-deserialize-error/45561)

<div class="topic-metadata">

**Author:** [@wangShine](https://forum.babylonjs.com/u/wangShine)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 12:44pm UTC](https://forum.babylonjs.com/t/double-fxaa-deserialize-error/45561 "2023-11-09T12:44:41Z")

</div>

Hello~ The deserialization process reports an error when two Fxaa scenarios exist. The Fxaa’s width and height were assigned values during deserialization, and the loadTexture of the second Fxaa was not loaded succe…

---

## [Does SceneSerializer serialize stuff like observables?](https://forum.babylonjs.com/t/does-sceneserializer-serialize-stuff-like-observables/44309)

<div class="topic-metadata">

**Author:** [@evidanary](https://forum.babylonjs.com/u/evidanary)\
**Replies:** 2\
**Last updated:** [September 21, 2023, 2:47pm UTC](https://forum.babylonjs.com/t/does-sceneserializer-serialize-stuff-like-observables/44309 "2023-09-21T14:47:21Z")

</div>

I’m pretty sure the answer to this is no - but wanted to double check here. When serializing scenes that contain observables (e.g. observable on camera’s viewmatrixchange) such as this one https://playground.babylonjs.c…

---

## [How to properly save and load a scene?](https://forum.babylonjs.com/t/how-to-properly-save-and-load-a-scene/43436)

<div class="topic-metadata">

**Author:** [@fazil47](https://forum.babylonjs.com/u/fazil47)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 2:10pm UTC](https://forum.babylonjs.com/t/how-to-properly-save-and-load-a-scene/43436 "2023-08-21T14:10:30Z")

</div>

I’m trying to implement a saving and loading feature on a scene made with imported GLB models, a dynamic skybox and post-processing effects (also contains a GizmoManager) by following this guide, but I’m getting an error…

---

## [colorShader kept and not reused after serialization of LinesMesh](https://forum.babylonjs.com/t/colorshader-kept-and-not-reused-after-serialization-of-linesmesh/36871)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 1\
**Last updated:** [December 26, 2022, 10:36am UTC](https://forum.babylonjs.com/t/colorshader-kept-and-not-reused-after-serialization-of-linesmesh/36871 "2022-12-26T10:36:41Z")

</div>

OS: Windows 10 x64 Browser: ungoogled-chromium 108.0.5359.95 Babylon.js: 5.39.0 Playground: https://playground.babylonjs.com/#E9EBSL#3 Open the inspector and expend the materials. Expected: The colorShader material…

---

## [colorShader and colorShaderOccQuery kept after serialize](https://forum.babylonjs.com/t/colorshader-and-colorshaderoccquery-kept-after-serialize/36870)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 1\
**Last updated:** [December 26, 2022, 10:30am UTC](https://forum.babylonjs.com/t/colorshader-and-colorshaderoccquery-kept-after-serialize/36870 "2022-12-26T10:30:31Z")

</div>

OS: Windows 10 x64 Browser: ungoogled-chromium 108.0.5359.95 Babylon.js: 5.39.0 Playground: https://playground.babylonjs.com/#E9EBSL#1 Open the inspector and expend the materials. Expected: The colorShader and colo…

---

## [Load serialized scene duplicates texture](https://forum.babylonjs.com/t/load-serialized-scene-duplicates-texture/36567)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 6:06pm UTC](https://forum.babylonjs.com/t/load-serialized-scene-duplicates-texture/36567 "2022-12-15T18:06:10Z")

</div>

OS: Windows 10 x64 Browser: ungoogled-chromium 108.0.5359.95 Babylon.js: 5.37.0 Playground: Babylon.js Playground Expected: Texture not duplicated after serializing and loading. Actual: Texture duplicated.

---

## [Physics plugin names are different from the name used in babylonFileLoader.ts](https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-the-name-used-in-babylonfileloader-ts/34345)

<div class="topic-metadata">

**Author:** [@Ultcrt](https://forum.babylonjs.com/u/Ultcrt)\
**Replies:** 3\
**Last updated:** [September 30, 2022, 7:31am UTC](https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-the-name-used-in-babylonfileloader-ts/34345 "2022-09-30T07:31:53Z")

</div>

Hello, I think there is a bug in the physics plugin names. I was trying to serialize a physics enabled scene to a .babylon file, and then load the file to re-display the scene. But I got an error while loading the .ba…

[Next page](https://forum.babylonjs.com/tag/sceneserializer/46.md?match_all_tags=true&page=1&tags%5B%5D=sceneserializer)
