Trailer: HUD takes showed the phone's screen; cut.py renders in parallel

- The trailer, BotCapture and PhoneScreen picked "any" UIDocument; since the phone has
  its own (drawn into its screen in the hand) the first-person takes captured the
  phone's home screen instead of the HUD. They take UIRoot's document now.
- cut.py renders a whole film in GC_CUT_WORKERS processes (20 by default), each a
  stretch of frames as near-lossless x264, joined and encoded once on NVENC with the
  sound. Shake and grain are seeded by frame, so the result does not depend on the
  split. Main trailer 57 -> 13 min.
- polden.py and story.py read the single rolls folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-12-01 21:31:02 +06:00
parent 9f6b749bad
commit dd0430048b
6 changed files with 62 additions and 14 deletions

View File

@ -71,7 +71,7 @@ namespace GrassCutter
Tex.Create();
Web = new PhoneWeb((float)WebH / W, (float)H / W);
var main = UnityEngine.Object.FindAnyObjectByType<UIDocument>(FindObjectsInactive.Include);
var main = UIRoot.I ? UIRoot.I.GetComponent<UIDocument>() : UnityEngine.Object.FindAnyObjectByType<UIDocument>(FindObjectsInactive.Include);
var ps = UnityEngine.Object.Instantiate(main.panelSettings);
ps.targetTexture = Tex;
ps.scaleMode = PanelScaleMode.ConstantPixelSize;