achrefelouafi/BuildingGeneratorThreeJS
Tentang
A procedural Hong Kong building generator for Three.js, ported from a Blender geometry-nodes setup (procedural-hong-kong-building/source/procedural_building.blend). Original model URL : https://sketchfab.com/3d-models/procedural-hong-kong-building-528a732e84c44fd49c4726f341014a23
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- +2
- dalam 7 hari
- +7
- dalam 15 hari
- +9
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliBuildingGeneratorThreeJS
A procedural Hong Kong building generator for Three.js, ported from a Blender
geometry-nodes setup (procedural-hong-kong-building/source/procedural_building.blend).
Original model URL : https://sketchfab.com/3d-models/procedural-hong-kong-building-528a732e84c44fd49c4726f341014a23
The original 592-node "build system" node group was reverse-engineered into a
TypeScript placement algorithm (docs/BUILD_SYSTEM.md); the
~190 building parts (walls, windows, AC units, clotheslines, storefronts, roof props…)
are exported from the .blend into a single instanced asset kit
(public/assets/kit.glb + kit_manifest.json).
Run
npm install
npm run dev
All 18 generator parameters from the Blender modifier (floors, footprint, AC/clothline/ lights probabilities, window type & open amount, curtains, store state, seed, low-poly toggle…) are exposed as live sliders.
Re-exporting the asset kit
If you edit assets in the .blend, re-run the export (Blender 4.2+):
blender --background procedural-hong-kong-building/source/procedural_building.blend \
--python tools/export_kit.py -- public/assets/kit.glb public/assets/kit_manifest.json
Structure
src/generator.ts— the ported node graph: grids, seeded RNG, placementssrc/kit.ts— GLB kit loader + InstancedMesh buildersrc/rng.ts— Blender-style hash(id, seed) random valuessrc/main.ts— scene, lighting, lil-gui controlstools/— Blender headless scripts (kit export, node-graph dump)
Jelajahi proyek terkait
Memuat…