atom-marching

live coding ray marchers from atom

charlieroberts

386

0

1.0.1

MIT

GitHub

Marching.js in Atom

Marching.js is a JavaScript library for compiling raymarchers that run on the GPU and experimenting with volumetric rendering / constructive solid geometry. This plugin enables it to run in Atom; no browser required.

Running Atom-Marching

  1. Install the atom-marching package from Atom
  2. Restart atom or hit ctrl+alt+command+l to reload all packages.
  3. To start marching.js, select packages > atom-marching > toggle or use the keyboard shortcut ctrl+alt+m
  4. Create a file with a .js extension in Atom
  5. Type march( Sphere() ).render() in your new file to test
  6. Select your code, then use ctrl+enter to run it
  7. Use alt+enter to run a block of code, delimited by blank lines
  8. ctrl+. will clear the current scene
  9. For examples, tutorials, and documentation, see the online marching.js playground (Chrome / Firefox).

Error: webgl not supported

Try running atom from the command line as follows: atom --ignore-gpu-blacklist

Code for this plugin adapted from: