# Use Ammo js debug drawer interface

**URL:** <https://forum.babylonjs.com/t/use-ammo-js-debug-drawer-interface/32365>\
**Category:** Questions\
**Tags:** ammojs\
**Created:** [July 21, 2022, 7:25am UTC](https://forum.babylonjs.com/t/use-ammo-js-debug-drawer-interface/32365 "2022-07-21T07:25:09Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![arcman7](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/arcman7/32/20249_2.png) [@arcman7](https://forum.babylonjs.com/u/arcman7)\
**Post date:** [August 5, 2022, 11:51pm UTC](https://forum.babylonjs.com/t/use-ammo-js-debug-drawer-interface/32365/27 "2022-08-05T23:51:16Z")

</div>

Check out this thread:

> [@Generating a heightmap from an array of meshes](https://forum.babylonjs.com/t/generating-a-heightmap-from-an-array-of-meshes/29986/9):
>
> It might be possible to improve things a bit. pre allocate vertices/indices and use the same code for adding face. No reallocation so maybe no OOM. Thing is, it’s not available in [ammo.js/ammo.idl at main · kripken/ammo.js · GitHub](https://github.com/kripken/ammo.js/blob/main/ammo.idl) So, you have to do a local build of ammo, test it, if it’s fine, do a pr on ammo repo, push the build to babylon.js, do a pr in babylon. It’s not that hard. I can help you.

I specifically used the code here:

> **[Babylon.js Playground](https://playground.babylonjs.com/#HQBU7K%2338)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

to generate an 800x800 hmap overnight while I slept. If you can get that shader version of the playground/script (something I was working on towards the end of the thread) working, then this could be near instant for any resolution on any sized model.

---

_[View the full topic](https://forum.babylonjs.com/t/use-ammo-js-debug-drawer-interface/32365)._
