M4RKYU.SYSEdition 2027
Skip to content
LOCZH/安大略 · 加拿大/▸work · purecreate待机OK/--:--:--EST
M4M4RK_YUportfolio
  • 创作创作
    创作Overview
    • 作品精选案例与项目记录
    • 游戏可玩原型与游戏开发日志
  • 影像影像
    影像Overview
    • 照片影像合集与视觉实验
    • 商店印刷品、海报和限量物件
  • 写作写作
    写作Overview
    • 博客长篇开发日志与现场笔记
    • 笔记短观察、链接与代码片段
  • 资源资源
    资源Overview
    • 工具38 款浏览器内开发工具
    • 链接每日使用的开发与设计书签
  • 关于关于
  • 联系联系
EN
← 项目档案
AI 工具 · 2024就绪

Purecreate

一个 3D 服装定制器,实时设计你的 T 恤,并通过 DALL·E 3 根据文字提示生成图案。

关键信息

角色
Solo developer: original customizer, 3D canvas, AI image route, reactive state, and the Vite/Express-to-Next.js migration.
周期
2024 · Next.js migration in 2026
平台
Desktop web prototype · WebGL
源码

本页导航

  • >这是什么
  • >界面一览
  • >技术栈
  • >亮点功能
  • >工程实现
  • >实现细节
  • >结果
  • >规划与心得
Purecreate repository documentation describing the Next.js 15 migration and 3D application stack
Fig. 01 — Purecreate

为什么做这个

一半是好奇把实时 3D 场景和图像模型放在一起会怎样,一半是给自己找个借口,把一个旧的双服务器仓库塞进一个能随手部署的应用里。

01

这是什么

#

问题

定制服装通常意味着繁琐的样机工具,或与设计师反复沟通——缺少一种快速、可视化地把想法呈现在产品上并迭代的方式。

方案

一个 Next.js 应用,将基于 react-three-fiber 的实时 3D 服装画布与 DALL·E 3 图案生成结合:选颜色、输入提示词,就能看到设计出现在旋转的 T 恤上。它把原本 Vite + Express 的多仓库整合成一个可部署的应用,OpenAI 调用放在 Route Handlers 中,而非独立服务器。

02

界面一览

#
  • Source assetAn original texture from the customizer's public asset library, used to test live material and decal changes on the garment.
03

技术栈

#

Frontend

  • Next.js 15
  • React 18.3
  • Tailwind CSS 3.4

3D

  • react-three-fiber
  • three.js
  • Valtio

AI + API

  • OpenAI DALL·E 3
  • Next.js Route Handlers
04

亮点功能

#
  • Real-time 3D garment customizer (react-three-fiber)
  • AI decal generation from a text prompt (DALL·E 3)
  • Live color and texture controls
  • Single deployable Next.js app — OpenAI in Route Handlers
05

工程实现

#
  1. 过程 01

    Collapse two deployments into one application

    背景
    The original Vite frontend and Express image API required separate hosting, environment wiring, and CORS configuration.
    方法
    Move the image endpoint into a Next.js Node Route Handler and keep the OpenAI key server-side.
    结果
    Deployment and same-origin requests are simpler, but the image route inherits serverless duration and provider-latency limits.
  2. 过程 02

    Keep WebGL outside server rendering

    背景
    Three.js and its renderer depend on browser globals and add substantial client work.
    方法
    Dynamically import the canvas with server rendering disabled while the rest of the application uses the App Router.
    结果
    The page shell can render independently, but the current renderer compatibility regression still has to be repaired before the demo is healthy.
06

实现细节

#

架构笔记

  • The 3D scene is dynamically imported (ssr: false) so heavy WebGL never blocks first paint.
  • OpenAI calls live in a Node.js Route Handler with a server-only key and a 60-second duration budget.
  • Valtio holds reactive design state shared between the UI and the 3D scene.
  • Moving the API and canvas under one origin removed the old Express server and its CORS boundary.

挑战

  • three.js touches browser globals, so the canvas must stay outside server rendering.
  • The current public deployment is behind a Vercel security checkpoint, and a clean local install exposes a React renderer compatibility regression; the source is available, but the demo should not be presented as healthy.
07

结果

#
“
A source-available 3D and AI product prototype plus a completed architectural migration from a Vite/Express split deployment to a single Next.js application. The present demo still needs compatibility repair.
08

规划与心得

#

复盘

  1. 01Dynamically importing the 3D scene keeps a heavy WebGL app fast to first paint.
  2. 02Collapsing a frontend + API monorepo into one Next.js app removes a whole deploy surface.

下一步

  1. 01Repair the current renderer compatibility regression
  2. 02Restore a publicly accessible demo
  3. 03Add saved designs and more garment types

相关案例

AI 工具

BioLoom

A no-signup AI writing tool that generates, scores, edits, and shares platform-specific bios across eight models.

AI 工具

AI Agent Toolkit

A personal Windows-first toolkit for local AI coding: PowerShell automation, Ollama, a Streamlit control center, and conservative repo workers.

上一篇PolitiLensA political news intelligence dashboard for comparing how outlets across the spectrum frame the same story.
返回全部作品
下一篇Unreal Battle Royale PrototypeA single-player Unreal Engine 4 systems prototype covering stance, looting, equipment, inventory, weapons, and scopes.
返回档案
M4RKYUM4RKYUM4RKYUM4RKYUM4RKYUM4RKYUM4RKYUM4RKYU
始于 2024
ZhenXiao Mark YuZhenXiao Mark Yu
联系

看到什么有意思的?和我聊聊。

这是一个作品集,不是服务 · 但每一条留言我都会看 — 如果哪里让你有所触动,或者只想打个招呼,欢迎写信过来。

开启对话
频道开放

随时打个招呼 · 2026

--:--:--EST加拿大 安大略
  • 邮件
  • GitHub
  • dev.to
  • 领英
  • 推特 / X
  • Instagram
  • Facebook
  • YouTube
  • CodePen
  • Spotify
  • Snapchat

订阅

偶尔收到一封简讯

来自 m4rkyu.com 的笔记与日志——简短、标注日期、没有杂音。随时可退订。

作品

线上发布、游戏作品与视觉档案。

  • 项目
  • 游戏
  • 档案
  • 日志

资源

每日好用的工具与个人收藏的链接库。

  • 搜索
  • 最新
  • 工具
  • 链接
  • 笔记
  • 主题
  • 商店
RSSJSON Feed

工作室

背景、联系方式以及合作渠道。

  • 关于
  • 联系
  • 更新日志
  • 技术说明
  • 简历筹备中

社交

在常去的平台上找到我。

  • GitHub
  • dev.to
  • 领英
  • 推特 / X
  • Instagram
  • Facebook
  • YouTube
  • CodePen
  • Spotify
  • Snapchat
  • 邮件
© 2026 ZhenXiao Mark Yumarkyu0615@gmail.com
  • 邮件
  • GitHub
  • dev.to
  • 领英
  • 推特 / X
  • Instagram
  • Facebook
  • YouTube
  • CodePen
  • Spotify
  • Snapchat
隐私条款由 Next.js 16 · React 19 · Tailwind 4 构建