Dioramas 开源 three.js 框架用完整三维场景构建交互式网站
Dioramas 是一个 three.js 框架,提供 20 个围绕三维场景和特定交互构建的完整示例网站。项目包含从生成式产品图片到纹理化三维模型的资产管线、支持灯光与滚动相机的渲染层,以及用于编码代理构建和修改体验的 briefs 与 review scripts。
这套框架把场景交互、资产生成和浏览器优化串成可检查的完整工作流,适合参考创意网站的实现路径。
🏝️ Make the 3D scene itself the website: steer a lighthouse through a storm, move the sun around a cliff house or take a watch movement apart as you explore the page.
Dioramas from @BlendiByl is a three.js framework with 20 complete example sites, each built around a scene and a particular interaction.
The project combines three parts:
▪️ An asset pipeline from generated product images to textured 3D models.
▪️ A rendering layer with lighting, reflections, post-processing and scroll-controlled cameras.
▪️ Briefs and review scripts for building and revising the experience with a coding agent.
🧩 New hero assets can be generated with Nano Banana 2 and Meshy 7.1 through fal. Optimization scripts then compress geometry and textures for browser delivery. The author reports reducing typical raw models from about 25 MB to 3–8 MB.
The distinction between the framework and generation matters: the code and supplied examples are free, while generating new assets through those APIs costs money. Existing models already ship in the repository, so exploring the examples does not require an API key.
🛠️ Clone it, install the npm dependencies and run the development server. The included assets make the repository roughly 330 MB, and a desktop GPU is recommended for the visual effects.
Code is MIT-licensed; the supplied generated models and images use CC BY 4.0, so attribution still matters when reusing them.
For creative websites, the useful starting point is a complete scene, interaction and asset pipeline you can inspect and adapt, rather than a screenshot of a landing page that never existed in a browser.
Code and examples: github.com/blendi-remade/dior…
#ThreeJS #WebGL #3DDesign #GenerativeAI
来源:CuteGuy☣️ · x.com