Files
EVEngine/examples/skyscraper-generator
西风逍遥游 293be41d66 Merge remote-tracking branch 'origin/dev' into codex/architecture-consolidation
# Conflicts:
#	cmake/module_manifest.cmake
#	docs/usr/modules/procgen.md
#	src/engine/CMakeLists.txt
#	src/engine/cmdline/Run.cpp
#	src/engine/common/ScriptModule.h
#	src/modules/animation/Animation.cpp
#	src/modules/physics/World.cpp
#	src/modules/physics/World3D.cpp
#	src/modules/procgen/Procgen.cpp
#	src/modules/procgen/Procgen.h
#	src/modules/scene/SceneCapabilities.cpp
#	src/modules/schema/Schema.cpp
#	src/modules/schema/Schema.h
2026-08-27 14:52:28 +08:00
..

Sky Lab — Procedural Skyscraper Generator

Interactive showcase for the procgen mesh.skyscraper recipe. Every seed rebuilds the same deterministic setback-tiered tower with a window grid, an optional spire, and a procedural facade texture.

Run

make run/win32-debug GAME=examples/skyscraper-generator
make run/linux-debug  GAME=examples/skyscraper-generator

Controls

Key Action
R New random seed
1 / 2 Fewer / more setback tiers
W Toggle window density
S Toggle spire
T Cycle facade texture recipe

Notes

  • Mesh parameters: baseWidth, baseDepth, tiers, tierHeight, setback, windowCols, windowRows, windowDepth, spireHeight.
  • Window quads are raised a thin lip in front of the wall so openings read under directional light without coplanar z-fighting. UV mapping lets a small atlas tint windows bright vs walls dark.
  • A render smoke test (procgen.render.skyscraperPng) outputs build/<platform>/test/out/skyscraper.png.