This is a simple starter project for the Loopin creative coding system. It includes all the boilerplate and dependencies required to start development of a Loopin application. As well, it includes an example demo, implementing a spinning planet with motion blur and a cartoonishly simple, but expressive, lighting model.
Windows is not supported at this time. This project should work on a properly configured Intel-based Mac or Linux box. For more detailed requirements, see loopin-native. As well, to use the recorder
function of this demo, you will need ffmpeg.
git clone https://github.com/koopero/loopin-starter.git YOURPROJECT
cd YOURPROJECT
npm install
npm start
Once the starter project is running, point your browser at http://localhost:7004. This will show combined controls and documentation for the planet example.
Most Loopin development happens by editing files in the project directory, especially the files in the ./preset
and ./shader
directories.
Contains static configuration files, interpreted by the config module. Use the file default.yaml
to configure the server portion of this project, including the http port and control pages. Not autoloaded.
Contains Markdown control files. These are documents which contain simple, inline codes to wire control data to the application. If files are changed, simply reload in the browser.
Used by the application to store runtime generated data.
This is the data file which the loopin-server module uses to save application state between runs. Normally, you should not need to edit this file directly.
Contains .jpg
and .png
images, which will be autoloaded by default.
Mostly boilerplate code to get everything up and running. node/loopin.js
contains Loopin setup, with configuration of defaults such as which directories are autoloaded. The file node/logic/snapshot.js
contains a simple utility to take screenshots of the application, as an example of using javascript logic in Loopin apps.
YAML configuration files which are 'patched' to the Loopin system. By default, all presets in this directory are autoloaded.
GLSL shaders. To create a new shader, duplicate shader/base.vert
and/or shader/base.vert
with a new name.
Planet images courtesy of JHT's Planetary Pixel Emporium.
The Loopin system would not be possible without the support of HFour Design Studio.
The Loopin system intentionally creates a very promiscuous, completely unsecured local web server while this application is running. This server should not be exposed to open web, nor run in an environment where hooliganism is a possibility. For production applications, security MUST be implemented at the network layer.