I made a simple 3D demo with three.js and cannon.js
For that demo, I made a height field converter to make a matrix and both cannon.js body and three.js mesh from an image. Therefore, it’s easy to replace the height field. I also prepared one more demo with another image.
The first demo is using following image.
It was rendered in Blender, then imported to canvas2d, and then, makes a matrix for the height field.
The second one is working in the same way aside from the height field image.