[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-92240":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":15,"rankGlobal":8,"rankLanguage":8,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":17,"hasPages":17,"topics":19,"createdAt":8,"pushedAt":8,"updatedAt":20,"readmeContent":21,"aiSummary":22,"trendingCount":13,"starSnapshotCount":13,"syncStatus":12,"lastSyncTime":23,"discoverSource":24},92240,"BuildingGeneratorThreeJS","achrefelouafi\u002FBuildingGeneratorThreeJS","achrefelouafi",null,"TypeScript",280,33,2,0,125,51.59,"MIT License",false,"main",[],"2026-07-22 04:02:05","# BuildingGeneratorThreeJS\n\nA procedural Hong Kong building generator for Three.js, ported from a Blender\ngeometry-nodes setup (`procedural-hong-kong-building\u002Fsource\u002Fprocedural_building.blend`).\nOriginal model URL : https:\u002F\u002Fsketchfab.com\u002F3d-models\u002Fprocedural-hong-kong-building-528a732e84c44fd49c4726f341014a23\n\nThe original 592-node \"build system\" node group was reverse-engineered into a\nTypeScript placement algorithm ([docs\u002FBUILD_SYSTEM.md](docs\u002FBUILD_SYSTEM.md)); the\n~190 building parts (walls, windows, AC units, clotheslines, storefronts, roof props…)\nare exported from the .blend into a single instanced asset kit\n(`public\u002Fassets\u002Fkit.glb` + `kit_manifest.json`).\n\n## Run\n\n```sh\nnpm install\nnpm run dev\n```\n\nAll 18 generator parameters from the Blender modifier (floors, footprint, AC\u002Fclothline\u002F\nlights probabilities, window type & open amount, curtains, store state, seed, low-poly\ntoggle…) are exposed as live sliders.\n\n## Re-exporting the asset kit\n\nIf you edit assets in the .blend, re-run the export (Blender 4.2+):\n\n```sh\nblender --background procedural-hong-kong-building\u002Fsource\u002Fprocedural_building.blend \\\n        --python tools\u002Fexport_kit.py -- public\u002Fassets\u002Fkit.glb public\u002Fassets\u002Fkit_manifest.json\n```\n\n## Structure\n\n- `src\u002Fgenerator.ts` — the ported node graph: grids, seeded RNG, placements\n- `src\u002Fkit.ts` — GLB kit loader + InstancedMesh builder\n- `src\u002Frng.ts` — Blender-style hash(id, seed) random values\n- `src\u002Fmain.ts` — scene, lighting, lil-gui controls\n- `tools\u002F` — Blender headless scripts (kit export, node-graph dump)\n","这是一个基于Three.js的香港风格建筑程序化生成器，将Blender几何节点系统完整移植为TypeScript算法，支持实时调节18个参数（如楼层数、窗型、空调机位、晾衣绳概率等）动态生成高细节城市建筑模型。核心采用实例化渲染（InstancedMesh）与种子化随机数（Blender兼容哈希RNG），结合预导出的GLB资产包（含190+部件）实现高性能可视化。适用于城市数字孪生、游戏场景原型、建筑可视化教学及Web端3D城市建模演示等轻量级交互式应用。","2026-07-08 04:29:55","CREATED_QUERY"]