Skip to content

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

  1. Wire the plate (the graded, linear plate, at the resolution you comp at).
  2. Set fov to the plate camera's horizontal field of view (28 mm on a 36 mm sensor is 65.5°), and yaw / pitch / roll to 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.
  3. Feed the output to a BS_Relight's hdri input. On that node name the CG's layers (normal_layer N, depth_layer depth with depth_scale 100 for an EngineRender, roughness_layer, metallic_layer, specular_layer), name the Camera3D in camera, and set output to hdri specular.
  4. 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: roughness low, outside mirror, 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 P pass BS_Relight builds the view vector from depth and the named camera; 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 width at 2048 unless the reflections are mirror-sharp.

Inputs

InputWhat it takes
platethe original plate, for measurement

Outputs

OutputType
outImage

Parameters

ParameterTypeDefaultWhat it does
fovFloat65.0The 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°.
yawFloat0.0Where 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.
pitchFloat0.0The 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.
rollFloat0.0The plate camera's roll in degrees, clockwise positive.
widthInt2048The latlong's width in pixels; the height is normally half of it. 2048 is plenty for reflections, which BS_Relight blurs by roughness anyway.
heightInt1024The latlong's height in pixels (half the width for a full sphere).
outsideChoicemirrorWhat 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
disabledBoolfalseBypass: the node passes its first input through untouched (D in the graph). The knobs keep their values for when it comes back.
labelTextA note shown under the node in the graph — what this node is FOR. Never affects the render or the cache.
hide_inputBoolfalseDraw the node without its input wire — a tidy graph for a node whose source is obvious (a Dot, a viewer tap).