An experiment with Three.JS using its inbuilt ParticleSystem to create a “Starfield” effect. Starfields were a standard effect in most 90s space games, made even more popular by the “Flying Windows” screensaver.
This experiment goes a little deeper into the various Shaders and Postprocessing scripts that come along with Three.JS, it’s particle system, and related samples.
As is common in my experiments, the effect can be tweaked using various parameters exposed via the on-screen controls.
The tiny bit of animation involves moving the particles towards the Camera, and resetting them to a distant location when they fly past, creating an indefinite loop. One thing that would be cool is if I could figure out how to implement “afterimages” or “trails”.