프롬프트 한 장으로 만든 튀니지 '시디 부 사이드' 3D 산책 씬

Sidi Bou Said — A Procedural 3D Walk Above the Gulf of Tunis

pulkitxm2026-06-16frontendClaude Code

Three.js로 튀니지 절벽 마을 시디 부 사이드를 절차적으로 렌더링하는 단일 HTML 파일을 프롬프트 한 장으로 생성한 claude-directory 프로젝트. 외부 에셋 금지·플레이스홀더 금지 같은 제약과 건축 디테일 요구가 인상적인 고밀도 스펙 프롬프트다 (MIT 라이선스, 프롬프트·데모 전문 공개).

prompt · en
# Sidi Bou Said — A Procedural 3D Walk Above the Gulf of Tunis
 
## Overview
 
Write a complete, production-ready, single-file HTML/JavaScript application that renders a highly detailed, photo-realistic, navigable 3D scene of the iconic cliffside village of **Sidi Bou Said, Tunisia** using Three.js.
 
## Critical Instructions — No Lazy Code
 
- **** Do not use any external asset URLs (no external `.gltf`, `.obj`, `.jpg`, or `.png` files) as they can break or fail CORS. All textures, heights, and models must be generated dynamically and procedurally within the script — for example, using an HTML canvas to draw textures, procedural noise algorithms for plaster and stone, or mathematical structures for 3D meshes.
- **No placeholders.** Do not write placeholder comments, truncated code blocks, `// TODO` markers, or "left as an exercise" shorthand.
- **Single file.** The output must be a single, copy-pasteable HTML file that runs perfectly immediately when opened in a browser.
 
## Technical Requirements & Features
 
### 1. Libraries
 
- Load Three.js and `OrbitControls` via a reliable CDN (cdnjs or unpkg).
 
### 2. Iconic Architecture (Sidi Bou Said style)
 
- **White-washed plaster walls**: Buildings with flat roofs, rounded corners, and a couple of traditional domes (*koubba*). Implement a procedural stucco texture (low-frequency noise bump map) applied to a clean matte-white material to mimic hand-plastered walls.
- **Sidi Bou Said blue accents**: Distinctive vibrant blue doors, arched frames, and window grates.
- **Ornamental windows & doors**: Procedurally generate arched wooden doors featuring detailed black ornamental stud patterns (drawn using canvas coordinates). Create blue wooden window screens (*mushrabiya*) or curved wrought-iron protective grilles using nested geometries.
 
### 3. Cliffside Terrain & Cobblestone Alleyway
 
- Establish a winding, sloped pedestrian alleyway representing the steep streets of the village, ending at a viewpoint overlook.
- The street must use a procedural cobblestone texture (canvas-generated noise representing individual rounded stones with grey grout) applied as a displacement and roughness map.
- Add a rustic stone retaining wall / barrier at the edge of the cliff.
 
### 4. The Mediterranean Overlook (background sea & sky)
 
- Provide a dramatic view of the Gulf of Tunis below the cliff.
- **Water**: Use a custom shader (or a deep-blue `MeshStandardMaterial` with layered scrolling normal maps) to simulate calm, glittering sea water reflecting the afternoon sun.
- **Sky**: A warm, bright Mediterranean sky with subtle atmospheric scattering and a powerful sun source.
 
### 5. Procedural Flora (vibrant bougainvillea & olive trees)
 
- **Bougainvillea**: Create climbing vines draped over the white walls. Use instanced meshes for thousands of tiny, vibrant magenta/pink petals (procedural alpha-masked shapes) clustered together.
- **Potted plants**: Place terracotta pots along the alleyway containing small green plants and flowers.
 
### 6. Mediterranean Lighting & Shadows
 
- Set up a high-intensity `DirectionalLight` representing the intense Tunisian sun, casting sharp but soft-edged shadows (`THREE.PCFSoftShadowMap`).
- Use a `HemisphereLight` with a sky-blue hemisphere color and a warm sandy ground color to emulate realistic bounce light bouncing off the white walls.
- Configure `ACESFilmicToneMapping` to handle the high contrast between the bright white-washed walls and deep blue shadows without blowing out the highlights.
 
### 7. Navigation & Exploration
 
- Implement `OrbitControls` or a first-person WASD / pointer-lock setup. Restrict the camera height and boundary limits to keep the user at human scale (eye level) as they navigate up and down the winding blue-and-white alleyway.
 
### 8. Optimization
 
- Maintain 60 fps on standard desktop GPUs by employing instanced geometry for repeating architectural elements (stairs, window frames, flowers) and handling window resizing flawlessly.
 
---
 
Generate the full, un-truncated, single-file HTML code now.
</content>
</invoke>
 

이 프롬프트가 잘한 것

실패 요인(CORS·에셋 링크 깨짐)을 미리 차단하는 명시적 제약.

  • 실패 요인(CORS·에셋 링크 깨짐)을 미리 차단하는 명시적 제약 — 이유까지 함께 적어 모델이 대안(절차적 생성)을 스스로 고르게 했다.

    지시 명확성 가이드
  • 출력 완전성 기준을 선언 — 'TODO 없는 복사-실행 가능한 단일 파일'이라는 성공 기준이 명확하다.

    출력 형식 가이드

사용 세팅

modelclaude-fable-5
notes저장소 README에 '모든 프로젝트는 Claude Fable 5로 생성'이라 명시. 저장소에 .claude/agents 구성 존재
GitHub
frontendClaude Code

Fable 5로 생성한 웹 UI 실험 189개 오픈소스 갤러리

pulkitxm · 2026-06-10

Amber Foundry — Warm-Intelligence Operations Landing Page 데모 포스터 이미지GitHub
frontendClaude Codeprompt

'네온 온 블랙의 정반대' — 반례로 톤을 지시한 랜딩페이지

pulkitxm · 2026-06-20

# AMBER FOUNDRY — WARM-INTELLIGENCE OPERATIONS LANDING PAGE
Aethera — Cinematic Hero Section with Looping Video Background 데모 포스터 이미지GitHub
frontendClaude Codeprompt

스펙 문서형 프롬프트로 만든 시네마틱 히어로 'Aethera'

pulkitxm · 2026-06-16

# Aethera — Cinematic Hero Section with Looping Video Background