Gravity Simulator

A particle simulation showing the effects of gravity on masses in 3D space. Each object applies a force on every other object in the system. When objects collide they become one mass with an increased gravitational pull. Sizes are based on masses and densities and gravitational forces are based on Newton's Law of Universal Gravitation:


F - Force between two objects
G - Gravitational constant
m1 - mass of object 1
m2 - mass of object 2
r - distance between objects

This is an O(n2) system (every particle interacts with every other particle) however the calculations are completed on the GPU to optimize performance.

Renderer

Currently, just a real-time raytracer.
WARNING! GPU intensive. May cause browser to freeze.

Interactive Music Player

A particle simulation showing the effects of gravity on masses in 3D space. Each object applies a force on every other object in the system. When objects collide they become one mass with an increased gravitational pull. Sizes are based on masses and densities and gravitational forces are based on Newton's Law of Universal Gravitation:

This is an O(n2) system (every particle interacts with every other particle) however the calculations are completed on the GPU to optimize performance.

Controls

(These are temporary. It will be more interactive in the future.)

SHIFT + LEFT MOUSE DRAG
Rotate shapes around center.

MOUSE WHEEL
Zoom in/out on center.

SPACE BAR
Start/Stop Music.

Spaceship Simulator

Work in progress. Nothing to see here. Move along.

space

But actually, there's not much going on yet.

FFT Filterer

Transforms images into the frequency domain, applies filters, then transforms them back to the spectral domain.

space

Test Scene

Used to test the features of my WebGL library.

Copyright © loganbarnes.net