Nodes · Blacksmith
PlateEnvironment
Blacksmithv1coreNeeds full input
Overview
The plate wrapped onto a latlong sphere: the environment a reflective object standing in the shot would see, made from the shot itself. Wire the plate, set the plate camera's fov and where it looked (yaw, pitch, roll), and feed the result to a BS_Relight's hdri input with output set to hdri specular: that is the plate reflected on the CG, blurred by its roughness. Everything the plate did not see is the nearest edge of it (sky above, ground below), and the hemisphere behind the camera mirrors the one in front, so the street continues behind the object instead of going black.
How to
How-to
- Wire the plate (the graded, linear plate, at the resolution you comp at).
- Set
fovto the plate camera's horizontal field of view (28 mm on a 36 mm sensor is 65.5°), andyaw/pitch/rollto where it looked in the 3D world: the same numbers your Camera3D of that camera carries, so the reflections and the CG's world normals agree on which way the sky is. - Feed the output to a BS_Relight's
hdriinput. On that node name the CG's layers (normal_layerN,depth_layerdepth withdepth_scale100 for an EngineRender,roughness_layer,metallic_layer,specular_layer), name the Camera3D incamera, and setoutputtohdri specular. - Merge that output onto the CG with
plus, before the look. A Grade in between is the reflection's gain.
Examples
- A CG car on a street plate: the sky lands on the roof and the hood, the road and kerb on the lower panels, the trees in the windows, and the reflections move with the car's normals. UE's own reflections of its holodeck level are not in the picture any more; what the car reflects is the shot.
- A chrome prop in a product plate:
roughnesslow,outsidemirror, and the plate's lights appear in the chrome where they should.
Known edges
- The plate only saw its own cone. Everything above, below and behind is a guess made from its edges and a mirror of its front; a true HDRI of the location is better when you have one. The guess is usually right for roughness above 0.1, where the reflection is a blur of the sky and the ground anyway.
- Without a
Ppass BS_Relight builds the view vector fromdepthand the namedcamera; without a camera it assumes the eye at the origin, and a car's roof can reflect the ground. - The latlong is rebuilt every frame the plate changes; keep
widthat 2048 unless the reflections are mirror-sharp.
Inputs
| Input | What it takes |
|---|---|
| plate | the original plate, for measurement |
Outputs
| Output | Type |
|---|---|
| out | Image |
Parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
| fov | Float | 65.0 | The plate camera's HORIZONTAL field of view in degrees: 2·atan(sensor width / 2·focal). 28 mm on a 36 mm sensor is 65.5°. |
| yaw | Float | 0.0 | Where the plate camera looked, in degrees about the up axis, as the 3D viewport's compass: 0 looks down −Z, 90 looks down +X. Match it to the Camera3D you give BS_Relight so the reflections and the normals agree on which way the sky is. |
| pitch | Float | 0.0 | The plate camera's tilt in degrees, up positive. A camera tilted up 2.6° puts the plate's horizon 2.6° below the sphere's equator. |
| roll | Float | 0.0 | The plate camera's roll in degrees, clockwise positive. |
| width | Int | 2048 | The latlong's width in pixels; the height is normally half of it. 2048 is plenty for reflections, which BS_Relight blurs by roughness anyway. |
| height | Int | 1024 | The latlong's height in pixels (half the width for a full sphere). |
| outside | Choice | mirror | What fills the directions the plate did not see: mirror continues the plate (edge-stretched above and below, mirrored behind the camera), black keeps only the plate's own cone - honest, but a black sky reflects as a black roof. mirrorblack |
| disabled | Bool | false | Bypass: the node passes its first input through untouched (D in the graph). The knobs keep their values for when it comes back. |
| label | Text | A note shown under the node in the graph — what this node is FOR. Never affects the render or the cache. | |
| hide_input | Bool | false | Draw the node without its input wire — a tidy graph for a node whose source is obvious (a Dot, a viewer tap). |
