Skip to content

Agent skill for creative 3D visualization: turn an idea into a Three.js/Blender scene worth exploring. Claude Code + Codex plugin, 223 recipes, 440 knowledge records, 22 proved kits, 37 runnable studies.

1.6 KB
Raw Blame

Light Through Matter

A planar ray-tracing bench for refraction, total internal reflection, and optional illustrative dispersion.

From examples/, run pnpm install once, then pnpm dev and open /optics/. Use pnpm build for all examples.

Generation prompt

Use 3dviz-pro-max to build an optical bench where rays intersect the same triangular faces that are rendered. Apply Snell's law and total internal reflection, let me vary refractive index and incident angle, switch between monochromatic and white-light studies, and distinguish direction markers from optical power or light speed.

Explore and implementation

Use Overview and Detail. Change index at 550 nm and incident bench angle, toggle the dispersion study, and play/pause direction markers. See scene.js, the shared scene, and physics helpers.

Source and limits

The trace follows OpenStax University Physics 3. Dispersion uses an authored Cauchy-like family, not measured glass. Fresnel splitting, absorption, optical power, and physical light speed are omitted.

Skill rules actually applied

The same geometry owns visible faces and intersection tests, applying the shared-space causality rule in physical interaction and claim boundaries in research and truth. Catalog mapping is retrospective.