Five Minute Guide
Last updated
Last updated
Niltree can run any kind of WebGL website, twice as fast as Chrome. You can get this up and running in under five minutes.
This guide will show you how to install Niltree and open a WebGL site.
Ensure you have :
If you're on Windows, install from a Powershell Admin prompt:
Install niltree:
Let's open a ThreeJS website in Niltree.
Go to the ThreeJS page using your web browser of choice (Chrome, Firefox, etc):
Now we're going to open this same site using Niltree.
If you're on Windows, type niltree-win
and press enter.
Other platforms, type niltree
.
Niltree will open and run the site:
Let's navigate to a different site.
The niltree command prompt is a NodeJS REPL. If you're a node developer, the interface should be quite familiar. Open niltree and run .help
:
Similar to Chrome's devtools, you can evaluate any expression you want in the context of the current website. Navigate somewhere and type window.location
:
This covers the basics of using Niltree.
Most of these ThreeJS examples should run fine in Niltree. Let's try the first one, . Observe that this is a WebGL site, and that it renders fine in Chrome:
Open your terminal (we like ):
Paste the ThreeJS URL () and press enter.
Pick out a different ThreeJS that you like:
Switch back to Niltree's command prompt and paste the URL (e.g. ):