# How to use baking NavmeshData?

**URL:** <https://forum.babylonjs.com/t/how-to-use-baking-navmeshdata/25618>\
**Category:** Questions\
**Created:** [November 29, 2021, 2:51am UTC](https://forum.babylonjs.com/t/how-to-use-baking-navmeshdata/25618 "2021-11-29T02:51:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taehoChoi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/taehochoi/32/20169_2.png) [@taehoChoi](https://forum.babylonjs.com/u/taehoChoi)\
**Post date:** [November 29, 2021, 2:51am UTC](https://forum.babylonjs.com/t/how-to-use-baking-navmeshdata/25618/1 "2021-11-29T02:51:49Z")

</div>

> **[Creating A Navigation Mesh | Babylon.js Documentation](https://doc.babylonjs.com/extensions/crowdNavigation/createNavMesh)**
>
> Learn how to create a mesh as a confinment system for crowd agents.

Referring to the docs, it is explained that the seek mesh can be retrieved by baking the navmesh and restoring the bytestream later. However, I don’t know exactly how to use it. Do I have to parse it again after saving it in json format?  
Examples are lacking. Can anyone help me?

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [November 29, 2021, 9:26am UTC](https://forum.babylonjs.com/t/how-to-use-baking-navmeshdata/25618/2 "2021-11-29T09:26:05Z")

</div>

Hi @taehoChoi and welcome to the forum

Once you get the byte stream with [RecastJSPlugin | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/babylon.recastjsplugin#getnavmeshdata)  
, it’s up to you to save and restore it. You can encode it using base64, upload it somewhere, copy and paste the encoded string,…  
And then, do the reverse and call [RecastJSPlugin | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/babylon.recastjsplugin#buildfromnavmeshdata)

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [November 29, 2021, 12:51pm UTC](https://forum.babylonjs.com/t/how-to-use-baking-navmeshdata/25618/3 "2021-11-29T12:51:43Z")

</div>

Hey @taehoChoi! Welcome!

Here is PG demonstrating how to save and load the baked navmesh data:  
[https://playground.babylonjs.com/#1GYJHH#20](https://playground.babylonjs.com/#1GYJHH#20)

🖖

---

<div class="post-metadata">

**Author:** ![taehoChoi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/taehochoi/32/20169_2.png) [@taehoChoi](https://forum.babylonjs.com/u/taehoChoi)\
**Post date:** [December 1, 2021, 7:33am UTC](https://forum.babylonjs.com/t/how-to-use-baking-navmeshdata/25618/4 "2021-12-01T07:33:01Z")

</div>

thanks you! i will try it!
