Skip to content

fix(effects): CC Particle World / Systems II replace their layer; Time effects see earlier effects - #1111

Merged
h-a-n-a-s-h-i merged 3 commits into
storytold:mainfrom
eliasx45:upstream/effect-fixes
Oct 13, 2026
Merged

h-a-n-a-s-h-i merged 3 commits into
storytold:mainfrom
eliasx45:upstream/effect-fixes

Conversation

@eliasx45

Copy link
Copy Markdown
Contributor

What

Two effect fixes found comparing against After Effects 2026 renders:

  • CC Particle World / CC Particle Systems II replace their layer with the particles. They were
    composited over the original layer by the Transfer Mode, so the solid they're applied to stayed
    visible (a red rectangle around a flame, black blocks over light). The Transfer Mode now only
    sets how particles meet each other. Their 112 pinned CPU golden hashes change on purpose (re-pinned
    in its own commit); no other effect changed.
  • Time effects see the effects applied before them. Echo, Posterize Time and the other Time
    effects read the layer at other times without its earlier effects; After Effects renders them
    with those effects (e.g. Echo after CC Particle Systems II, Posterize Time after Turbulent
    Displace). The host already bounds the count to the effects before the one rendering.

Why

Mean absolute error vs After Effects on test projects: 0.0191 → 0.0130, 0.1177 → 0.0937, and
0.1855 → 0.0071 for one using both; 15 other projects with a Time effect after another effect are
pixel-identical. Split out of #858 as asked.

How tested

  • crates/render/src/tests_time.rs (new case) and crates/effects/tests/particle_golden.rs
    (re-pinned); written with the changes, not re-run on this branch.
  • rustfmt --check and cargo check --all-targets on the affected crates on current upstream
    main.

…particles

The particles were composited with the original layer by the Transfer Mode, so the solid an
artist applies them to stayed visible. After Effects 2026 frames show no trace of it:
SceneYard "Burnout matchstick" (a red rectangle around the flame), "Documentary Man Falling"
(a black block over the light), "Task Preparation UI" (black solids under fireworks). The
Transfer Mode now only sets how the particles meet each other.

Mean abs error vs AE: Burnout matchstick 0.0191 -> 0.0130, Documentary Man Falling
0.1177 -> 0.0937 (Task Preparation also needs the next commit).

(cherry picked from commit 3eb3b99)

(cherry picked from commit 729638710e63f4da10711fc5e6a1f7ddc42c37aa)
(cherry picked from commit 0833321)

(cherry picked from commit 338421d)
Echo, Posterize Time and the other Time effects read the layer at other times with none of
its effects. After Effects renders them with the effects before them: SceneYard "Task
Preparation UI" applies Echo after CC Particle Systems II on black solids, and AE shows the
echoed fireworks over a white page where we echoed the black solids and blacked it out
(Posterize Time after Turbulent Displace, the usual stop-motion setup, depends on the same).
The host already bounds the count to the effects before the one rendering.

Mean abs error vs AE: Task Preparation UI 0.1855 -> 0.0071, Lightbulb Idea 0.0126 -> 0.0102;
the 15 other corpus projects with a Time effect after another effect are pixel-identical.

(cherry picked from commit 4687045)

(cherry picked from commit 334d102582e5a64db32e2f3e55836d55ac96bdaa)
(cherry picked from commit 734da3e)

(cherry picked from commit 87a733e)
3eb3b99 makes the particles replace their layer as in AE, so their 112 pinned
CPU hashes change intentionally; no other effect changed.

(cherry picked from commit 9900eae)

(cherry picked from commit 7aa27c0dd7c24b9f24591bb144a95951dc0ec510)
(cherry picked from commit 73377e8)

(cherry picked from commit f07497d)
@echelon

echelon commented Oct 13, 2026

Copy link
Copy Markdown
Member

Merged. Thank you for the contribution, @eliasx45! It landed on main with a batch of other community PRs, after a full workspace build and test run.

This landed alongside #1117, which fixed part of the same thing. Your PR is the superset, so we took it. The re-pinned golden hashes pass on Linux x86_64 here; the aarch64 macOS ones will be confirmed by the macOS job.
If you are not on our Discord yet, please join us: https://discord.gg/artcraft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants