GithubHelp home page GithubHelp logo

alterebro / perlin-noise-3d Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 2.0 1.03 MB

3D Perlin Noise

Home Page: https://npm.im/perlin-noise-3d

JavaScript 100.00%
perlin-noise perlin noise 3d noise-generator

perlin-noise-3d's People

Contributors

alterebro avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

perlin-noise-3d's Issues

Draw 3D polar sphere texture

working code for 3D sphere

let f = 10; // factor to scale by
let radius = 30; 
let values = []
for (let lat = 0; lat < 360 * f; lat++) {
    for (let long = 0; long < 180 * f; long++) {

        var phi = ((long) / f) * (Math.PI / 180);
        var theta = ((lat) / f) * (Math.PI / 180);

        var x = -((radius) * Math.sin(phi) * Math.cos(theta));
        var z = ((radius) * Math.sin(phi) * Math.sin(theta));
        var y = ((radius) * Math.cos(phi));

      noise.get(x+radius, y+radius, z+radius);
}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.