procedural-planet | Proceural planet in WebGL and three.js | Graphics library

 by   holgerl JavaScript Version: Current License: MIT

kandi X-RAY | procedural-planet Summary

kandi X-RAY | procedural-planet Summary

procedural-planet is a JavaScript library typically used in User Interface, Graphics, Three.js, WebGL applications. procedural-planet has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Proceural planet in WebGL and three.js. See the [resulting 3D animation] See the [blog post] See also [part 2] of the blog post.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              procedural-planet has a low active ecosystem.
              It has 56 star(s) with 10 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 1 have been closed. On average issues are closed in 87 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of procedural-planet is current.

            kandi-Quality Quality

              procedural-planet has no bugs reported.

            kandi-Security Security

              procedural-planet has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              procedural-planet is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              procedural-planet releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of procedural-planet
            Get all kandi verified functions for this library.

            procedural-planet Key Features

            No Key Features are available at this moment for procedural-planet.

            procedural-planet Examples and Code Snippets

            No Code Snippets are available at this moment for procedural-planet.

            Community Discussions

            QUESTION

            Shader error in '...': Unknown parameter type (39) for '...' at kernel '...'
            Asked 2020-Aug-12 at 16:01

            I know I'm just dumping a lot of code here, but this error message that I am getting does not give a real line number nor does it show up on Google for me. I don't even know what it is supposed to mean, since F3 and G3 are both constants.

            Well, it does give line 21 in the inspector, but that doesn't make any sense if you go to that line on either compute shader file. Same goes for line 39, which I also looked at.

            Double-clicking the errors do not bring me anywhere.

            DefaultPlanetGenerator.compute

            ...

            ANSWER

            Answered 2020-Aug-08 at 22:55

            Replacing all double types with float types solved the issue.

            Source https://stackoverflow.com/questions/63320638

            QUESTION

            Terrain Generation with Realistic Height Map
            Asked 2017-May-06 at 05:22

            I am having troubles finding out the best way to add realism to a terrain generator. At this point I have a flood fill that works perfectly, however if I want to add any sort of realism I will need to add in height variables. I have seen the following methods attempted to make heightmaps:

            Right now I am generating plates through my flood fill, but I am not sure where to go from there.

            I am not sure about using a noise function just due to the fact that I would need to generate biomes within a continent to make it look realistic (A continent with just mountains would be unrealistic). The diamond square algorithm probably isn't going to work for my needs because I would like to be flexible in sizing.

            What is my best option for generating a height map if I have square tiles to give some realism, not very resource intensive, and keep the code I have?

            Here is an image of the generation, and the generation code is in the Github project: https://github.com/Hunterb9101/TileWorkspace/blob/59fe1f28f019d7128c970772d1ef6bd30d63072c/Generation.png

            ...

            ANSWER

            Answered 2017-Apr-05 at 19:12

            tldr: I would use a perlin noise generation with some tacked on biomes.

            This article/tutorial goes over code snippets and their implementation methods. Suggesting the best algorithm for your task depends entirely on your skill and end result goals.

            However a brief description of perlin noise and using it with realistic aims in mind...

            As with most terrain generation, noise functions are your friend - Perlin and/or simplex noise in particular. I've implemented some planetary terrain generation algorithms and although they are in 2d, the resulting height / "texture" map could be projected to a sphere rather easily. I assume conversion to hex format is not an issue either.

            My technique has been creating multiple noise layers, e.g. temperature and humidity. Temperature is fused with a latitude coordinate, in order to make the equator more hot and poles cold, while the noise makes sure it's not a simple gradient. The final terrain type is selected by rules like "if hot and not humid then pick desert". You can see my JavaScript implementation of this here: https://github.com/tapio/infiniverse/blob/master/js/universe/planet-aerial.js

            As for the water percentage, you can just adjust the water level height as noise functions tend to have a constant average. Another option is to apply an exponent filter (useful also when generating clouds, see my implementation here).

            Another way to generate spherical terrain that came into mind (haven't tested) is to use 3d noise and sample it from a surface of a sphere, using the resulting value as the ground height at that point. You can then weight that according to amount of water on planet and the latitude coordinate.

            I'll end with a link to one practical implementation of 3d planetary terrain generation: http://libnoise.sourceforge.net/tutorials/tutorial8.html

            To generate any random style of realistic terrain you are going to have to use noise of some kind. In past projects I myself have used the diamond square algorithm. However that was to simply generate heightmaps.

            For some more light reading I would check out this article about realistic terrain techniques.

            Source https://stackoverflow.com/questions/43221084

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install procedural-planet

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/holgerl/procedural-planet.git

          • CLI

            gh repo clone holgerl/procedural-planet

          • sshUrl

            git@github.com:holgerl/procedural-planet.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link