{"action":"created","issue":{"url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/issues/402","repository_url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation","labels_url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/issues/402/comments","events_url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/issues/402/events","html_url":"https://github.com/Team-RTG/Realistic-Terrain-Generation/issues/402","id":125961047,"number":402,"title":"Generate river noise with tanh(x^2) smoothing","user":{"login":"Szperak","id":6555818,"avatar_url":"https://avatars.githubusercontent.com/u/6555818?v=3","gravatar_id":"","url":"https://api.github.com/users/Szperak","html_url":"https://github.com/Szperak","followers_url":"https://api.github.com/users/Szperak/followers","following_url":"https://api.github.com/users/Szperak/following{/other_user}","gists_url":"https://api.github.com/users/Szperak/gists{/gist_id}","starred_url":"https://api.github.com/users/Szperak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Szperak/subscriptions","organizations_url":"https://api.github.com/users/Szperak/orgs","repos_url":"https://api.github.com/users/Szperak/repos","events_url":"https://api.github.com/users/Szperak/events{/privacy}","received_events_url":"https://api.github.com/users/Szperak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/labels/feature-request","name":"feature-request","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/milestones/11","html_url":"https://github.com/Team-RTG/Realistic-Terrain-Generation/milestones/World%20Gen","labels_url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/milestones/11/labels","id":1315090,"number":11,"title":"World Gen","description":"All issues related to improving world gen (trees, features, decorations, biome improvements, etc.)","creator":{"login":"Ezoteric","id":14137626,"avatar_url":"https://avatars.githubusercontent.com/u/14137626?v=3","gravatar_id":"","url":"https://api.github.com/users/Ezoteric","html_url":"https://github.com/Ezoteric","followers_url":"https://api.github.com/users/Ezoteric/followers","following_url":"https://api.github.com/users/Ezoteric/following{/other_user}","gists_url":"https://api.github.com/users/Ezoteric/gists{/gist_id}","starred_url":"https://api.github.com/users/Ezoteric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ezoteric/subscriptions","organizations_url":"https://api.github.com/users/Ezoteric/orgs","repos_url":"https://api.github.com/users/Ezoteric/repos","events_url":"https://api.github.com/users/Ezoteric/events{/privacy}","received_events_url":"https://api.github.com/users/Ezoteric/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":22,"state":"open","created_at":"2015-09-20T11:46:40Z","updated_at":"2016-02-07T08:14:17Z","due_on":"2017-10-14T23:00:00Z","closed_at":null},"comments":5,"created_at":"2016-01-11T14:50:01Z","updated_at":"2016-02-07T19:00:40Z","closed_at":null,"body":"float strength = Math.tanh(Math.pow(noise2d(x/1337, z/1337), 2));\r\n\r\nCode above gives good results and does't use veronoi magic.\r\n\r\nHow it works? Google for y=tanh(x^2)\r\n\r\nPS: My second name is 7ERr0r\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/issues/comments/181083413","html_url":"https://github.com/Team-RTG/Realistic-Terrain-Generation/issues/402#issuecomment-181083413","issue_url":"https://api.github.com/repos/Team-RTG/Realistic-Terrain-Generation/issues/402","id":181083413,"user":{"login":"KdotJPG","id":8829856,"avatar_url":"https://avatars.githubusercontent.com/u/8829856?v=3","gravatar_id":"","url":"https://api.github.com/users/KdotJPG","html_url":"https://github.com/KdotJPG","followers_url":"https://api.github.com/users/KdotJPG/followers","following_url":"https://api.github.com/users/KdotJPG/following{/other_user}","gists_url":"https://api.github.com/users/KdotJPG/gists{/gist_id}","starred_url":"https://api.github.com/users/KdotJPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KdotJPG/subscriptions","organizations_url":"https://api.github.com/users/KdotJPG/orgs","repos_url":"https://api.github.com/users/KdotJPG/repos","events_url":"https://api.github.com/users/KdotJPG/events{/privacy}","received_events_url":"https://api.github.com/users/KdotJPG/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T19:00:40Z","updated_at":"2016-02-07T19:00:40Z","body":"There are definitely a lot of nice properties to this river generation, but one of the main things is that, if you notice, all river intersections are of an even number of paths. There are ways to resolve that (i.e. using three noise instances and doing something that involves a triangle) but then that produces triple and quad intersections that look different from each other.\r\n\r\nDefinitely think tanh(x^2) is an interesting trick that I'll have to keep in mind though for other parts of the terrain generation."}}