Commit Graph
16 Commits
Author SHA1 Message Date
西风逍遥游 a8b8e83128 refactor: consolidate engine architecture contracts 2026-08-27 12:54:48 +08:00
西风逍遥游 0d3b9e2700 feat(particles): add versioned multi-emitter effect assets 2026-08-26 04:40:48 +08:00
西风逍遥游 ba0c343b2e feat(particles): add scene-color distortion materials 2026-08-26 04:17:57 +08:00
西风逍遥游 1809d6889b feat(particles): add exposed gameplay parameters 2026-08-26 03:45:07 +08:00
西风逍遥游 e4604fcdaf feat(particles): expose GPU fallback diagnostics 2026-08-26 03:39:36 +08:00
西风逍遥游 8d2e32bc1a feat(particles): add lit normal-mapped materials 2026-08-26 03:35:57 +08:00
西风逍遥游 835323116b feat(particles): add scene-depth soft particles 2026-08-26 03:15:39 +08:00
西风逍遥游 b287785468 feat(particles): add connected ribbon trails 2026-08-26 02:54:04 +08:00
西风逍遥游 11d3fe54f5 feat(particles): add facing modes and transparent sorting 2026-08-26 02:49:53 +08:00
西风逍遥游 f72d2cd019 feat(particles): add GPU-resident simulation and indirect rendering 2026-08-26 02:41:31 +08:00
西风逍遥游 043cc3b372 feat(particles): add scalable budgets and frame profiling 2026-08-26 01:30:11 +08:00
西风逍遥游 8f5969fbb3 feat(particles): add deterministic professional playback controls 2026-08-26 01:03:32 +08:00
西风逍遥游 d71b126636 feat(particles): particle system feature set (P0-P2)
Rendering: rotation render fix, additive/opaque blend modes, flipbook animation, gradients and lifetime curves, unified DrawItem2D render path (Vulkan + WebGPU).

Simulation: timed bursts, prewarm, line/ring shapes, gravity, damping, velocity limits/curves, inherit velocity, local/world space, collision (bounds + resolver), CPU noise, sub-emitters, stretched trails, overflow policies, dt caps, offscreen sim skip.

Advanced: radial force fields, custom particle shaders, pooled Light2D particle lights, opt-in GPU-accelerated simulation with automatic CPU fallback.

Fixes: Vulkan pipeline builder lifetime bug (crash on window init), emitter-life emission timing, emit() syncs attachment position.

Tests: new coverage incl. scale regression (128 emitters).
2026-08-17 15:27:43 +08:00
西风逍遥游andCursor Agent 6be72c4c8f feat(particles): 2D/3D dynamic bone emission + expanded tests (#48)
* feat(particles): emit from Spine and IK 2D/3D dynamic bones

Extend ParticleEmitter attach beyond AnimPose to SpineSkeleton and
IK Skeleton2D/Skeleton3D, with getAttachKind and broader unit tests.

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

* test(particles): expand dynamic bone attach coverage

Add edge cases (null/OOB, invalid plane), multi-emitter, rate-tracking,
pause/detach sync, Spine scale via module update, IK offset/yz/Solver3D,
AnimPose clip sampling, and empty skin-filter fallback.

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

* test(particles): add attach lifetime, forces, and skin plane cases

New particles_attach_more.cpp covers emitter life/buffer on bones,
rebind, scale extremes, emission area, radial origin, Solver2D step
tracking, Spine rotated offsets, preset/stop/start, and skin xz/yz.

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

* test(particles): add reset/config/force/skin-filter attach cases

particles_attach_extra.cpp covers reset/moveTo/applyConfig with attach,
ellipse+tangential forces, dt edge cases, kind cycling, Spine rate bob,
Solver3D step, skin filter/buffer, and CesiumMan attach-by-name.

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

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-13 11:28:29 +08:00
西风逍遥游andCursor Agent 7f8a46ff97 feat(particles): 骨骼绑定与蒙皮表面粒子发射 (#40)
* feat(particles): bind emitters to bones and emit from skinned mesh

Add ParticleEmitter Attach/SkinSource components so VFX can follow
AnimPose bones (with plane/scale projection) and sample CPU-skinned
vertices for character-surface effects. Expose AnimSkin skinned-position
cache to scripts and cover with unit tests.

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

* fix(particles): use ComponentRef correctly for Attach/SkinSource

attach()/skinSource() return ecs::ComponentRef, not raw pointers.

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

---------

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