Command Palette

Search for a command to run...

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

procedural-terrain-art

БесплатноЗапускает вложенные скриптыНе проверен

Turn any real mountain, volcano, range, canyon or island on Earth into high-resolution procedural art from actual elevation data, in six print styles…

dogumот dogum★ 26 звёзд на GitHub

Об этом скилле

Procedural terrain art

This skill draws a real place, not an invented one. It downloads real elevation data, looks at the mountain from a real viewpoint, hides the lines that would be behind other terrain, and renders the result in a chosen print style. Everything is code, so any output can be re-rendered at any size, angle, light or palette.

Requirements: Python 3 with numpy, scipy, matplotlib, pillow and contourpy; network access to AWS Terrain Tiles; ffmpeg for video (optional).

Work in a writable folder (for example the session's outputs folder) and call the scripts by path. The skill folder itself may be read-only once installed, so nothing should be written there. In the commands below, SK is this skill's folder (the one containing this file). Images, DEM caches and video frames go next to --out, relative to the current folder.

If the user wants a photographic look (atmosphere, lake reflections, forests, a city at blue hour) or a painted one (oil, watercolour, ink), that is the procedural-realism skill.

What you can make

Output Tool Typical time
Still image, one style (PNG/JPG, any size) $SK/scripts/render.py --style <name> 5–15 s at 3000×1000
All six styles + contact sheet $SK/scripts/render.py --style all ~40–60 s
Looping orbit video (MP4) $SK/scripts/animate.py 1–4 s per frame at 1500×500
Interactive web studio (sliders, six styles, orbit, PNG export) $SK/scripts/build_studio.py ~5 s to build

Styles: survey (engraved ridgelines on parchment, sun in the saddle), topo (true contour lines from a high camera, triangulation network), nocturne (moonlit lines, stars, crescent), stipple (pointillist dots), riso (two spot inks, halftone, misregistration), woodcut (solid ink mass with carved lines that widen in the light).

Workflow

  1. Pin down the place. You need the summit's lat/lon and a viewpoint: the town or spot the famous view is from, passed as --from lat,lon (or --facing <bearing> if there's no obvious viewpoint). The viewpoint decides which side of the mountain faces the camera and which peak sits on the left or right. Look coordinates up with web search if you're not certain; don't guess. If the user shows an image, identify the mountain from its silhouette and work out the viewpoint from which peak is on which side.
  2. Draft fast. Run with --quality 0.5 (and a smaller --size if you like) and look at the output (view a downscaled copy; the full file is too big to inspect well). The first run fetches elevation tiles and caches them next to the output as dem_<lat>_<lon>.npz. Later runs into the same folder (render, animate and the studio) reuse it if it covers the area they need, and fetch a larger one if it doesn't; --dem reuses a file from anywhere.
  3. Frame it. Framing is automatic for the landform (see below). Adjust with the knobs in the table, one or two at a time, looking at each result.
  4. Render final at --quality 1 and the target size. Deliver the PNG plus a JPG if the PNG is over the platform's upload limit.
  5. Offer the next step: the other styles as a contact sheet, an orbit video, or the web studio.
SK=/path/to/procedural-terrain-art          # this skill's folder; run from a writable folder
# Ararat from Yerevan (two labelled peaks, Armenian names)
python $SK/scripts/render.py --peak 39.7019,44.2986 --from 40.1792,44.4991 --style survey \
  --label "ՄԱՍԻՍ|5137 m" --label "ՍԻՍ|3896 [email protected],44.4011" --out out/ararat.png
# Fuji from Lake Kawaguchi, every style + contact_sheet.jpg
python $SK/scripts/render.py --peak 35.3606,138.7274 --from 35.5100,138.7550 --style all \
  --label "富士山|3776 m" --title "富士山" --out out/fuji/
# A horn: the Matterhorn from Riffelsee (all framing automatic)
python $SK/scripts/render.py --peak 45.97639,7.65861 --from 45.98333,7.76222 --style nocturne \
  --label "Matterhorn|4478 m" --out out/matterhorn.png
# A canyon: Brahma Temple from Mather Point
python $SK/scripts/render.py --peak 36.1304634,-112.0387030 --from 36.0616497,-112.1079463 --style riso \
  --label "Brahma Temple|2302 m" --label "Zoroaster Temple|2171 [email protected],-112.0452" \
  --title "Grand Canyon" --out out/canyon.png
# An island volcano seen from the coast is a quiet dome; this manual framing gives it shape
python $SK/scripts/render.py --peak 19.82056,-155.46806 --from 19.70556,-155.08583 --style topo \
  --yaw 40 --relief 1.3 --spacing 0.5 --pan-y -90 --label "Mauna Kea|4207 m" --out out/mauna_kea.png

Labels: "Name|subtitle" labels the main summit; add @lat,lon for other peaks. --title is the big word in riso and woodcut, usually the name in the local script. --footnote replaces the coordinates line. The script ends with a JSON line: the summit it found, peak and base elevations, extent, the detected kind and the shape scores. Check the peak elevation against the real one: a large mismatch means the coordinates are off. (Tiles smooth sharp s

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

assets/studio_template.htmlevals/evals.jsonevals/trigger_evals.jsonreferences/engine.mdscripts/animate.pyscripts/build_studio.pyscripts/dem.pyscripts/render.pyscripts/terrain_art.py

FAQ

Что делает скилл procedural-terrain-art?

Turn any real mountain, volcano, range, canyon or island on Earth into high-resolution procedural art from actual elevation data, in six print styles (engraved ridgelines, topographic contours, moonlit nocturne, stipple, risograph, woodcut), plus looping orbit videos and a self-contained interactive web studio. Framing adapts to the landform, so cones, horns like the Matterhorn, massifs, ranges, canyons and islands all work. Use this whenever someone wants a mountain or landscape drawn with code, a profile header or banner (X/Twitter, LinkedIn, YouTube), poster, wallpaper or print of a real place, Unknown Pleasures-style ridgeline art of a real mountain, topographic or contour-line art, or asks to recreate an AI-generated landscape with code, even if they never say "terrain" or "elevation". Not for copying the album cover itself, GIS work (hillshade, viewshed, QGIS maps), 3D-print models or logos. For photographic renders, lakes, night cities or painted looks, use procedural-realism.

Как установить скилл procedural-terrain-art?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл procedural-terrain-art запускает скрипты?

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

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

Сравнить procedural-terrain-art с