PlayCanvas Editor Terrain Tool Plugin

Hi guys, it’s been a while since I posted here.

I come to you with good news, after all these years making games with PlayCanvas, i’ve found a path I can follow to make one of the tools that i’ve always missed from Unity and which weren’t in PlayCanvas.

That is, a full fledged Terrain Editor!

After the team fixed in-editor console.log freezing the active window, i’ve been able to finally progress and I’m positive soon I’ll have a decent plugin to offer.

I’ll use this thread to provide updates on how it’s going, new features, etc.

As of today, the plugin is able to generate a terrain mesh within the editor which uses a heightmap from your Assets, and we are able to modify it in real-time with a simple brush feature, and an option to grow or decrease the terrain.

Terrain Editor Demo 2

Next features that I want to implement:

  • More and better brushes to work with the terrain.
  • Runtime generation with the same heightmap from the editor (1:1 copy).
  • Runtime Integrated physics with PlayCanvas’ default physics engine (Ammo.js) and also with Cannon.js.
  • Texture painting brush.
  • Grass painting brush.

Note that I also create this thread to know how interested people are in a plugin like this. So if you like it, please do comment below, sadly I don’t have much free time nowadays, so i’ll dedicate time based on motivation.

5 Likes

Welcome back! You should also hop onto the Discord where we have some other developers doing some extensions to the Editor :smiley:

1 Like

@devMidgard It does look interesting and yes something that I would consider as I am doing most terrain and scene development in Blender. Can you share how this will be distributed? Licensing or open source? Thanks in advance.

Update: Fixed saving of the heightmap to the project files so it can be later used to load it up again and continue your progress, and it will also be used for the game runtime.

Also, improved how brushes work + added a nicer spot graphic to detail where you’re actually going to affect the terrain at.

Upcoming: UI Work, Texture Painting, and runtime + physics.

@Tirk182 Still undecided.

@yaustar I had already joined many years ago, didn’t know it was active nowadays, will be sure to share this stuff over there and see what others are working on.

2 Likes