# Creating folds, curves and crumples for a paper

**URL:** <https://forum.babylonjs.com/t/creating-folds-curves-and-crumples-for-a-paper/20091>\
**Category:** Questions\
**Created:** [April 17, 2021, 6:20pm UTC](https://forum.babylonjs.com/t/creating-folds-curves-and-crumples-for-a-paper/20091 "2021-04-17T18:20:34Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [April 20, 2021, 3:01pm UTC](https://forum.babylonjs.com/t/creating-folds-curves-and-crumples-for-a-paper/20091/29 "2021-04-20T15:01:44Z")

</div>

Else, I was thinking (if it needs to be a mesh deformation) what about using a terrain generator as a base instead of redoing the entire code. I guess this would work and there are already a number of pretty good dev in BJS for procedural terrain. Coupled with say a node material and/or bumb/normal/parallax, it could end up with a nice result I suppose…

Edit: OK, may be you could start by trying to play around a little with this one:

> [@Experimentation with drainage on proceduraly generated terrain](https://forum.babylonjs.com/t/experimentation-with-drainage-on-proceduraly-generated-terrain/13839):
>
> Hi folks, It’s been a while since i was active on this forum. Nice to see the project flourishing. A few times in the past when playing with procedurally generated terrain i got annoyed by my inability to create realistic rivers; Generating terrain on which every point above sea-level has at least one lower neighbor is quite tricky. A few months ago i had a brainwave. I can generate maps where rivers correctly flow down hill in O(log n) time. Babylon.js provided an easy tool to create a demo…

You would just need to have a bit of imagination about the result if 🤔

1. you where to replace the heightmaps and of course the textures.
2. lower or change the range of some parameters. Remove or ignore some (many actually because the project is really broad and cool).  
You can already remove the trees and tweak a number of parameters that makes one think (me) that it wouldn’t be all too hard to get something out of it (just something?!…).

You would indeed need to lower all parameters, remove trees,etc… start with the threshold of geo to the lowest (not low enough:( but as you can see (imagine) pretty much everything in my opinion would be already there… and if your project is serious stuff and you’d like to use this base and technique, then may be @dunk would kindly give you a hand with it…?

 ![Capture d’écran 2021-04-20 à 17.21.39](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/d/ddabc72fb7a374ee0e706fc82e795b234f0da3a3.jpeg)

---

_[View the full topic](https://forum.babylonjs.com/t/creating-folds-curves-and-crumples-for-a-paper/20091)._
