{"action":"created","issue":{"url":"https://api.github.com/repos/NAAVOO/Noisy/issues/7","repository_url":"https://api.github.com/repos/NAAVOO/Noisy","labels_url":"https://api.github.com/repos/NAAVOO/Noisy/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/NAAVOO/Noisy/issues/7/comments","events_url":"https://api.github.com/repos/NAAVOO/Noisy/issues/7/events","html_url":"https://github.com/NAAVOO/Noisy/issues/7","id":161628884,"number":7,"title":"Max height/ Min height isn't calculated correctly","user":{"login":"Masy","id":7923485,"avatar_url":"https://avatars.githubusercontent.com/u/7923485?v=3","gravatar_id":"","url":"https://api.github.com/users/Masy","html_url":"https://github.com/Masy","followers_url":"https://api.github.com/users/Masy/followers","following_url":"https://api.github.com/users/Masy/following{/other_user}","gists_url":"https://api.github.com/users/Masy/gists{/gist_id}","starred_url":"https://api.github.com/users/Masy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Masy/subscriptions","organizations_url":"https://api.github.com/users/Masy/orgs","repos_url":"https://api.github.com/users/Masy/repos","events_url":"https://api.github.com/users/Masy/events{/privacy}","received_events_url":"https://api.github.com/users/Masy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-22T09:03:51Z","updated_at":"2016-06-23T09:14:59Z","closed_at":null,"body":"I've played a bit with the heights and imported several height maps into WorldPainter, and it seems that the calculations is completely wrong.\r\n\r\nWith the settings Min. Height = 0 and Max. Height = 128 it seems to generate values between 0 and 50.\r\n\r\nwith the settings Min. Height = 128 and Max. Height = 255 it seems to generate values between 55 and 255.\r\n\r\nSo the clamp function is calculating some wrong values i guess."},"comment":{"url":"https://api.github.com/repos/NAAVOO/Noisy/issues/comments/227993743","html_url":"https://github.com/NAAVOO/Noisy/issues/7#issuecomment-227993743","issue_url":"https://api.github.com/repos/NAAVOO/Noisy/issues/7","id":227993743,"user":{"login":"Masy","id":7923485,"avatar_url":"https://avatars.githubusercontent.com/u/7923485?v=3","gravatar_id":"","url":"https://api.github.com/users/Masy","html_url":"https://github.com/Masy","followers_url":"https://api.github.com/users/Masy/followers","following_url":"https://api.github.com/users/Masy/following{/other_user}","gists_url":"https://api.github.com/users/Masy/gists{/gist_id}","starred_url":"https://api.github.com/users/Masy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Masy/subscriptions","organizations_url":"https://api.github.com/users/Masy/orgs","repos_url":"https://api.github.com/users/Masy/repos","events_url":"https://api.github.com/users/Masy/events{/privacy}","received_events_url":"https://api.github.com/users/Masy/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T09:14:59Z","updated_at":"2016-06-23T09:14:59Z","body":"Okay, i tested a bit more, and there seems to be 2 seperate issues with this:\r\nThe first problem occurs when converting the grayScale into the RGB code.\r\n\r\nI made a debug message where it would print out the greyscale value at every point. The console for example said the value at [77,255] should be 145.\r\nI exported the heightmap as an image, selected the color of the pixel and it was 72, i really don't know why though.\r\n\r\nThe second problem is, that the noise values seem to \"jump\", what causes the terracing.\r\nDebugmessage:\r\n[10:58:49] Noise: 0.7235209\r\n[10:58:49] GrayScale: [255] [240] : 223\r\n[10:58:49] Noise: 0.71885186\r\n[10:58:49] GrayScale: [255] [241] : 222\r\n[10:58:49] Noise: 0.7035822\r\n[10:58:49] GrayScale: [255] [242] : 220\r\n\r\nSo as you can see, it gets converted correctly, and i checked the normalize function aswell, but somehow a 0.01 diffrence between neighbouring points is too much, no idea how to fix it though...\r\n\r\n(i guess the values of the discretePoints differenciate too much so there is a too high slope -> jumping noise values -> jumping rgb values.\r\n\r\nPossible way to fix this could be to add a function where the discrete points' value gets limited by the previous generated value. so for example if the discretePoint[0,0] has the value 0.5 the discretePoint[0,1] has to be between 0.25 and 0.75 or something"}}
{"actor":{"display_login":"Masy"}}