Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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: --peak is the summit and --from is 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,lon frames 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-az and --sun-el, or --time day|golden|blue|night.
  • Air: --haze sets dust (0.1 crisp, 1+ dusty), --air sets how blue distant things get, and --mist sets the valley mist density (0 turns it off; above about 6 it becomes a flat featureless sheet).
  • Snow: --snowline in 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 NAME gives 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, and post_terrain.py then 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 auto turns a lake near the
Полный SKILL.md на GitHub

Установить procedural-realism в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/evals.jsonevals/files/mountain_photo.jpgevals/trigger_evals.jsonreferences/lessons.mdreferences/painting.mdreferences/scenes.mdreferences/terrain_features.mdscenes/pomegranate.jsonscenes/prism_and_crystal.jsonscenes/wine_and_marbles.jsonscripts/dem.pyscripts/osm_roads.pyscripts/paint.pyscripts/paint_compare.pyscripts/paint_media.pyscripts/paint_strokes.pyscripts/paint_wash.pyscripts/pathtracer.pyscripts/pbr_terrain.pyscripts/post_pathtrace.pyscripts/post_terrain.pyscripts/terrain_near.pyscripts/timelapse.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить procedural-realism с