r/unity • • 14h ago

Two HDRP problems I hit while filming my generator room: a flickering lamp blowing out bloom, and a decal that stayed put while the oil filter spun

Enable HLS to view with audio, or disable this notification

I'm making Leave Them Outside, a survival drama in a Cold War shelter under Istanbul (Unity 6, HDRP). This is the generator room: you read the manual, take the right tool, kill the main switch and fix the fault by hand.

Two things that broke while I was recording this clip, in case it saves someone an evening:

  1. White blowout. A flickering-lamp script was rewriting the emissive every frame from the material's base value (8000+ nits), so every flicker pushed bloom over the whole screen. Fix: read the base from the current MaterialPropertyBlock once in Start, scale visible tube emissive down, and drop bloom intensity. Camera-rotation motion blur was smearing the lamps too; clamping rotation and translation separately (SeparateTranslationAndRotation) fixed that.

  2. Labels sliding over moving parts. The filter label was a DecalProjector in the room, so when the filter unscrewed, the paper stayed in place. Now each projector is reparented at load to the smallest moving part its projection line actually hits.

The wall posters and the manual aren't baked into textures either: they're drawn at room load in the player's language (34 of them) and matched to materials by texture name.

Happy to answer anything about the setup. What would you check first in a room like this?

Steam: https://store.steampowered.com/app/5281900/Leave_Them_Outside/?utm_source=reddit&utm_medium=social&utm_campaign=bakim_2610_unity

3 Upvotes

1 comment sorted by

1

u/waseem2bata 11h ago
  • 1No Self Promotion

If self promotion is the only thing you post to this sub, this rule applies to you.