霍格沃茨大礼堂 360° 全景三维场景霍格沃茨大礼堂 360° 全景三维场景 分享 收藏使用纯原生 Three.js 经典脚本构建可离线直接运行的《哈利波特》霍格沃茨大礼堂 360° 沉浸式全景三维场景。代码与数据编程设计提示词 复制新建一个项目,使用 Three.js 制作一个可直接双击 `index.html` 打开的 360° 沉浸式全景三维场景。所有文件均放在当前任务目录下,支持完全离线运行,采用经典 `<script>` 引入方式,不使用 ES module。 【哈利波特·霍格沃茨大礼堂】 站在礼堂中轴入口处,还原开学晚宴前夕的魔法大礼堂盛景。 【全景构图】 - 东侧:学院长桌、金色烛台与哥特高窗。 - 北侧:高台教师席、巨型彩绘拱窗与石阶。 - 南侧:厚重橡木大门与两侧石雕。 - 西侧:另两排学院长桌、四大学院色旗与承重石柱。 【动态效果】 - 漂浮蜡烛在空中上下缓慢浮动。 - 魔法天花板呈现流动云层与闪烁星光。 - 桌面餐具高光随光线变化,蜡烛火苗自然摇曳闪动。 【本题重点】 - 哥特式拱顶必须具备真实的建筑厚度与空间体积感。 - 漂浮蜡烛的光照衰减严格控制,仅照亮其邻近物体。 代码按功能模块分文件逐个写入,每完成一个文件汇报一句进度。全部完成后收起多余说明,将默认相机视角调整到最适合直接截图构图的状态。 【风格】 - 整体呈现写实偏温暖的治愈插画质感,采用 `MeshStandardMaterial` 等支持真实光照响应的材质。 - 严禁使用黑色硬描边,完全依靠明暗光影与材质色彩区分物体轮廓。 - 模型边缘做适当倒角处理,通过代码程序化生成噪声纹理与可见表面细节,明确区分木材、石材、金属与玻璃的质感表现。 - 所有场景模型与贴图素材均由代码程序化生成,不使用任何外部图片或现成 3D 模型。 【视角与交互】 - 观察者初始人眼高度约 1.6m。 - 支持鼠标拖拽与单指触控滑动实现 360° 环视(水平方向无限旋转,俯仰角合理限幅);支持鼠标滚轮微调视距;支持 `WASD` 或方向键在指定观察区域内小幅走动并严格限幅。 - 无操作停顿数秒后开启慢速自动环视,一旦重新操作立即停止自动运动。 - 观察区域严格碰撞限幅,绝不穿越墙体、栏杆或任何实体模型。 - 页面仅保留全屏 3D 画布,不添加任何标题、按钮、操作提示、水印或加载文字等 UI 元素。 - 初始机位直面大礼堂核心纵深场景,无需点击“开始”即可直接进入。 【光照与层次】 - 配置天空环境光与低角度主光源,开启柔和阴影与接触阴影效果。 - 合理配置环境遮蔽(AO)近似、抗锯齿(AA)与电影级色调映射(Tone Mapping)。 - 保持清晰的景深层次:近景细节丰富,中景结构完整,远景以低面数保形;任意 360° 朝向均无画面空白,窗外与门外用远山、城堡轮廓与天空自然衔接地平线。 - 紧密贴合“开学晚宴前夕”的温暖氛围设定时间与光色,避免套用生硬的冷调夜景模板。 【本轮返工硬要求】 每张 final 渲染截图必须使用 `Read` 工具打开查看,并逐张写出「看见什么 / 缺什么 / 是否达到」的详细核查结论,仅写“通过”不算验收;若存在画面空旷、主体偏小、材质扁平或结构像基础几何体等问题,必须继续返工修改直至达标。Prompt CopyCreate a new project using Three.js to build a 360° immersive panoramic 3D scene that can be opened directly by double-clicking `index.html`. Place all files strictly inside the current task directory, ensure full offline execution, and use classic `<script>` tags without ES modules. [Harry Potter: Hogwarts Great Hall] Stand at the central axis entrance of the Great Hall, recreating the magical hall just before the Start-of-Term Feast. [Panoramic Composition] - East: Long house tables, golden candelabras, and tall Gothic windows. - North: Raised High Table for professors, giant arched stained-glass window, and stone steps. - South: Heavy oak entrance doors flanked by stone statues. - West: Two additional rows of house tables, four house banners, and load-bearing stone pillars. [Dynamic Effects] - Floating candles bob gently up and down in mid-air. - The enchanted ceiling displays drifting clouds and twinkling starlight. - Tableware specular highlights shimmer subtly while candle flames flicker naturally. [Core Focus] - The Gothic vaulted ceiling must feature authentic architectural thickness and spatial volume. - Floating candle illumination must have tightly controlled falloff, lighting only nearby objects. Write the code modularly across separate files one by one, reporting a single sentence of progress after each file is written. Once finished, omit unnecessary commentary and set the default camera view to an ideal screenshot-ready composition. [Visual Style] - Present a realistic yet warm, comforting illustrated aesthetic using physically lit materials such as `MeshStandardMaterial`. - Do not use hard black outlines; rely purely on light, shadow, and material color contrast to define silhouettes. - Apply subtle bevels to edges and procedurally generate noise textures and visible surface details so wood, stone, metal, and glass exhibit distinct material responses. - Generate all scene assets and textures procedurally in code without using external images or pre-made 3D models. [Camera & Interaction] - Set the observer's initial eye height to approximately 1.6m. - Support mouse drag and single-finger touch swipe for 360° panning (unrestricted horizontal rotation, clamped pitch); support mouse wheel for subtle field-of-view/zoom adjustment; support `WASD` or arrow keys for bounded short-range movement within the observation zone. - Automatically begin a slow panoramic pan after a few seconds of inactivity, stopping immediately upon any new user input. - Constrain the observation zone so the camera never clips through walls, railings, or solid geometry. - Display only the full-screen 3D canvas with zero UI overlays—no titles, buttons, hints, watermarks, or loading text. - Aim the initial camera directly at the core central axis of the Great Hall with no click-to-start gate. [Lighting & Depth Layering] - Configure sky ambient lighting paired with a low-angle key light, enabling soft shadows and contact shadows. - Apply appropriate ambient occlusion (AO) approximation, anti-aliasing, and cinematic tone mapping. - Maintain clear visual depth: rich foreground detail, complete midground architecture, and low-poly silhouette preservation in the distance; ensure no empty voids in any 360° direction by seamlessly bridging the horizon with distant mountains, castle silhouettes, and sky. - Tailor the time of day and color temperature to the warm pre-feast atmosphere rather than defaulting to a generic dark night palette. [Strict Rework & Verification Requirements] Every final rendered screenshot must be opened and inspected using the `Read` tool, documenting a detailed checklist of 'What is visible / What is missing / Whether standards are met' for each image—simply writing 'Passed' does not count as acceptance; if the scene looks empty, subjects appear too small, textures look flat, or structures resemble primitive geometry, continue iterating until all standards are achieved.