payload: {"action":"created","issue":{"url":"https://api.github.com/repos/PersonTheCat/CaveGenerator/issues/13","repository_url":"https://api.github.com/repos/PersonTheCat/CaveGenerator","labels_url":"https://api.github.com/repos/PersonTheCat/CaveGenerator/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/PersonTheCat/CaveGenerator/issues/13/comments","events_url":"https://api.github.com/repos/PersonTheCat/CaveGenerator/issues/13/events","html_url":"https://github.com/PersonTheCat/CaveGenerator/issues/13","id":354836728,"node_id":"MDU6SXNzdWUzNTQ4MzY3Mjg=","number":13,"title":"[Suggestions] Cave/oregen shape ideas","user":{"login":"superfluke","id":20022336,"node_id":"MDQ6VXNlcjIwMDIyMzM2","avatar_url":"https://avatars3.githubusercontent.com/u/20022336?v=4","gravatar_id":"","url":"https://api.github.com/users/superfluke","html_url":"https://github.com/superfluke","followers_url":"https://api.github.com/users/superfluke/followers","following_url":"https://api.github.com/users/superfluke/following{/other_user}","gists_url":"https://api.github.com/users/superfluke/gists{/gist_id}","starred_url":"https://api.github.com/users/superfluke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superfluke/subscriptions","organizations_url":"https://api.github.com/users/superfluke/orgs","repos_url":"https://api.github.com/users/superfluke/repos","events_url":"https://api.github.com/users/superfluke/events{/privacy}","received_events_url":"https://api.github.com/users/superfluke/received_events","type":"User","site_admin":false},"labels":[{"id":999369783,"node_id":"MDU6TGFiZWw5OTkzNjk3ODM=","url":"https://api.github.com/repos/PersonTheCat/CaveGenerator/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-28T17:48:52Z","updated_at":"2019-03-03T13:56:26Z","closed_at":"2019-03-03T13:56:26Z","author_association":"NONE","body":"Heya, ran across some interesting shapes working on something else and thought they could be morphed into some interesting caves. I know you were interested in other cave ideas at one point, so thought I'd share them here in case you found them useful. Would probably take some tinkering with extra domain warping or combining with other noise functions, but might be a cool base shape for cave or even as-is for ore gen. I use the FastNoise library for the code snippets. \r\n\r\nGradient Perturbed value noise:\r\nKeeps the kind of blocky shape of value noise which turns into conneced rooms. Increasing the amplitude/frequency of the perturbnoise will distort the blocky shape even more. \r\n![image](https://user-images.githubusercontent.com/20022336/44739583-2bce7f80-aac6-11e8-8af4-399494811695.png)\r\n![2018-08-28_13 07 14](https://user-images.githubusercontent.com/20022336/44739833-e52d5500-aac6-11e8-99c9-7b7c3ca73d61.png)\r\n```\r\ninit(){\r\n\tFastNoise perturbnoise = new FastNoise();\r\n\tFastNoise valnoise = new FastNoise();\r\n\tperturbnoise.SetFrequency(0.035f);\r\n\tvalnoise.SetNoiseType(NoiseType.Value);\r\n\tvalnoise.SetFrequency(0.06F);\r\n}\r\n\r\ngenTerain(){\r\n                for (int y = 0; y <= height; y++)  {\r\n                \tVector3f pvec = new Vector3f(realX, y, realZ);\r\n        \t\tperturbnoise.GradientPerturbFractal(pvec);\r\n        \t\tif(valnoise.GetNoise(pvec.x, pvec.y*2, pvec.z) > 2.2)\r\n        \t\t\tprimer.setBlockState(x, y, z, Blocks.STONE.getDefaultState());\r\n                }\r\n}\r\n```\r\n\r\n\r\nCellular noise lookup:\r\nFootball shaped segments connected together create a kind of winding cave system. Increasing the Jitter of the cavenoise would vary the cell size/shape a bit more as well. \r\n![image](https://user-images.githubusercontent.com/20022336/44739464-d1352380-aac5-11e8-865c-533a38c93e62.png)\r\n![2018-08-28_13 10 43](https://user-images.githubusercontent.com/20022336/44740244-f0cd4b80-aac7-11e8-99bf-40375b33cba7.png)\r\n```\r\ninit(){\r\n\tFastNoise perlin = new FastNoise();\r\n\tFastNoise cavenoise = new FastNoise();\r\n\tcavenoise.SetNoiseType(NoiseType.Cellular);\r\n\tcavenoise.SetFrequency(0.1F);\r\n\tcavenoise.SetCellularNoiseLookup(perlin);\r\n\tcavenoise.SetCellularReturnType(CellularReturnType.NoiseLookup);\r\n}\r\n\r\ngenTerain(){\r\n\t\tfor (int y = 0; y <= height; y++) {\r\n                \tfloat cave = cavenoise.GetNoise(realX*25, y*65, realZ*25); //could probably just increase cavenoise frequency instead but was playing with values here \r\n            \t\tif(cave < 0.0F){\r\n            \t\t\tprimer.setBlockState(x, y, z, Blocks.STONE.getDefaultState());\r\n            \t\t}\r\n                \t\r\n                }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/PersonTheCat/CaveGenerator/issues/comments/469025334","html_url":"https://github.com/PersonTheCat/CaveGenerator/issues/13#issuecomment-469025334","issue_url":"https://api.github.com/repos/PersonTheCat/CaveGenerator/issues/13","id":469025334,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2OTAyNTMzNA==","user":{"login":"PersonTheCat","id":33143148,"node_id":"MDQ6VXNlcjMzMTQzMTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/33143148?v=4","gravatar_id":"","url":"https://api.github.com/users/PersonTheCat","html_url":"https://github.com/PersonTheCat","followers_url":"https://api.github.com/users/PersonTheCat/followers","following_url":"https://api.github.com/users/PersonTheCat/following{/other_user}","gists_url":"https://api.github.com/users/PersonTheCat/gists{/gist_id}","starred_url":"https://api.github.com/users/PersonTheCat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PersonTheCat/subscriptions","organizations_url":"https://api.github.com/users/PersonTheCat/orgs","repos_url":"https://api.github.com/users/PersonTheCat/repos","events_url":"https://api.github.com/users/PersonTheCat/events{/privacy}","received_events_url":"https://api.github.com/users/PersonTheCat/received_events","type":"User","site_admin":false},"created_at":"2019-03-03T13:56:26Z","updated_at":"2019-03-03T13:56:26Z","author_association":"OWNER","body":"Released in version 0.13. Still working on basically letting users choose whichever FastNoise arguments they want, but I'll go ahead and close this issue. "}}
other: {"actor":{"display_login":"PersonTheCat"}}