# Inverse VFX: Recovering Executable Effect Trees from Text and Video

*Источник: arxiv*
*Дата: 2026-12-02*

Generative models now produce convincing 3D assets and 4D dynamics, yet the real-time visual effects (VFX) used throughout games and film remain challenging. Video generators output pixels that cannot be edited, and large language models (LLMs) that write engine code face a vast interface in which errors often pass silently. To make effect generation executable and learnable, we cast it as an inverse problem: given a text description and, optionally, frames sampled from a reference video, recover an effect tree, a closed-vocabulary program that a deterministic executor compiles into a native effect in Unreal Engine, Unity, or Godot. Because the tree is a supervised target, a render-in-the-loop data engine can recombine a small set of tutorial effects into a large corpus of paired trees, videos, and descriptions, on which we fine-tune an open LLM to write trees under a grammar constraint. We further introduce VFX-Bench, a benchmark that judges only the rendered video against per-prompt checklists, so that tree-writing models, coding agents, and retrieval are compared on the same footing. Every output of our model compiled and rendered in UE, and fine-tuning recovers several times more of the elements in held-out effects than the untuned backbone. Frontier agents that write effect trees match their own native agents or even exceed them, in about a quarter of the model time, and deliver every prompt, while our small model still trails such agents by a wide margin.

[Оригинал](https://arxiv.org/abs/2612.03822)