Commit Graph
8 Commits
Author SHA1 Message Date
西风逍遥游 1c4cb3ed4d Add resource-backed mesh rendering and bounded asynchronous loading 2026-09-12 00:09:01 +08:00
西风逍遥游andCursor 3112f02e20 feat(model3d): add procedural vertex normals and normal-map bake
Give ModelData a Result-based path to rewrite vertex normals (including radial-from-center) and bake them into an RGBA8 tangent or object-space map.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 22:41:51 +08:00
西风逍遥游 ab081e0853 docs: document UV painting bindings 2026-08-30 10:37:42 +08:00
西风逍遥游 5844b9a663 feat(model3d): complete stage 1-2 import pipeline 2026-08-24 23:58:14 +08:00
西风逍遥游 7b8aad6c51 docs: document transparency bindings 2026-08-24 17:05:48 +08:00
西风逍遥游 cc576c264a feat(model3d): material/texture API + auto-assembly renderer
ModelData gains material accessors (base color, metallic/roughness, opacity, two-sided), texture queries by type name (base_color/diffuse/normals/height/...), and embedded texture decode to RGBA8 ImageData. New model3d::buildRenderable(s) helpers assemble Renderable3D from a decoded model (node transform baked, material/PBR/textures applied), bound to Squirrel as Model3D::createRenderable.

Normals for assets missing authored normals now default to smooth generation: CMake applies an idempotent configure-time patch to medialoader switching aiProcess_GenNormals -> aiProcess_GenSmoothNormals.
2026-08-19 04:12:54 +08:00
西风逍遥游andCursor Agent 59b2865b85 feat(animation): CPU 蒙皮与 CesiumMan 骨骼动画测试 (#32)
* feat(animation): CPU skinning + CesiumMan download test

Add AnimSkin linear-blend skinning, ModelData bone/weight APIs, and a
network download script for Khronos CesiumMan used by animation.skinned
integration tests during unit_test builds.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

* fix(test): mount CesiumMan via physfs for skinned animation tests

Model3D loads through the VFS; use allowMountingForPath + mount like
ClassicScenes so CesiumMan.gltf resolves with its .bin sidecar.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-11 20:41:31 +08:00
西风逍遥游 28f778d2c4 docs: review every user module chapter 2026-08-09 21:41:58 +08:00