尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗An interactive, textured 3D model of a 35′-5″ × 49′-9″ house, built from the supplied ground-floor plan and dressed with the front elevation's facade, with a proposed 2BHK flat on the first floor, a walkable roof terrace and a side garden. Made with three.js (WebGL) and plain HTML/CSS/JavaScript.
Live site: https://pspk001.github.io/home/
| Dollhouse cut-away | Plan view | Walk-through |
|---|---|---|
| First floor (2BHK) | First-floor plan | Roof terrace |
|---|---|---|
The dining hall and kitchen rise double height, overlooked by the first-floor dining area across a glass railing. Along the back the wall is solid up to door height, with a tall glass wall above it facing the sunrise.
Upstairs, the dining table of the first-floor flat stands at the railing, with the living room behind a slatted teak screen.
The side garden on the north side of the house, from its gate: stepping stones run to the tulsi chaura by the puja room, between flower beds along the boundary wall and the house.
Double-click Home-3D-Viewer.html. It is one self-contained file (~780 KB) with all code,
styles and textures inside, so it works offline in any recent Chrome, Edge, Safari or Firefox
(WebGL 2 required). It also works on phones and tablets.
| Control | What it does |
|---|---|
| Exterior | Orbit around the house: drag to rotate, scroll / pinch to zoom, right-drag / two fingers to pan |
| Ground floor / First floor / Roof | Choose the level to look at. The room list, labels and minimap follow it, and the dollhouse and plan views slice the walls just above that floor |
| Dollhouse | Walls sliced at 7′-7″ above the chosen floor so every room is visible from above, from any angle |
| Plan | Top-down view of the chosen floor, with furniture |
| Walk | First-person tour: drag to look, WASD / arrows to move (Shift to run), double-click the floor to walk there. The stairs climb from the ground floor to the first floor and on to the roof, and you can walk out onto the front terrace and the roof terrace. On phones use the on-screen joystick |
| Rooms list / labels / minimap | Click any room to fly into it. The info card shows level, size, area, floor finish and a Walk inside button |
| Angle | One-click Front / Left / Back / Right / Top views |
| Wall cut | Slice the whole house at any height (from 1 ft above the floor up to the full house) |
| Sun | Move the sun from 7 AM to 6:30 PM (shadows update). As on site, it rises behind the house and sets over the road |
| Room labels / Furniture / Auto-rotate | Toggles |
| 📷 | Save the current view as a PNG |
Keyboard: 1–4 views · PgUp / PgDn floor up / down · L labels · F furniture · R auto-rotate · Esc back.
| Layer | Used |
|---|---|
| Markup / styling | HTML5, CSS3 (custom properties, backdrop blur, responsive bottom sheet for phones) |
| Language | JavaScript (ES modules) |
| 3D engine | three.js r186: WebGL 2 renderer, PBR materials, soft shadows, OrbitControls, CSS2DRenderer (labels), Sky, RoomEnvironment, RoundedBoxGeometry, BufferGeometryUtils |
| Tooling | Vite 8 (dev server + bundler) and vite-plugin-singlefile (builds the offline single HTML file) |
| Textures | Generated in code on <canvas>: vitrified and marble tiles, oak flooring, granite, subway and bathroom tiles, wood cladding, siding, pavers, plinth stone, grass, fabric, rug, asphalt. There are no image files |
Needs Node.js 18 or newer.
npm install
npm run dev # live dev server (opens http://localhost:5173)
npm run build # writes dist/index.html and refreshes Home-3D-Viewer.html
npm run preview # serve the production build
.github/workflows/deploy.yml runs on every push to main: it installs the packages, runs
npm run build and publishes dist/ to GitHub Pages (Settings → Pages → Source: GitHub Actions).
Edit the code, push, and the live site updates in about a minute.
home/
├─ Home-3D-Viewer.html standalone build: double-click to open
├─ index.html page + UI markup (Vite entry)
├─ package.json dependencies and scripts
├─ vite.config.js single-file build setup
├─ .github/workflows/ GitHub Pages build + deploy
├─ docs/ preview screenshots
└─ src/
├─ main.js start-up and loading screen
├─ config.js levels (plinth, ceilings, slabs, roof), door/window heights, plot, stair, colours
├─ plan.js every ground-floor wall, opening, door and room, measured from the floor plan (in feet)
├─ plan-ff.js the first-floor flat (walls, doors, windows, rooms) and the roof, plus their minimap outlines
├─ textures.js procedural canvas textures
├─ materials.js material library + the "wall cut" section shader
├─ geometry.js batching, world-scale UVs, extrusion and mesh-merging helpers
├─ style.css UI styles (desktop side panel, phone bottom sheet)
├─ build/
│ ├─ structure.js ground-floor walls, floors, ceiling slab, staircase, bathroom tiles, kitchen dado
│ ├─ openings.js ground-floor windows (frames, glass, grilles, sills, chajjas) and doors
│ ├─ firstfloor.js first-floor walls, doors and windows, floors, bathroom tiles, and the stair up to the roof
│ ├─ exterior.js stair tower front, roof terrace and parapets, rear glass wall, pipe line shaft, mumty, C-frame, cladding, gates, street
│ └─ furniture.js beds, wardrobes, sofas, dining, kitchens, toilets, mandir, SUV, fans, terrace and roof furniture…
└─ viewer/
├─ viewer.js renderer, lights, sky, view modes, room focus, picking
├─ walk.js first-person walking (collisions, stairs, joystick)
├─ tween.js camera animation helper
└─ ui.js panel, room list, minimap, info card, shortcuts
src/materials.js, e.g. paint('pBed1', 0xd3ddcb); feature walls are accentBed1, accentBed2, accentGuest, accentLiving, and upstairs accentBed3, accentBed4 (first-floor rooms use pFFLiving, pFFKitchen, pFFBed3, pFFBed4).floor: in ROOMS (src/plan.js) or FF_ROOMS (src/plan-ff.js). Options: tileMarble, tileWarm, wood, woodLight, tileKitchen, tileBath, marble, graniteGrey, pavers, terrace.FF_WALLS, FF_DOORS and FF_ROOMS in src/plan-ff.js (opening heights there are measured from the first-floor slab).LV and OPENING in src/config.js.buildFurniture() in src/build/furniture.js (positions are in feet).VOID in src/config.js.src/plan-ff.js and can be adjusted. The window positions on the side and rear walls of the first floor are part of the proposal too.GARDENsrc/config.jsbuildGarden()src/build/exterior.jssrc/materials.js and is separate from the app's title ("HOME", in index.html).REAR_COLS in src/config.js and C-F5 in src/plan.js.DUCT in src/config.js.