GithubHelp home page GithubHelp logo

sandbox's Introduction

README

FirstPersonRaytracer TODO

Perlin CONTROLS: key == '<' || key == ',' Remove one fifth of the particles in the scene. key == '>' || key == '.' Emit another plane of particles along the ZY plane of the bounding-box.

  key == '+' || key == '='
    Increase the number of line segments draw on the screen for each particle.
  key == '-'
    Decrease the number of line segments draw on the screen for each particle.

The SEED variable, along with ATTENUATION, affects form of the 3D perlin noise.
  key == '['
    Decrease the SEED value
  key == ']'
    Increase the SEED value

The _BOUND variables control the dimensions of the bounding box

  key == 'x'
    Decrease the X_BOUND
  key == 'X'
    Increase the X_BOUND

  key == 'y'
    Decrease the Y_BOUND
  key == 'Y'
    Increase the Y_BOUND

  key == 'z'
    Decrease the Z_BOUND
  key == 'Z'
    Increase the Z_BOUND

  key == 'r'
    Toggles pseudo redraw. 
    Instead of just not redrawing the background, this allows the particle TAIL_LENGTH to stretch to 200.
  
  key == 'b'
    Toggles whether the particles are bounded by the _BOUND variables, or are allowed to move out into the world.

The ATTENUATION variable, along with SEED, affects form of the 3D perlin noise.
  key == '(' || key == '9'
    Decrease the ATTENUATION variable
  key == ')' || key == '0'
    Increase the ATTENUATION variable

  key == 'd'
    Toggle console debugging.

  key == 'c'
    Toggle colored particles.
  
  keyCode == UP
    Zoom in.
  keyCode == DOWN
    Zoom out.
    

  Speeding up the particles means the velocity vector that defines the length of the lines drawn are longer, giving the 3D perlin form more definition with minimal computational load. It also makes the 3D perlin form less defined.
  
    keyCode == LEFT
      Increase particle speed.
    keyCode == RIGHT
      Decrease particle speed.

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.