Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

Add Tripo heroine model and four-view references

yhh0f7876638c90
diff --git a/examples/cyber-rooftop/README.md b/examples/cyber-rooftop/README.md
index 9c1041f74..48e70cb89 100644
--- a/examples/cyber-rooftop/README.md
+++ b/examples/cyber-rooftop/README.md
@@ -33,6 +33,7 @@ node examples/cyber-rooftop/tools/preview.mjs
- `tools/model.py`:确定性的模型构造源,米制、Y 向上。包含几何、UV、材质与逻辑分组;按材质合并以控制绘制批次。
- `assets/models/rooftop.glb`:可在常见 DCC 中继续编辑的模型交换文件;同目录的 `.esprefab`、`.esmesh`、`.esmaterial` 是 Estella 导入产物。
+- `assets/models/characters/heroine-v01/UC_CH_Heroine_Wasteland_v01_Rigged.glb`:女主首版源资产,40,080 个三角面、4K PBR、66 根 Mixamo 骨骼及待机、行走、跑步三段原地动画。[四视图与资产记录](references/heroine-v01/asset-manifest.json)保存在 `references/heroine-v01/`。当前仅入库,尚未转换为 Estella 运行资源或接入主场景;模型高度归一化约为 1,接入时需核对实际身高、变形和镜头效果。
- `tools/scene.mjs`:摄像机、灯光、后处理、粒子与建造对象池;通过 `tools/hud-scene.mjs` 构建原生 HUD。
- `tools/hud-scene.mjs`:按四角及底部居中锚定面板,保留可编辑的原生文字、状态值和快捷栏交互。`src/hud-layout.json` 供场景构建和运行时共用布局参数。
- `tools/textures.py`:可重建的基础表面图、招牌、HUD 象形图标与备用物品图标;需要 Python Pillow 和 Windows 微软雅黑字体。末尾调用 `tools/hud.py` 重建边框、勾选状态、按键帽和选中描边。
diff --git a/examples/cyber-rooftop/assets/models/characters/heroine-v01/UC_CH_Heroine_Wasteland_v01_Rigged.glb b/examples/cyber-rooftop/assets/models/characters/heroine-v01/UC_CH_Heroine_Wasteland_v01_Rigged.glb
new file mode 100644
index 000000000..9dd0c666a
Binary files /dev/null and b/examples/cyber-rooftop/assets/models/characters/heroine-v01/UC_CH_Heroine_Wasteland_v01_Rigged.glb differ
diff --git a/examples/cyber-rooftop/assets/models/characters/heroine-v01/UC_CH_Heroine_Wasteland_v01_Rigged.glb.meta b/examples/cyber-rooftop/assets/models/characters/heroine-v01/UC_CH_Heroine_Wasteland_v01_Rigged.glb.meta
new file mode 100644
index 000000000..50cdfd15f
--- /dev/null
+++ b/examples/cyber-rooftop/assets/models/characters/heroine-v01/UC_CH_Heroine_Wasteland_v01_Rigged.glb.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "62dad536-bc19-48aa-b471-d107e6cda699",
+ "version": "2.0",
+ "type": "model",
+ "importer": {}
+}
diff --git a/examples/cyber-rooftop/references/heroine-v01/asset-manifest.json b/examples/cyber-rooftop/references/heroine-v01/asset-manifest.json
new file mode 100644
index 000000000..7644512b4
--- /dev/null
+++ b/examples/cyber-rooftop/references/heroine-v01/asset-manifest.json
@@ -0,0 +1,93 @@
+{
+ "asset": "UC_CH_Heroine_Wasteland_v01",
+ "sourceReference": "Light ash-blonde adult heroine, silver-gray wrap top, blue scarf, dark shorts and wasteland equipment; four locked views accompany this record.",
+ "locationPolicy": "Model source in assets/models/characters/heroine-v01; reference files excluded from runtime by project assetExclude.",
+ "referenceViews": [
+ {
+ "slot": "front",
+ "file": "front.png",
+ "sha256": "160E2FF0A6C22AC1D00DC901BF3616A2B7279A5EA64A1CF5A852F6DFF17EA6C1"
+ },
+ {
+ "slot": "left",
+ "file": "left.png",
+ "noseDirection": "image left",
+ "sha256": "B0049630BCFD65D3F410E948B6196FA94D195BFB68C94EE213795C3C2614277F"
+ },
+ {
+ "slot": "right",
+ "file": "right.png",
+ "noseDirection": "image right",
+ "sha256": "D431FC087A1E22F18AB48F4A40910435C91BE4EC72054E2DADD807D6FA128896"
+ },
+ {
+ "slot": "back",
+ "file": "back.png",
+ "sha256": "F54340084E148BDC222FA73FD351BFC2C7A6CD4A4AB7A4D6157D778A6256A182"
+ }
+ ],
+ "geometry": {
+ "provider": "Tripo",
+ "model": "P2.0",
+ "mode": "Smart Mesh",
+ "topology": "Quad",
+ "targetFaces": 20000,
+ "quantity": 1,
+ "visibility": "private",
+ "taskId": "fd37cce8-5019-4b5d-8f8b-b042cd93f6e1",
+ "status": "generated; visually inspected in Tripo",
+ "displayedFaces": 23276,
+ "displayedVertices": 23057
+ },
+ "texturing": {
+ "status": "4K texture and PBR generated",
+ "resolution": "4K",
+ "deLighting": true,
+ "input": "four reference images carried from geometry",
+ "textPromptSubmitted": false
+ },
+ "rigging": {
+ "status": "completed in Tripo; export inspected",
+ "provider": "Tripo",
+ "type": "humanoid",
+ "preset": "Mixamo",
+ "joints": 66,
+ "validNormalizedWeights": true
+ },
+ "projectImport": {
+ "status": "GLB source copied into project and model meta registered; no native conversion or scene integration performed"
+ },
+ "riggedExport": {
+ "file": "../../assets/models/characters/heroine-v01/UC_CH_Heroine_Wasteland_v01_Rigged.glb",
+ "triangles": 40080,
+ "bytes": 24726372,
+ "sha256": "c60bf3d60f6f702603c76cb256cef8a1492211273fede54686fe327d11338cc6",
+ "animations": [
+ "run.001",
+ "idle.001",
+ "walk.001"
+ ],
+ "inPlace": true,
+ "normalizedHeight": 0.99951171875,
+ "inspection": "rigged-export-inspection.json"
+ },
+ "review": {
+ "status": "first character candidate",
+ "visualChecks": [
+ "gray front/three-quarter/back",
+ "PBR front/back",
+ "sampled walk/run/idle poses in Tripo"
+ ],
+ "finalPreview": "tripo-heroine-final.jpg",
+ "inEngineValidation": "Pending; source asset stored only",
+ "remaining": [
+ "Estella scale and camera validation",
+ "full deformation and clothing collision review",
+ "engine performance acceptance",
+ "internal mesh and material identifiers retain Tripo export names"
+ ]
+ },
+ "generationCostCredits": 145,
+ "tripoUrl": "https://studio.tripo3d.ai/zh/workspace/animate/fd37cce8-5019-4b5d-8f8b-b042cd93f6e1",
+ "modelMetaUuid": "62dad536-bc19-48aa-b471-d107e6cda699"
+}
diff --git a/examples/cyber-rooftop/references/heroine-v01/back-prompt.txt b/examples/cyber-rooftop/references/heroine-v01/back-prompt.txt
new file mode 100644
index 000000000..9f501d1e6
--- /dev/null
+++ b/examples/cyber-rooftop/references/heroine-v01/back-prompt.txt
@@ -0,0 +1 @@
+Use case: identity-preserve. Make ONE full-body orthographic view of EXACTLY the same adult woman, age 22-25, in the attached locked FRONT reference. Preserve her feminine face identity, soft jaw, light ash-blonde side bangs and low gathered hair, blue-gray eyes, silver-gray wrapped cropped fabric top, dusty blue scarf, dark short utility shorts, double brown utility belts, two side pouches, thigh straps, asymmetrical knee guards, wrist cuffs and laced boots. The larger articulated three-section knee guard is on HER OWN LEFT knee; the smaller simple oval guard is on HER OWN RIGHT knee. The vertical shoulder strap is on her RIGHT shoulder; the scarf short tail is toward her LEFT. Two faint healed scratches are on her LEFT cheek. No new costume parts, no backpack, no armor enlargement, no weapon. Exact same neutral A-pose in 3D, arms 35 degrees out, empty hands, five fingers, feet hip-width; only rotate the viewing angle. Same full-body scale and same head/sole baseline, portrait 2:3, full body visible with margin. Neutral studio light, uniform medium-gray background, refined semi-realistic Japanese cinematic game-CG quality and physically believable skin and cloth. No text, watermark, labels, interface, scenery or extra figures. Produce the exact orthographic BACK view: she faces fully away and NO part of her face is visible. Her anatomical LEFT side is on the LEFT of this image, so the larger left knee guard's rear straps are on image LEFT; the right shoulder strap and smaller knee guard are on image RIGHT. Show the same cropped silver-gray wrap top covering the back, same small midriff gap, scarf wrapped close at the neck, low tied ash-blonde hair ending around upper shoulder blades. Back of shorts is opaque and fully covers the buttocks, with ordinary practical seams and the same belt and side pouches. Keep the complete same A-pose from behind and exactly matching limb lengths. No additional backpack, long hair, long cloak or exposed back cutout.
diff --git a/examples/cyber-rooftop/references/heroine-v01/back-revision-prompt.txt b/examples/cyber-rooftop/references/heroine-v01/back-revision-prompt.txt
new file mode 100644
index 000000000..3e015d9ba
--- /dev/null
+++ b/examples/cyber-rooftop/references/heroine-v01/back-revision-prompt.txt
@@ -0,0 +1 @@
+Precise production-reference correction. Image 1 is the BACK view to edit; image 2 is the locked RIGHT profile for knee-strap construction. Keep image 1 pixel-composition, adult heroine identity, all body proportions, A-pose, hair, scarf, shoulder strap, shirt, shorts, belts, hip pouches, thigh straps, gloves, boots, neutral gray background and lighting unchanged. Change ONLY the straps immediately behind the two KNEE GUARDS: there must be EXACTLY TWO narrow dark fastening straps behind EACH knee, one above the bend and one below, matching the two straps seen in the side profile. On image 1 LEFT leg remove the extra third/lower strap; on image 1 RIGHT leg add the missing companion strap. Preserve both existing upper-THIGH straps and all boot straps. This is a neutral full-body orthographic back reference of the same adult woman, not a new design. No extra objects or labels.
diff --git a/examples/cyber-rooftop/references/heroine-v01/back.png b/examples/cyber-rooftop/references/heroine-v01/back.png
new file mode 100644
index 000000000..7e8ee947a
Binary files /dev/null and b/examples/cyber-rooftop/references/heroine-v01/back.png differ
diff --git a/examples/cyber-rooftop/references/heroine-v01/front-prompt.txt b/examples/cyber-rooftop/references/heroine-v01/front-prompt.txt
new file mode 100644
index 000000000..ad6a87069
--- /dev/null
+++ b/examples/cyber-rooftop/references/heroine-v01/front-prompt.txt
@@ -0,0 +1 @@
+Use case: identity-preserve / stylized-concept. Create ONE single FRONT orthographic full-body production reference for an adult female game protagonist, age 22-25. Input image 1 is the USER-SELECTED primary identity and costume reference: the light-haired woman with a mech behind her. Preserve her delicate feminine face, soft narrow jaw, expressive blue-gray eyes, small nose, natural lips, pale realistic skin and layered light ash-blonde hair with side-swept bangs, loosely gathered behind the neck. Input image 2 is ONLY a supporting reference for refined semi-realistic Japanese cinematic game-CG skin, hair strands and cloth rendering; do not copy its dark hair or outfit. Remove the phone screenshot interface, social text, background robot, weapons and all scene effects. Show this same heroine alone, complete from hair to boot soles with margin, in a neutral symmetric A-pose with arms 35 degrees away from the body, empty hands with five naturally separated fingers, feet hip-width. Keep the chosen primary costume: worn silver-gray soft sleeveless cropped wrap top with gently asymmetric neckline and localized frayed hem, chest fully covered, a small natural midriff gap; close-wrapped dusty deep-blue scarf with one short tail; fitted dark slate-blue utility shorts, practical brown and graphite double utility belts with small side pouches and metal buckles, two slim dark straps around the upper thighs, compact asymmetrical knee protection, black worn mid-calf lace-up work boots. Slim wrist and forearm protective cuffs, hands otherwise visible; no large mechanical arm. Two faint healed scratches on her own LEFT cheek, very restrained surface wear, no blood. Keep a slender adult feminine silhouette with natural anatomy and poised confident expression. Materials must be clearly distinct: delicate skin, soft woven scarf, worn silver-gray cloth, rubber/leather boots and lightly scratched metal fasteners. Premium detailed semi-realistic Japanese 3D heroine quality with physically believable rendering and subtly idealized proportions, closely matching the selected woman. Neutral diffuse studio lighting, flat medium-gray background, no colored rim lights, no bloom, no motion blur, no hard cast shadows, straight-on front view with orthographic camera and zero perspective. Portrait 2:3. No text, labels, logos, montage, extra figures, robot, weapon, engineering coveralls, cropped hair undercut, bulky armor or helmet. This front image will lock the identity and outfit for independent left, right and back views.
diff --git a/examples/cyber-rooftop/references/heroine-v01/front.png b/examples/cyber-rooftop/references/heroine-v01/front.png
new file mode 100644
index 000000000..f46b41268
Binary files /dev/null and b/examples/cyber-rooftop/references/heroine-v01/front.png differ
diff --git a/examples/cyber-rooftop/references/heroine-v01/left-prompt.txt b/examples/cyber-rooftop/references/heroine-v01/left-prompt.txt
new file mode 100644
index 000000000..01d56a550
--- /dev/null
+++ b/examples/cyber-rooftop/references/heroine-v01/left-prompt.txt
@@ -0,0 +1 @@
+Use case: identity-preserve. Make ONE full-body orthographic view of EXACTLY the same adult woman, age 22-25, in the attached locked FRONT reference. Preserve her feminine face identity, soft jaw, light ash-blonde side bangs and low gathered hair, blue-gray eyes, silver-gray wrapped cropped fabric top, dusty blue scarf, dark short utility shorts, double brown utility belts, two side pouches, thigh straps, asymmetrical knee guards, wrist cuffs and laced boots. The larger articulated three-section knee guard is on HER OWN LEFT knee; the smaller simple oval guard is on HER OWN RIGHT knee. The vertical shoulder strap is on her RIGHT shoulder; the scarf short tail is toward her LEFT. Two faint healed scratches are on her LEFT cheek. No new costume parts, no backpack, no armor enlargement, no weapon. Exact same neutral A-pose in 3D, arms 35 degrees out, empty hands, five fingers, feet hip-width; only rotate the viewing angle. Same full-body scale and same head/sole baseline, portrait 2:3, full body visible with margin. Neutral studio light, uniform medium-gray background, refined semi-realistic Japanese cinematic game-CG quality and physically believable skin and cloth. No text, watermark, labels, interface, scenery or extra figures. Produce the LEFT Tripo slot image: an EXACT 90-degree profile with the nose, chest and toes pointing to the LEFT edge. This shows her anatomical RIGHT side, the smaller RIGHT knee guard and the right shoulder strap. The LEFT cheek scratches are hidden on the far side. Arms must retain the reference A-pose in space; their side projections may overlap naturally. Do not change to a front or three-quarter view.
diff --git a/examples/cyber-rooftop/references/heroine-v01/left.png b/examples/cyber-rooftop/references/heroine-v01/left.png
new file mode 100644
index 000000000..cbe8dc7b7
Binary files /dev/null and b/examples/cyber-rooftop/references/heroine-v01/left.png differ
diff --git a/examples/cyber-rooftop/references/heroine-v01/rigged-export-inspection.json b/examples/cyber-rooftop/references/heroine-v01/rigged-export-inspection.json
new file mode 100644
index 000000000..9b0eec4e1
--- /dev/null
+++ b/examples/cyber-rooftop/references/heroine-v01/rigged-export-inspection.json
@@ -0,0 +1,141 @@
+{
+ "file": "UC_CH_Heroine_Wasteland_v01_Rigged.glb",
+ "bytes": 24726372,
+ "sha256": "c60bf3d60f6f702603c76cb256cef8a1492211273fede54686fe327d11338cc6",
+ "primitives": [
+ {
+ "mesh": "tripo_mesh_0a52afa9-f20a-42e7-a344-9be855a1b277",
+ "mode": 4,
+ "vertices": 46772,
+ "triangles": 40080,
+ "attributes": [
+ "POSITION",
+ "NORMAL",
+ "TEXCOORD_0",
+ "JOINTS_0",
+ "WEIGHTS_0"
+ ],
+ "bounds": [
+ [
+ -0.2551270127296448,
+ 0,
+ -0.10571293532848358
+ ],
+ [
+ 0.2551268935203552,
+ 0.99951171875,
+ 0.1057128757238388
+ ]
+ ],
+ "weightSumRange": [
+ 0.9999998582643457,
+ 1.0000001303851604
+ ],
+ "nonfiniteWeights": 0,
+ "maxJointIndex": 65
+ }
+ ],
+ "totalTriangles": 40080,
+ "materials": [
+ {
+ "doubleSided": true,
+ "name": "tripo_mat_0a52afa9-f20a-42e7-a344-9be855a1b277",
+ "normalTexture": {
+ "index": 0
+ },
+ "pbrMetallicRoughness": {
+ "baseColorTexture": {
+ "index": 1
+ },
+ "metallicRoughnessTexture": {
+ "index": 2
+ }
+ }
+ }
+ ],
+ "images": [
+ {
+ "index": 0,
+ "mimeType": "image/jpeg",
+ "size": [
+ 4096,
+ 4096
+ ],
+ "bytes": 1937674
+ },
+ {
+ "index": 1,
+ "mimeType": "image/jpeg",
+ "size": [
+ 4096,
+ 4096
+ ],
+ "bytes": 3904345
+ },
+ {
+ "index": 2,
+ "mimeType": "image/png",
+ "size": [
+ 4096,
+ 4096
+ ],
+ "bytes": 15706372
+ }
+ ],
+ "skins": [
+ {
+ "name": "Armature",
+ "joints": 66,
+ "inverseBindMatricesCount": 66
+ }
+ ],
+ "animations": [
+ {
+ "name": "run.001",
+ "durationSeconds": 1.2916666269302368,
+ "channels": 195,
+ "rootTranslations": [
+ {
+ "node": "mixamorig:Hips",
+ "range": [
+ 3.725290298461914e-09,
+ 0.03929400444030762,
+ 0.0
+ ]
+ }
+ ]
+ },
+ {
+ "name": "idle.001",
+ "durationSeconds": 15.375,
+ "channels": 195,
+ "rootTranslations": [
+ {
+ "node": "mixamorig:Hips",
+ "range": [
+ 8.265487849712372e-09,
+ 0.01037442684173584,
+ 0.0
+ ]
+ }
+ ]
+ },
+ {
+ "name": "walk.001",
+ "durationSeconds": 2.375,
+ "channels": 195,
+ "rootTranslations": [
+ {
+ "node": "mixamorig:Hips",
+ "range": [
+ 1.979060471057892e-09,
+ 0.023395895957946777,
+ 3.725290298461914e-08
+ ]
+ }
+ ]
+ }
+ ],
+ "extensionsUsed": [],
+ "extensionsRequired": []
+}
\ No newline at end of file
diff --git a/examples/cyber-rooftop/references/heroine-v01/right-prompt.txt b/examples/cyber-rooftop/references/heroine-v01/right-prompt.txt
new file mode 100644
index 000000000..3ef0f4a88
--- /dev/null
+++ b/examples/cyber-rooftop/references/heroine-v01/right-prompt.txt
@@ -0,0 +1 @@
+Use case: identity-preserve. Make ONE full-body orthographic view of EXACTLY the same adult woman, age 22-25, in the attached locked FRONT reference. Preserve her feminine face identity, soft jaw, light ash-blonde side bangs and low gathered hair, blue-gray eyes, silver-gray wrapped cropped fabric top, dusty blue scarf, dark short utility shorts, double brown utility belts, two side pouches, thigh straps, asymmetrical knee guards, wrist cuffs and laced boots. The larger articulated three-section knee guard is on HER OWN LEFT knee; the smaller simple oval guard is on HER OWN RIGHT knee. The vertical shoulder strap is on her RIGHT shoulder; the scarf short tail is toward her LEFT. Two faint healed scratches are on her LEFT cheek. No new costume parts, no backpack, no armor enlargement, no weapon. Exact same neutral A-pose in 3D, arms 35 degrees out, empty hands, five fingers, feet hip-width; only rotate the viewing angle. Same full-body scale and same head/sole baseline, portrait 2:3, full body visible with margin. Neutral studio light, uniform medium-gray background, refined semi-realistic Japanese cinematic game-CG quality and physically believable skin and cloth. No text, watermark, labels, interface, scenery or extra figures. Produce the RIGHT Tripo slot image: an EXACT 90-degree profile with the nose, chest and toes pointing to the RIGHT edge. This shows her anatomical LEFT side, the larger articulated LEFT knee guard, the two faint left-cheek scratches and the short scarf tail. Arms must retain the reference A-pose in space; their side projections may overlap naturally. Do not change to a front or three-quarter view.
diff --git a/examples/cyber-rooftop/references/heroine-v01/right.png b/examples/cyber-rooftop/references/heroine-v01/right.png
new file mode 100644
index 000000000..745649491
Binary files /dev/null and b/examples/cyber-rooftop/references/heroine-v01/right.png differ
diff --git a/examples/cyber-rooftop/references/heroine-v01/tripo-heroine-final.jpg b/examples/cyber-rooftop/references/heroine-v01/tripo-heroine-final.jpg
new file mode 100644
index 000000000..d2617a069
Binary files /dev/null and b/examples/cyber-rooftop/references/heroine-v01/tripo-heroine-final.jpg differ