Render terrain from heightmap in the editor

Hi all, I worked on rendering heightmap terrain in the editor for a few days. Many thanks to @Leonidas @mvaligursky for helping me during the process. I hope this helps others too.

  1. Download Violentmonkey: Violentmonkey - Chrome Web Store
  2. Inject JS code for height map to editor · GitHub
  3. Go to sample project: PlayCanvas 3D HTML5 Game Engine
  4. You will see “Render Terrain” button next to Camera button
  5. Hit the button;
    Screen Shot 2022-10-31 at 19.54.16

Then you’re good to go!


Many thanks for sharing! These editor API gems are very helpful to the community.

1 Like