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
- Install the
atom-marching
package from Atom - Restart atom or hit
ctrl+alt+command+l
to reload all packages. - To start
marching.js
, select packages > atom-marching > toggle or use the keyboard shortcutctrl+alt+m
- Create a file with a .js extension in Atom
- Type
march( Sphere() ).render()
in your new file to test - Select your code, then use
ctrl+enter
to run it - Use
alt+enter
to run a block of code, delimited by blank lines ctrl+.
will clear the current scene- 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:
- https://atom.io/packages/atom-hydra