Skills

Threejs Raymarched Space Effects

Build raymarched space phenomena in Three.js.

Install

npx skills add scottstts/Threejs-Awesome-Graphics-Agent-Skills --skill threejs-raymarched-space-effects -g -a claude-code -y
Category
Engineering
Updated
13d ago
License
MIT
Context cost
Lightabout 998 tokens
Runs scripts
Yes, review before use

What it does

Build raymarched space phenomena in Three.js. Use for black-hole lensing, accretion disks, wormhole throat transits, curved-ray and null-geodesic integration, lensed celestial spheres, procedural star fields and galactic skies, relativistic-looking distortion, bounded volumetric structures, and GPU effects that need controlled numerical integration.

Raymarched Space Effects

Treat these effects as numerical renderers with explicit integration state. The visual character depends on coordinate choice, step policy, and how rays interact with emissive structures.

This skill contains exemplary examples and assets beyond descriptive guidance, they're worth studying, referencing, or even copying. Use them sufficiently when relevant and do NOT blindly skip them.

Workflow

  1. Define the effect-space transform and camera ray.
  2. Choose a physical, physically inspired, or purely artistic bending model.
  3. Bound the integration domain.
  4. Track ray position, direction, throughput, and accumulated radiance.
  5. Detect crossings with disks, shells, throats, or event boundaries.
  6. Sample the background only after integration terminates, filtered by the ray-bundle footprint rather than point sampled.
  7. Add diagnostics for trajectory, step count, and termination reason.

Read references/curved-ray-integrators.md for the two wormhole throat models, observer transport through a throat, the artistic curved-ray accretion integrator, disk composition, and implementation defects.

Read references/lensed-celestial-spheres.md for footprint-filtered skies, flux-conserving star point spreads, dust extinction, bright sources under display clipping, progressive accumulation, and the bloom kernel a compact source needs.

Read the curved-ray accretion volume for the inverse-square steering loop, thin disk density, front-to-back accumulation, deterministic star environment, and integrator diagnostics.

Read the Schwarzschild geodesic black-hole effect for RK2 null-geodesic integration, interpolated equatorial disk crossings, Doppler/redshift disk emission, lensed procedural deep field, and HDR bloom composition.

Read the whole SKILL.md on GitHub

More in Engineering