procedural-realism
БесплатноЗапускает вложенные скриптыНе проверенMake photographic-style images with pure code and physics, no generative image model. Ray-marched terrain of any real mountain with physical sky, haze…
от dogum★ 26 звёзд на GitHubОб этом скилле
Procedural realism
Four tools, numpy/scipy/pillow only, that push how close pure math gets to a photograph or a painting:
| Tool | Best at | Time on 1 CPU |
|---|---|---|
scripts/pbr_terrain.py (+ post_terrain.py) |
Real mountains from real elevation data: atmosphere, golden light, shadows, snow, mist, clouds; optional lake reflections, trees and villages, blue hour with city lights along real streets (OpenStreetMap), moonlit night | 7 s at 600×200 · ~2.5 min at 3000×1000 plain · 5–13 min with water, trees or a city |
scripts/timelapse.py |
Sun-angle video (golden hour to night) along the real solar path for a date and place, every frame rendered so shadows slide | ~15 s per 600×200 frame, ~50 s at 1200×400, one core each; frames render 4 at a time (--jobs), so a 20 s clip (480 frames) ≈ 2 h at 1200×400 on 4 cores, 6 h on one |
scripts/pathtracer.py (+ post_pathtrace.py) |
Tabletop scenes from a JSON file: glass, liquids, metal, glossy fruit, soft or hard light, caustics (photon map), rainbow dispersion, depth of field | ~3 s per pass at 900×300; 30–70 s per pass at 2400×800; 60–80 adaptive spp (about an hour) for a clean final |
scripts/paint.py |
Any image (a render from above, or a photo the user uploads) as oil, impasto, gouache, watercolour or ink | 10–60 s at 3000×1000 |
Requirements: Python 3 with numpy, scipy and pillow; ffmpeg for timelapses. The terrain renderer needs network access to AWS Terrain Tiles for elevation data, and with --city to the OpenStreetMap Overpass API for streets (scripts/osm_roads.py; cached in --work/osm, with a synthetic street grid when it can't be reached).
Work in a writable folder (for example the session's outputs folder) and call the scripts by path: the installed skill folder may be read-only, and every script writes only to --work, --out and the current folder. In the commands below SK is this skill's folder (the one containing this file) and S=$SK/scripts.
If the user wants stylized or graphic output instead (line engravings, contour maps, risograph prints, woodcuts), that is the procedural-terrain-art skill.
Terrain: workflow
SK=/path/to/procedural-realism; S=$SK/scripts # run from a writable folder
ARARAT="--peak 39.7019,44.2986 --from 40.1792,44.4991 --second 39.6517,44.4011 --work work/ararat"
python $S/pbr_terrain.py $ARARAT --size 600x200 && \
python $S/post_terrain.py --bands work/ararat/bands_600x200 --out draft.png # draft: fetch + ~7 s
# final, in row chunks that each fit a time-limited shell (rows already on disk are skipped)
python $S/pbr_terrain.py $ARARAT --size 3000x1000 --rows 0:500
python $S/pbr_terrain.py $ARARAT --size 3000x1000 --rows 500:1000 && \
python $S/post_terrain.py --bands work/ararat/bands_3000x1000 --out final.png
- Where:
--peakis the summit and--fromis where the famous view is taken. Look both up; don't guess. The camera auto-backs along that line of sight until the mountain spans about 5° of view, which gives the telephoto "mountain from the city" look. Override with--cam-offset(km toward the peak; 0 = stand at--from). - Two peaks:
--second lat,lonframes two peaks together, for example Ararat and Lesser Ararat. - Light: this matters most. By default the sun lights the faces the camera sees, at 10° elevation (golden hour). Backlit mountains read as flat grey shapes. Tune with
--sun-azand--sun-el, or--time day|golden|blue|night. - Air:
--hazesets dust (0.1 crisp, 1+ dusty),--airsets how blue distant things get, and--mistsets the valley mist density (0 turns it off; above about 6 it becomes a flat featureless sheet). - Snow:
--snowlinein metres. The default is 68% of the way up. - Framing:
--layout right|center|left,--hfov,--pitch,--horizon F(true horizon at fraction F from the top),--cam-height(km above ground). If foreground ridges hide the base, that is real geography. Raise--cam-height, change--cam-offset, or keep it: framing between dark ridges often looks better. - Variants:
--tag NAMEgives a variant its own band folder (bands_WxH_NAME). Resuming a folder with different pixel-affecting flags stops with a message instead of mixing two pictures, andpost_terrain.pythen refuses that folder too, so a chained&&block can't save the old picture under a new name. Chunks can have any row range: missing rows are found and filled on the next run, and post refuses a folder with missing rows. - Check: each run prints the peak elevation it found. Compare it with the real value to catch wrong coordinates (tiles clip sharp summits a little: Fuji comes out at 3742 m, real 3776 m).
Lakes, forests, villages, night, timelapse
All off by default. Full flag list, recipes for every showcase, tuning notes and the pitfalls of each feature: references/terrain_features.md (read it before using any of these).
- Water:
--water-level autoturns a lake near the
Установить procedural-realism в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл procedural-realism?
Make photographic-style images with pure code and physics, no generative image model. Ray-marched terrain of any real mountain with physical sky, haze, shadows, snow, mist and clouds; mirror lakes; forests and villages; blue hour with a lit city or a moonlit starry night; sunset timelapse videos along the real sun path. A from-scratch path tracer renders JSON still lifes (glass, prisms with rainbow caustics, copper, fruit). A painterly finisher turns any image, including an uploaded photo, into oil, impasto, gouache, watercolour or ink. Use whenever someone wants a realistic or "CGI" render made from code, a photoreal landscape of a real place, a 3D still life without Blender, a painting of a render or photo, or an image path traced or ray traced from scratch with "no AI image". Not for help with other renderers (Blender, Cycles, Unreal), explaining rendering in words, photo filters or real-paint advice. For line-art, contour, riso or woodcut styles, use procedural-terrain-art.
Как установить скилл procedural-realism?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл procedural-realism запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic