River Model

by Chantal Roth

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>The River Model of Gravity</title>
    <style>
        body { margin: 0; overflow: hidden; background-color: #000; font-family: sans-serif; }
        #info {
            position: absolute;
            top: 20px;
            left: 20px;
            color: white;
            background: rgba(0,0,0,0.7);
            padding: 15px;
            border-left: 3px solid #00d2ff;
            pointer-events: none;
            max-width: 300px;
        }
        h1 { margin: 0 0 10px 0; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; }
        p { font-size: 0.9rem; line-height: 1.4; color: #ccc; }
        .highlight { color: #ff3333; font-weight: bold; }
    </style>
</head>
<body>

<div id="info">
    <h1>The River Model</h1>
    <p>Visualizing space flowing into a mass.</p>
    <p><strong>Blue Flow:</strong> Subluminal flow ($v < c$)</p>
    <p><strong>Red Zone:</strong> Superluminal flow ($v > c$)</p>
    <p><em>Note the ontological issues:</em> Space is continuously created at the edge and destroyed at the center.</p>
</div>

<script type="importmap">
  {
    "imports": {
      "three": "https://unpkg.com/three@0.160.0/build/three.module.js",
      "three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
    }
  }
</script>

<script type="module">
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

// --- SCENE SETUP ---
const scene = new THREE.Scene();
scene.fog = new THREE.FogExp2(0x000000, 0.002);

const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.set(0, 20, 40);

const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth,...