13. Where Next? — High-Quality Version
WARNING
This page takes a long time to render. After pressing the button, expect roughly 5–10 minutes in WASM (browser) (hardware-dependent). The screen will appear frozen during rendering — this is normal.
← Back to standard version (13 Where Next?)
Differences from the Standard Version
| Standard (13.md) | High-quality (this page) | |
|---|---|---|
| Resolution | 300 × 169 | 600 × 400 |
| Samples/px | 30 | 100 |
| Grid | 22 × 10 (a: -11..11, b: -5..5) | 22 × 22 (a: -11..11, b: -11..11) |
| Estimated time (WASM) | 5–10 seconds | 5–10 minutes |
The high-quality version uses the full 22×22 grid from the original book, placing more small spheres deep into the scene.
Implementation Difference
r113-final-scene-hq only changes the grid loop range — everything else is identical to r113-final-scene.
rust
// Standard version: 22 × 10
for a in -11..11 {
for b in -5..5 {
// High-quality version: 22 × 22 (same as the original book)
for a in -11..11 {
for b in -11..11 {The resolution and sample count differences are simply different constants at the top of render_image().
rust
// Standard version
let image_width = 300_i32;
let samples_per_pixel = 30_i32;
// High-quality version
let image_width = 600_i32;
let samples_per_pixel = 100_i32;