Importing the M4A1 model into UE and setting metallic and roughness produces a basic weapon render. Comparing it with the original reveals differences that material sliders alone cannot explain: the same base color can produce different highlights, similar normals can still shift a specular peak, and the dark parts of the receiver can reflect the combined effects of materials, shadows, and screen-space calculations. Diagnosing these differences requires tracing the final pixels back to vertices, surface encoding, and the inputs to each stage.
This study starts with an OB3 weapon capture from BF6, examines how its resources and programs produce pixels, and tests the reconstruction in UE5.8. Part 1 covers capture analysis and asset reconstruction: tracing inputs from draws, preserving positions, material fields, and sampling conventions, and following the calculations from surface data to final color. Part 2 will cover Renderer integration, RDG/RHI resource transfer, state across frames, and debugging.
The analysis begins with actual draws and resource bindings. Base color, roughness, and normals must be traced to the shader functions that read them; shadows, reflections, and history each have their own inputs. This makes it possible to connect a visible difference to specific values. Historical Frostbite publications provide background; claims about OB3 itself remain grounded in this capture and the code inspected for this study.
Contents
- Comparison Baseline and Validation Scope
- Reconstructing Meshes, Materials, and Instances from Draw Bindings
- How the GPU Determines Which Geometry Is Drawn
- Aligning Geometry and Surface Data Before Materials
- Texture Channels, Color Domains, and Sampling
- Surface Encoding and Decoding
- Lighting Inputs and BRDF Evaluation
- Occlusion Inputs and Their Scope
- Matching Both Shadow Production and Sampling
- Environment Probes and Screen-Space Reflections
- Preserving Precision and History in HDR and Volume Composition
- TAA Inputs, History, and State Ownership
- From Encoded Color to Final Display
- Inputs and Conventions Needed for UE Implementation
Both articles use the same research material, including genuine screenshots, shader programs, implementation code, and test records. GPU intermediate visualizations and separately drawn explanatory diagrams are identified as such.
Comparison Baseline and Validation Scope
Scene and version scope
The subject is the M4A1 at a fixed camera, assembly, and captured pose. The original highest-quality capture contains several consecutive frames. Surface, lighting, and post-processing analysis primarily uses a later frame; geometry-front-end and hierarchical-depth (HiZ) checks use data from an earlier frame, before geometry occlusion testing. They come from the same capture, at different points in time.
This article does not cover campaign terrain, clipmaps, world scattering, map-wide streaming, or the game’s complete rendering architecture. Evidence from this frame also cannot establish completion of the weapon asset library, customization rules, or animation and UI features for other weapons. The original GPU-driven geometry path is confirmed; its UE counterpart has not been fully ported. The current UE scene primarily submits known geometry to provide validation inputs for materials, lighting, and post-processing.
| Subject | Record used here | What it supports |
|---|---|---|
| Original highest-quality capture | OB3 weapon capture from October 19, 2026 | Programs, input resources, and GPU outputs at the corresponding draw or compute step |
| Final fixed-camera UE result | Final validation build from October 27, 2026 | Results within the tested configuration, pose, and domain |
| UE rollback control | A comparison build restoring the previous default implementation | Comparison against that earlier default |
| Project and engine source | The UE5.8 engine and project code inspected for this study | Implementation checks; runtime claims remain tied to their test records |
The project uses a modified UE5.8 engine branch. Code analysis and historical test records are checked separately so that later code changes are not mistaken for results already validated at the time.
A GPU capture records a frame’s draw and compute calls, resources, and execution state. It lets us inspect how an image is produced step by step. Behind a final screenshot, we can also read intermediate data such as depth, normals, and reflection color.
Evidence types and their limits
Static capture evidence includes the original compiled shaders (DXIL), root parameters, descriptor updates, resource-state transitions, and Draw and Dispatch arguments. These records establish which resources a program uses. Bindings alone do not reveal how many instances a particular test actually rejected.
Observations from exported original-program replay read actual GPU results using the retained original programs and captured inputs. An exporter can replace indirect commands with frozen arguments. Reproducing the image therefore does not automatically prove execution of the dynamic indirect-argument chain. Inserting readbacks also changes the execution load; this article draws no conclusions about original-game performance from them.
Same-input operator tests compare original and ported programs using the same resources, parameters, and sampling contract. They help isolate formula, format, and binding errors. Their results apply to those inputs, rather than every possible parameter combination.
Independent execution and feature-contribution tests use each side’s own current inputs and history, comparing actual outputs or the net change from an individual feature switch. These tests are closest to the final result, while also including geometry, history, caching, and quantization effects.
The figures distinguish explanatory diagrams, GPU intermediate visualizations, final renders (beauty images), and difference images. PIX captures and replays GPU calls so that the programs, resources, and states of a draw or dispatch can be inspected. The flow diagrams here are explanations assembled from the capture, rather than screenshots of the PIX interface. PIX GPU Captures
A fixed-input test saves input textures, constants, sampling settings, and output inspection locations, then repeatedly executes a calculation with that data. It isolates formula or binding errors without running the complete original game.
Why a fixed scene is useful for diagnosis
Weapon Inspect is a useful starting point because many variables can be held constant. With the camera fixed, geometry projection can be checked separately. With the assembly unchanged, material slots and resource associations remain relatively stable. Highlights around the weapon amplify differences in normals, roughness, light placement, and sampling precision. Holding these variables steady helps separate the effects of individual changes.
Fixed inputs also restrict the conclusions. A method that relies on saved three-dimensional vertex outputs for the current pose can validate that pose’s surface, but cannot establish that arbitrary skeletal animation generates the same data. If these inputs never activate a particular volumetric-light branch, matching the full output only covers the branches actually executed. These conditions are retained where relevant below.
The tests cover different links: resource inspection identifies captured inputs; original-operator execution checks a calculation for specified inputs; ported-operator comparisons test the corresponding implementation; and an independent UE image includes current data generation, history, and display output. Results from these stages must be considered together to locate differences and unfinished work.
Pixel-production stages and dependencies
This is an overview of responsibilities and dependencies. It is neither a complete timeline nor evidence of asynchronous queue overlap.
| Stage | Main inputs | Main outputs | Evidence used here |
|---|---|---|---|
| Geometry front end | Instances, frusta, hierarchical depth | Visibility flags, arguments, instance mapping | Original geometry shaders and draw sequence |
| Surface production | Geometry, pose, material resources | Depth, Normal, Color, Properties, Packed, and related data | Original intermediates, UE generation code, and field-difference statistics over the full body-pixel domain |
| Direct / ambient / reflection | Surface, lights, shadows, probes, SSR | Lighting components and combined HDR | Original intermediate readbacks and actual feature controls |
| Fog / transmission | HDR, volume, depth, glass geometry | Further scene-HDR composition | Fixed-input volume tests and raster-stage outputs |
| Temporal reconstruction | Current HDR, Motion, Depth, Class, History | New History, encoded display output, CoC | Complete fixed-input test of the original TAA |
| Post / output | Encoded output, CoC, post-processing parameters | Final display RGB | Same-input operator and screen-output comparisons |
The following observations are separated by reading time and purpose. The earlier and later frames inspect different stages; the rows do not form a complete timeline of one frame.
| Capture stage | Observed data | Purpose |
|---|---|---|
| Earlier frame: frustum filtering | Bounds tests, instance organization, initial draw arguments | Establish how geometry filtering changes subsequent work |
| Earlier frame: occlusion and body draw | HiZ reads, visibility flags, final draw arguments, state transitions | Connect geometry decisions to actual drawing |
| Later frame: screen-space reflections | Minimum/maximum depth hierarchies | Inspect depth inputs used by reflection tracing |
| Later frame: lighting and environment-reflection composition | Lighting output, IBL and SSR history resources | Separate direct, ambient, and reflection contributions |
| Later frame: temporal anti-aliasing | Complete TAA inputs and outputs | Check history reads, encoding, and display output |
Cross-version checks must identify the shader actually executed, its resource layout, and its read/write relationships. Two captures can both contain lighting composition without using the same inputs or programs.
The explanations below follow actual dependencies established by the saved commands, source locations, and bindings.
Resource identity includes time and purpose
A capture resource number identifies an object in a particular context; its meaning also depends on when and why it is read. A resource may hold depth levels for geometry tests early on and be overwritten later. Labeling it simply “HiZ” does not establish that two reads see the same data. The owning frame and reading stage must also be recorded to distinguish geometry occlusion from reflection tracing.
Programs and render states within a named stage can change between versions. Checks must identify the executed shader and its input layout rather than infer equality from the stage name.
The following sections trace production and consumption: a compute program writes visibility flags; downstream code uses them to generate arguments; resources transition state; drawing reads the results.
Reconstructing Meshes, Materials, and Instances from Draw Bindings
The M4A1 appears to be one object, but its captured rendering inputs span several layers: body and attachment geometry, per-draw instance records, material textures, bases required by surface decoding, lights, environment probes, and display settings. Reconstructing the assets first requires recovering these relationships, then deciding what should become UE assets and what should remain structured runtime input.
A texture belonging to this weapon is not necessarily sampled by the current body draw. An attachment in the cache is not necessarily visible in the current assembly. Start with the programs that actually read the data: the draw’s index range and instance start, the vertex program’s buffers, the pixel program’s resources, and the branches governing sampling. Working backward from the draw avoids selecting a visually similar texture from the resource directory that never participated in this render.
Preserve asset identity separately from captured usage identity. Asset identity describes reusable mesh, texture, and material sources; usage identity describes this frame’s bindings, offsets, and compiled variants. Changing an assembly may leave an asset unchanged while altering instance records and material overrides. A filename and final screenshot do not preserve that relationship.
The available evidence establishes resource consumption for a fixed assembly, saved 3D vertex outputs, and their use in UE. It does not deliver a complete game asset database, all weapon assembly rules, or a general skeletal importer. Here, “asset reconstruction” means organizing inspected data into renderable inputs for the current assembly. The complete original asset-production workflow remains unrecovered.
Tracing parts and instances from a draw
The body draw provides a concrete entry point. Index count, starting index, vertex offset, and instance start jointly determine what it reads. They are not a gameplay-level “body ID,” nor a mesh description reusable unchanged with a different buffer layout. Keeping the same numbers after changing the index buffer or instance table does not preserve the geometry.
Expanded triangle vertices also require distinguishing references in a draw from unique vertex count. The 81,618 indices represent 27,206 triangles; this differs from the 28,100 body vertices used later for camera analysis. A vertex can be referenced by multiple triangles, and representations can split it at material, normal, or UV discontinuities. These counts are compatible when their subjects are stated.
Reusable assets should retain part, material-slot, and instance relationships so their identities remain traceable after import. An isolated sight problem can then start with attachment bindings, while an error across the body can start with shared inputs. This study preserves some such fixed inputs and results, but a body wireframe cannot establish every attachment’s topology or assembly compatibility.
What the vertex payload contains
The inspected body-vertex structure contains 33 uint words. The program interprets float bit patterns in them and forwards the fields through different TEXCOORD interfaces; position comes from the first three words. This resembles a prepared rendering payload. It should not be treated as the original artist-facing vertex format or complete skinning input.
// Fields from the current fixed-pose bridge, not an original asset-format specification.
struct BodyVertex { uint Words[33]; };
float3 WorldPosition = asfloat(uint3(V.Words[0], V.Words[1], V.Words[2]));
float3 MaterialInput1 = asfloat(uint3(V.Words[7], V.Words[8], V.Words[9]));
uint FlatIdentity = V.Words[19];
uint4 FlatPayload = uint4(V.Words[29], V.Words[30], V.Words[31], V.Words[32]);
asfloat preserves a bit pattern; it does not numerically convert an integer to floating point. If a word contains a float’s IEEE representation, a numeric cast produces a completely different value. Reconstruction must first establish storage type and interpretation, before assigning physical meanings such as coordinates, tangents, or material parameters.
Interpolation rules matter just as much. The bridge uses nointerpolation for certain integer identities so the rasterizer does not interpolate markers as continuous values. World positions, directions, and UVs enter subsequent calculations through their respective interfaces. Treating every field as a color, or losing flat integer transmission, can produce nonexistent material-selection values inside a triangle.
Field numbers alone do not establish meaning. Names such as Input0, Input1, and Tex32 preserve a relatively mechanical mapping of the source program. Their semantics require following their consumers: lighting vectors, basis reconstruction, texture coordinates, or bit operations. Three components in Input1 are insufficient grounds to call it a complete world normal.
The bridge’s retained pose outputs give material evaluation a stable starting point. That is useful for fixed-camera operator comparisons, but bypasses the full skeleton, weights, and skinning process needed to generate arbitrary poses. Extending this to arbitrary weapon animation requires validating dynamic data generation again. Caching static outputs does not create a general animation asset.
Word ranges and shader interfaces
The 33-word range describes this payload; field names do not establish gameplay identity. Inspection of the vertex program yields the following mapping. Input names retain the code’s terminology, without forcing semantic names on fields whose consumers have not established them.
| Word range | Current interpretation | Destination |
|---|---|---|
| 0–2 | Three float bit patterns | World position, then relative and clip positions |
| 3–6 | float4 | Input0 |
| 7–9 / 10–12 | Two float3 values | Input1 / Input2 |
| 13–16 | float4 | Input3 |
| 17–18 | float2 | Input4 |
| 19 | uint | Input5, nointerpolation |
| 20–22 / 23–25 / 26–28 | Three float3 values | Input60 / Input61 / Input62 |
| 29–32 | uint4 | Input7, nointerpolation |
The directly verifiable facts are bit ranges, read types, and interfaces. World position has an explicit projection consumer; other vectors must be followed into the pixel program to establish whether they are directions, coordinates, or material parameters. This mapping also connects a position fix to its related varyings, preventing a clip-position update from leaving another 3D input used by the material unchanged.
Screen-space surface diagnostics and source textures belong to different stages. A source texture read depends on UV, mip, slice, and sampler. A diagnostic image stores screen-pixel results after interpolation, sampling, and decoding. Their relationship can be one-to-many: several parts can share a texture, and one surface pixel can combine multiple textures. A grayscale image on the gun cannot reveal the original UV image’s dimensions, compression format, or complete material bindings.
Raw buffers, inspectable meshes, and runtime payloads
Raw buffers support format and bit-pattern checks. An inspectable mesh supports 3D checks of silhouette, coordinates, and parts. A runtime payload must satisfy the target shader’s bindings and layout. They can share a source while serving different purposes. A diagnostic mesh screenshot is not a complete production asset, and a fixed-payload bridge is not a general importer.
Screen-space patches must also be kept out of the 3D asset comparison. The current correction uses 3D positions and tangent outputs; the camera and rasterizer still determine screen positions. Pasting a screen texture over a highlight might improve a screenshot while bypassing material and lighting generation. Diagnostic textures remain on the validation side and are not runtime color sources.
How the GPU Determines Which Geometry Is Drawn
Producing and consuming geometry arguments
The weapon scene contains a chain in which compute produces indexed indirect-draw arguments, instance remapping, and command counts, which geometry draws then consume. This conclusion comes from the weapon PIX capture itself, without borrowing evidence from SSR indirect dispatches or campaign scenes.
The diagram connects frustum filtering, occlusion, argument generation, and the body draw, with intermediate sorting and preparation abbreviated.
Frustum filtering executes Dispatch(15,1,1). The original DXIL includes a six-plane ViewFrustum, bounds projection, and support-value/dot tests. Its result is written to bit7 at byte offset 12 in the instance data. Subsequent programs organize instances by index and generate initial draw arguments. After depth preparation, geometry occlusion reads the corresponding input buffers and hierarchical depth, then updates instance visibility flags.
The final argument generator reads instance state again. The flags’ &128 test participates in filtering, while operations such as WavePrefixBitCount and WaveActiveMax organize accepted instances. Outputs are separated into 20-byte indexed arguments, a 4-byte instance mapping, and a 4-byte command count.
| Binding | Purpose | Layout |
|---|---|---|
| t0 / t1 / t2 / t3 | Geometry-subset, index, and instance inputs | Read using their respective source layouts |
| u0 | DrawIndexedIndirectArgs |
20 bytes per record |
| u1 | Instance remapping | 4 bytes per entry |
| u2 | Command count | 4 bytes per entry |
Argument and count buffers transition from UAV to INDIRECT_ARGUMENT; the instance mapping transitions to VERTEX_AND_CONSTANT_BUFFER, followed by the indexed indirect body draw. These transitions connect compute writes to draw reads and form part of the evidence. D3D12’s argument structures and state requirements are documented in Indirect Drawing and Resource Barriers.
Body-draw arguments
The captured body-draw record is:
// Captured M4A1 main-body indexed draw record
// {IndexCountPerInstance, InstanceCount, StartIndexLocation,
// BaseVertexLocation, StartInstanceLocation}
{81618, 1, 121016424, 0, 847}
The structure occupies 20 bytes. BaseVertexLocation is signed; its value here is 0. The 81,618 indices belong to this body draw, rather than the total vertices in the weapon and all attachments. The exported call uses the corresponding indirect-draw command signature, a maximum command count of 1, and argument and count buffers. D3D12_DRAW_INDEXED_ARGUMENTS
The exported C++ places decoded captured commands in a separate frozen buffer. Evidence that the GPU produces geometry arguments comes from the original writers, bindings, and consumers—not from mistaking replay of frozen arguments for a dynamic-generator test.
For verification, four source containers containing shaders were re-extracted from the capture resource package and compared byte for byte with saved DXBC files. This confirmed that analysis and replay used the same programs. Disassembly and inspection records are retained; the original capture resource package is not distributed here.
Where HiZ affects geometry
The geometry-occlusion program transforms instance bounds into screen bounds, selects a depth mip, reads four locations, reduces by minimum, transforms and compares depth, and merges the result into instance flags. The argument generator subsequently reads those flags. This causal chain distinguishes it from SSR ray-depth testing.
The current work does not count instances rejected by each test, nor recover every near-clip branch or historical-depth strategy. Capacity for multiple frusta does not establish that every slot is active. GPU-driven also does not imply mesh shaders, Nanite clusters, or complete removal of CPU scene traversal.
Actual HiZ before geometry occlusion
An independent offline replay of the exported original program read all 12 input HiZ levels immediately before the earlier frame’s geometry-occlusion Dispatch(15,1,1). The original shader was not replaced. The readback totaled 89,478,480 bytes and completed normally. Resource formats and dimensions were checked mip by mip.
Before copying, the relevant subresources transition to COPY_SOURCE and return to their original states afterward. Their values, the culling program, and flags are unchanged. The readback-tool source is retained separately for inspection. Because the export still uses frozen indirect-draw arguments, this image establishes the GPU intermediate contents at that moment, rather than validating a complete dynamic GPU-driven implementation.
DeviceZ is not linear distance
DeviceZ depends on projection and depth conventions. General perspective depth can be expressed as d = a/z + b; recovering distance requires the corresponding projection constants. Stored values cannot be read directly as meters. Hierarchical reduction must follow the source comparison program’s min/max convention; recognizing reversed depth is insufficient reason to swap operations by intuition. Visualizing Depth Precision
The right side of the depth visualization uses a log10 display transform. HiZ views also remove padding and show only the valid ceil(3840/2^mip) × ceil(2160/2^mip) rectangle; large mip images are subsampled for display. These operations aid inspection and do not enter the algorithm. A resource may be overwritten between stages, so reading time and owning frame must accompany it.
Correct arguments also require correct instance identity
Instance remapping is easily overlooked in indirect drawing. Visibility filtering changes the participating instance set; compacted positions need not equal original instance indices. Draw arguments specify index work, while remapping reconnects that work to its instance data. Copying arguments without the mapping can preserve geometry counts while corrupting transforms, materials, or part identities.
The count buffer answers a different question: how many command records may execute. It differs from InstanceCount inside a record. A call that executes at most one indirect command does not establish a one-instance renderer; it describes this call’s limit. Similarly, StartInstanceLocation cannot be interpreted as the number of guns in the scene.
State transitions provide inspectable links in the dependency chain. A compute program writes a UAV; the command stage reads the argument buffer as indirect arguments; instance remapping enters through a separate read state. These transitions do not constitute a cross-queue performance analysis, but they connect the compute work to concrete consumers.
For that reason, the original geometry front end and current UE submission are described separately. UE submits known geometry first, providing stable inputs for surface, lighting, and history evaluation. A future front-end port can retain this direct-draw path as a control and compare accepted instances, remapping, arguments, counts, and final geometry in sequence. Otherwise, front-end errors can propagate into materials and temporal processing and appear to be post-processing problems.
Depth hierarchies serve different algorithms
Geometry HiZ tests whether a projected bounding region can be rejected by the current depth. SSR depth hierarchies support the search for intersections between screen-space rays and scene surfaces. Similar resource organization does not give them the same consumers or decision semantics. An SSR hierarchy image in a geometry-culling section proves only that hierarchical depth exists, not that the geometry front end read it.
Reading HiZ immediately before geometry occlusion establishes its time of use, placing the observation before the consumer while retaining every mip’s format and dimensions. However, subsequent exported indirect draws can still use frozen arguments. The observation therefore supports the intermediate contents, but cannot establish dynamic rejection counts, command-compaction benefits, or original frame time.
Inferring an algorithm from bindings
Resource numbers, shader stages, and dispatch dimensions are easy to locate in a capture. Establishing their algorithmic roles is harder. A compute shader reading depth does not by itself prove occlusion culling; a written uint buffer does not by itself prove indirect arguments. Follow the data into its consumers and establish whether the write actually controls subsequent work.
The geometry chain closes that loop: an instance program updates flags; an argument generator reads them and writes draw arguments, instance mapping, and command counts; resource states transition; and the body draw consumes the results. The conclusion that the GPU determines geometry work therefore has evidence at both ends. This is stronger than seeing an object disappear or locating an ExecuteIndirect call alone.
Indirect arguments are command data with a layout
Argument values mean something only once the command signature and buffer layout are known. A 20-byte indexed-draw record contains five 32-bit fields, including signed BaseVertexLocation. Argument offset, stride, maximum command count, and the actual count buffer jointly constrain the read range. Printing all five fields as unsigned may look harmless with a zero offset and fail when a negative vertex offset appears.
Instance remapping is also more than a debug list. After visible instances are organized, draw-instance indices must find the original instance records again. Copying only DrawArgs can cause the same InstanceStart to address another object. Original-capture replay maintains specified inputs; the current UE back end submits known geometry. Neither substitutes for mapping-consistency validation of a future dynamic front end.
Name a depth hierarchy together with its production time
A frame can contain multiple depth hierarchies for geometry and reflection work. The same resource number may also identify different objects across capture contexts. This study therefore saves geometry HiZ before occlusion separately from the later frame’s SSR hierarchy. Their reading times, level counts, and consumers differ, so their captions are not interchangeable.
Each hierarchy pixel summarizes a larger depth region. Whether it stores a minimum, maximum, or combination must be established from production and comparison functions. With reversed depth in particular, a “brighter means nearer” visualization cannot establish numeric direction. After projecting bounds, mip selection and read positions determine coverage. Shrinking a depth image and applying a familiar comparison is insufficient to recover the source test.
The current evidence explains programs, bindings, and intermediates, without counts of each rejection category. It therefore supplies no invented culling rate. The 89,478,480 readback bytes are the sum of saved levels, rather than a runtime VRAM peak. Aliasing, simultaneous retention of other hierarchies, and release timing require separate resource-lifecycle inspection.
Check precision at the actual observable result
“Matching” has several meanings here. Matching silhouettes establish similar projection and coverage; identical floating-point texture outputs establish equality at that storage point; final RGB additionally includes lighting, history, and display. These findings are not interchangeable. A small normal error can be nearly invisible in base color yet strongly amplified by a narrow light on a low-roughness surface.
Camera fitting therefore checks points distributed across the weapon and attachments, rather than only a centroid. Surface comparison checks Normal, Depth, Properties, and packed fields as well as color. Highlights remain separate components. Mean or maximum camera-projection errors apply only to the vertex set and output resolution used in that test. A changed assembly or dynamic pose requires another check; one fit does not calibrate every model.
Normal, depth, and history images visualize their respective data. They help locate differences, but display transforms also affect appearance. Small floating-point residuals are judged from raw fields or reports. For the latest run, where statistics survive without the complete raw outputs, only those counts are presented. Sources and comparison points remain distinct so Part 2 can continue tracing inputs and consumers.
Aligning Geometry and Surface Data Before Materials
Fix the camera and pose first
A fixed-view comparison must hold camera matrices, screen position, object scale, assembly, and pose constant. Earlier camera recovery used 28,100 original body vertices, with a mean projection difference of approximately 0.00562 pixels and a maximum of 0.01908 pixels at 1080 scale. Ten attachment correspondence tests reached approximately 0.16292 pixels maximum. These are existing validation results, rather than screenshot registration refitted for every later image.
The wireframe uses 3D positions retained from an earlier original-program export. Its 81,618 indices expand to 27,206 triangles. It includes hidden edges and only the body draw. The three views are orthographic world-space diagnostics, rather than the Inspect camera, and do not include every attachment.
The reconstruction preserves source meshes, material slots, and part identities, reusing shared assets and textures. Corrections to fixed-pose 3D positions and tangents do not replace source skinning, skeletons, or arbitrary pose generation. The final validation build corrects material world varyings and TBN precision; it does not inject screen-space color, depth, or history images into the runtime display result.
Native surface encoding needs its own decoder
These are screen-space surface diagnostics from an earlier build, rather than UV textures exported directly from assets. The original and UE columns are retained and arranged by field, without changing pixels, exposure, or display transforms. Differences belong to that historical build; Part 2 discusses body-field counts from the final validation build.
The full three-column images and their difference gains are available for Base Color, Normal, Roughness, Metallic, and Material AO. The original third-column difference gain of ×20 is for inspection, rather than actual material strength.
BF6DecodeNativeSurface reconstructs normals and material parameters from PackedNormal, Color, Properties, PackedAO, and basis records. It includes basis selection, local-normal reconstruction, and packed-field reads. Connecting the source textures directly to UE’s default GBuffer does not establish equivalent semantics.
The source decoder ultimately constructs:
// Readable equivalent of the explicit source SSA assignments.
DiffuseColor = (1 - Metallic) * BaseColor;
DielectricF0 = 0.16 * Specular * Specular;
SpecularColor = lerp(DielectricF0.xxx, BaseColor, Metallic);
MaterialAO = min(DecodedAO0, DecodedAO1);
This consolidates directly corresponding assignments, not the complete encoding. Actual unpacking of Roughness, Normal, AO, and Specular Occlusion follows BF6CaptureNativeSurfaceDecode.ush. Type, normalization, quantization, and usage domain must all be preserved for each field.
| Surface data | Sensitive downstream results | Common errors |
|---|---|---|
| Normal / TBN | Specular peaks, reflection directions, angular occlusion | Inconsistent basis orientation, precision, or material varyings |
| Base Color / F0 | Diffuse and metallic reflection color | Reading sRGB as linear or using the wrong default Specular mapping |
| Roughness | GGX width, DFG, cube mip | An extra or missing square, different minimum |
| Packed AO / SO | Occlusion of diffuse, direct, or indirect specular | Sharing an incorrect multiplier or reading the wrong field |
| Depth / coverage / class | Shadow, SSR, and TAA validity | Incorrect depth views or foreground-class propagation |
Matching projection can still leave the material using another position
Vertex output usually includes more than one position. Raster position determines covered pixels, while material world coordinates enter lighting, projection, and sampling. Aligning only the former can match the silhouette while the material evaluates another position. A final correction completed this link: the 3D position used for projection also reaches the corresponding material varying, rather than retaining another approximation.
The tangent basis likewise must be followed to its actual consumers. A local normal-map vector reaches world space through TBN; a last-bit difference can cross a later packing threshold. Strong specular can amplify local-normal changes through the half-vector and BRDF. This correction changes fixed-pose 3D inputs, rather than copying final screen color into the material.
The distinction is determined by runtime reads. Reading valid 3D vertex and tangent data and then executing rasterization, surface production, and lighting still permits layer-by-layer checks. Injecting original screen color, depth, or History into the display chain bypasses the producers under examination. The current report uses the former path, while complete source skinning generation remains outside the recovered scope.
Identically named material fields can map differently
Metallic, Specular, and Roughness do not guarantee identical internal encodings across engines. Specular, for example, is squared and scaled to obtain dielectric F0. Reusing a different default mapping changes highlights at normal and grazing angles. Increasing light intensity may improve one view while worsening others.
Porting therefore requires reading source fields, recovering their meanings, and passing them through the downstream interface. Packed values must follow the same basis, normalization, and quantization conventions before entering diffuse and reflection calculations. Later surface statistics compare these fields under specified masks, formats, and rules; storage agreement does not establish equality of all continuous world-space quantities.
Recovering projection, world coordinates, and sample positions
A fixed screenshot does not reduce the camera to a field of view. Matching source geometry on screen requires checking view and projection transforms, near clipping, coordinate bases, relative origins, and jitter. They affect silhouette, world-position reconstruction, light direction, and temporal motion.
The current body-vertex bridge subtracts the recorded relative origin from world position, then evaluates projection row by row. Each row starts with one multiplication and proceeds through multiply-adds in a prescribed order. The expressions can be combined mathematically into a matrix multiplication for ordinary rendering; numerical matching still requires checking matrix storage and floating-point evaluation order.
// Operation structure from the current body-vertex bridge; bindings and field transport omitted.
precise float3 Relative = WorldPosition - SourceOrigin;
precise float T = Row.x * Relative.x;
T = mad(Relative.y, Row.y, T);
T = mad(Relative.z, Row.z, T);
ClipComponent = mad(1.0, Row.w, T);
Row arrangement, matrix transposition, and coordinate axes are separate questions. A float array does not establish a multiplication convention, and a target-engine matrix API does not automatically restore source space. Changing an incorrect basis and an incorrect transpose together can sometimes produce a similar silhouette from one angle, while lighting and motion reveal the inconsistency.
Camera solving and post-render screenshot registration must remain distinct. The former derives a renderable camera from 3D geometry and projection; the latter translates, scales, or locally deforms final images. Projection errors here come from existing 3D validation. Local comparisons use the same 4K coordinates without registering the final PNGs again, preserving the diagnostic meaning of highlight displacement.
Relative positions must share an origin
Renderers often express world positions relative to a camera or another nearby origin to control floating-point precision. Every quantity in a calculation must use the same convention: surface positions, light positions, shadow views, and camera reprojection cannot mix absolute and relative representations independently.
Original light metadata and high-quality GPU records for this scene have shown changes in relative positions. They must not be placed on one supposedly precise lighting diagram without conversion. Source diagrams retain their own coordinates. Only known origins and transforms establish whether two records describe the same light at the same location.
A matched silhouette can coexist with an incorrect position read by the material. One position feeds SV_Position; another varying feeds material direction and distance calculations. Correcting the former aligns the outline while the latter can still offset lighting. Position fields must be traced individually, even when the shape already looks correct.
A fixed camera still has temporal sampling differences
TAA sample positions can vary with a sequence even without user camera rotation. Existing projection and temporal-reconstruction records inspect different things: geometry-camera agreement on one side, jitter, current/previous matrices, and history validity on the other. A single frame’s jitter must not be absorbed into a permanent camera offset and then combined with a new runtime sequence.
Camera state and color history should not automatically share a cache-validity flag. Previous-camera state determines reprojection transforms; color-history reset determines how TAA consumes earlier colors. They can become invalid for different reasons. One “previous frame valid” flag hides producers that need independent checks.
The code explicitly checks the fixed physical camera and lens and retains its own preceding rendered-frame world transform. This is bounded runtime input, rather than recovery of every source camera trajectory, transition, and screenshot lifecycle. Part 1 records the convention; Part 2 will examine its placement in UE View and history objects.
Texture Channels, Color Domains, and Sampling
Texture dimensions and appearance describe only part of reconstruction. We also need the consuming shader, resource-view format, sRGB decoding, mip, array slice, and sampler addressing and filtering. Together these determine the sampled value.
The body pixel program binds both Texture2D and Texture2DArray resources and reads additional information from structured instance data. Describing every weapon resource as a separate 2D image is therefore insufficient. Array layers and material-instance identities must survive. An array type alone, however, cannot establish the full streaming, virtual-texturing, or game-wide material-binding architecture.
A common error is exporting an editor preview and reimporting it as linear data. A preview tool may already have decoded color, combined channels, or applied a display transform. This can double-apply gamma to base color or directly damage packed bits. Inspect the sampled resource itself rather than treating a file browser’s appearance as ground truth.
Color textures and data textures
Base color commonly involves color-space interpretation; normals, roughness, occlusion, and packed fields primarily carry data. Their shader use establishes meaning, rather than a file extension. One RGBA resource can mix semantics. Whether RGB is read through sRGB decoding depends on the actual resource view, not whether the image looks gray.
If a linear value is display-mapped during export and then read as data, it has already changed. A genuine color input without its required decoding also changes the material. Because F0 later reads base color and metallic, a base-color error affects more than diffuse: it can directly alter metallic reflection color.
Integer-packed AO is stricter still. A channel carries multiple bit fields rather than just a continuous value from zero to one. Changing integer format, filtering, or compression can alter extracted fields even if the whole image looks similar. Validate the producer-to-consumer transfer before attempting visual grading.
Mip completeness and level selection
Environment-cube quality changes illustrate why face resolution, mip count, level-mapping scale, and reference indices must be checked together. Replacing only the high-resolution top level while retaining another mip-selection scheme does not preserve rough-surface reflections. Low- and high-roughness regions can suffer different level-selection errors.
Sample and SampleLevel also have different input meanings. The former can use derivatives and implicit levels; the latter specifies LOD. A sampling choice in one function is not generalized to every resource here. Saved cube-quality controls establish the current resource convention; complete dynamic probe capture and updates require separate study.
For arrays, mip and slice are separate dimensions, even when integer or floating-point fields select both. Mistaking a material-layer number for LOD can select another image or resolution. The symptom may be a small color defect that is difficult to diagnose from the final image alone.
Normal data cannot be treated as freely recompressible color
Ordinary tangent-space normal maps often reconstruct a third component from two, but the source decoder here also selects a basis. Retaining RG does not retain the complete direction: other channels can encode a sign, basis, or another parameter. A default normal import that keeps only the expected XY can discard required information.
Checks can proceed from local-normal reconstruction through basis transformation, world direction, and surface output. Similar normal-map colors are an entry point; the final check concerns values in the current format and specified pixel domain. Some differences occur only at quantization boundaries and escape visual inspection while still affecting narrow specular peaks.
Texture reconstruction therefore retains the sampling convention alongside PNGs: resource identity, format, view, dimensions, mip, slice, sampler, coordinates, and consumed fields. The supplied material records part of these relationships for observed paths. Missing asset parsing or runtime policies remain unclaimed rather than being filled in as an unverified complete toolchain.
Surface Encoding and Decoding
A normal’s color in a surface-data texture does not necessarily equal N*0.5+0.5. The decoder reads several channels and uses markers to select a basis. Only after recovering local components and combining them through the prescribed multiply-adds can the BRDF work in the correct space.
Begin with arithmetic dependencies before discussing possible design intent. Comparisons, integer conversion, and masks establish discrete information in a channel. A square root combined with three basis vectors establishes direction reconstruction. These operations identify decoding; the full offline encoder still requires separate evidence.
Basis selection, local direction, and roughness
The current NativeSurfaceDecode exposes the following index relationship. Descriptive variables express the source operations; the frozen code remains authoritative for constants and branches:
uint SignBit = uint(PackedNormal.z > 0.5);
uint AxisCode = uint(PackedNormal.w * 3.0 + 0.5);
uint BasisIndex = min((AxisCode << 1) | SignBit, 5);
float2 XY = PackedNormal.xy * 2.0 - 1.0;
float Z = sqrt(1.0 - saturate(dot(XY, XY)));
// Source multiply-adds combine the selected basis rows/components into a source-space direction.
Basis selection reaches at most index 5. Each basis reads three vectors, giving eighteen records. That count describes an actual indexed layout; calling it merely a “normal matrix” loses the relationship. The selected basis and local components jointly determine direction. Replacing only one can produce a normalized normal pointing the wrong way.
Another PackedNormal component also participates in roughness recovery through absolute value, scale, bias, and saturate. It cannot be ignored when explaining normals or assumed to be the ordinary Z component of a UE normal map. A surface channel can carry multiple encodings; its consumers establish its meaning.
Sign and roughness share a channel
PackedNormal.z both selects a basis sign and enters roughness recovery. In the frozen code’s arithmetic order:
sign = (z > 0.5)
roughness = saturate(1 - (abs(z - 0.5) - 0.0014662756584584713)
* 2.007843255996704)
This is a readable expression of source arithmetic; precise execution retains float constants and evaluation order. Teaching inputs z=0.25 and z=0.75 have the same distance from 0.5 and yield the same roughness, approximately 0.501, but different sign tests. A decoded grayscale roughness image therefore cannot recover every discrete bit of the original channel. Reading z as an ordinary normal’s third component changes both direction and material paths.
These inputs explain the encoding; they are not measurements of every weapon pixel. Actual comparison uses the stored values, selected basis, and output format of the corresponding intermediate.
Directions and occlusion in packed data
The decoder combines two integer components, extracts 12-bit fields, restores direction components over their ranges, and applies octahedral-style folding and normalization. Its high byte and the low byte of another component also form AO inputs. The layout and arithmetic are established; the intermediate direction’s purpose still requires following downstream reads.
packed = (word1 << 16) | word0
componentA = packed & 4095
componentB = (packed >> 12) & 4095
occlusionA = (packed >> 24) / 255
occlusionB = (word2 & 255) / 255
MaterialAO = min(occlusionA, occlusionB)
This excerpt explains field relationships only. The source retains finer ordering for normalization, re-encoding, and floating-point conversion; the teaching integer expressions cannot replace full numerical comparison. In particular, valid word0/word1 ranges must agree with the resource format. Casting filtered normalized colors to integers does not restore the original bytes automatically.
The helper’s returned fields also matter. In the frozen code, PackedAO direction is restored, normalized, and re-encoded, but the returned NormalSource comes from the preceding PackedNormal basis calculation. MaterialAO reads the corresponding bytes. An intermediate direction does not establish that the function uses it as the shading normal or an IBL bent normal. Other uses require their own consumer trace.
After decoding, identify which output each downstream path reads. The surface structure provides both MaterialAO and SpecularOcclusion: the former takes the minimum of two AO bytes; the latter comes from another color channel. Their common zero-to-one range does not make them interchangeable. Local diffuse, direct specular, and environment reflection consume their respective inputs.
An integer example for PackedAO field boundaries
For teaching words word0=0x0800, word1=0xFF80, and word2=0x0080, the combined packed value is 0xFF800800. Its lowest 12 bits and next 12 bits are both 2048; the high byte is 255, and the other AO byte is 128. Direction fields proceed through folding and normalization; MaterialAO takes the minimum of normalized bytes, approximately 128/255≈0.502.
The direction quantization center is also significant. Twelve bits provide 4096 codes, with 2047.5 halfway between integer codes. Code 2048 therefore maps to approximately 0.0002442 rather than exact zero. The program preserves this discrete result before reconstruction. Zeroing “small values” in the port already changes the data, potentially becoming visible through narrow highlights or later re-encoding.
This example checks extraction and scale, without claiming to represent a real material sample. It also shows why color filtering cannot be applied directly to packed uints: a filtered integer may change field boundaries and no longer represent the same valid encoding.
Mapping material parameters to BRDF inputs
Base color, metallic, and Specular first form DiffuseColor and RGB SpecularColor. Dielectric F0 follows a specific mapping, while metallic reflection moves toward base color. Reducing SpecularColor to a scalar discards metallic reflection color; feeding source Specular into another engine’s identically named parameter can apply a mapping twice.
For a teaching Specular value of 0.5, dielectric F0 is approximately 0.04. With base color (0.2, 0.3, 0.4), M=0 produces that diffuse color and approximately (0.04, 0.04, 0.04) specular. M=1 removes diffuse and makes specular equal base color. M=0.5 gives approximately (0.1, 0.15, 0.2) diffuse and (0.12, 0.17, 0.22) specular. These values help check duplicated mappings; they are not uniform settings for this gun.
Source roughness must likewise remain distinct from its consumers. Decoded Roughness is not already-squared alpha in the distribution term, and DFG uses its own coordinates. Recording the source field, decoded result, and back-end inputs separately lets us determine whether excessive brightness originates in transfer, decoding, lighting, or post-processing.
Lighting Inputs and BRDF Evaluation
Twenty-six light records do not mean twenty-six contributing lights
The original GPU data contains 26 light records of 144 bytes each and 10 shadow records of 208 bytes each. Comparisons between earlier CPU metadata and high-quality GPU uploads cover colors, flags, attenuation radii, cone parameters, and shadow records. Some relative positions and atlas layouts changed. Records from different configurations cannot be overlaid into one “precise lighting layout” without accounting for those changes.
This retains directions and positions for local lights 0, 2, 4, 5, and 6 in the metadata, using presentation coordinates displayed in meters. It is a historical metadata diagram, rather than a complete lighting-editor view of the current high-quality frame.
These positions come from the GPU lights read during original lighting composition, retaining source-relative coordinates. The diagram fits neither the camera nor weapon coordinates and does not assume every record contributes to the gun.
The current local-shadow feature control registers source indices 2, 4, 5, and 6. This is a specified validation set, rather than every shadow-capable light. source_shadow_enabled, light type, receiver flags, range/cone, and material branches jointly determine the effect.
Lighting components need not be separate render passes
Historical luminance statistics over the fixed body-view domain are Direct Diffuse 44.4692%, Direct Specular 50.2211%, Ambient Diffuse 3.3150%, and Probe+SSR 1.9948%. Rounding makes the total differ slightly from 100%. These describe energy distribution over that observation domain, rather than GPU time or a reconstruction score.
The original lighting program can combine multiple components in one compute dispatch. Analysis read internal RGB through separate floating-point observation targets and checked their composition against the original packed output. References to a “Direct Diffuse image” or “IBL image” do not imply that the original game already had separate passes for them.
Range, cone, and distance bias
The point/spot attenuation entry is BF6NativePunctualAttenuation. With d²=dot(ToLight,ToLight), it evaluates:
range = saturate(1 - (d² * InvRadiusSquared)²)
cone = saturate(dot(ConeDirection, normalize(ToLight))*ConeScale + ConeOffset)
attenuation = (range*cone)² / max(d² + DistanceBiasSquared, 0.0001)
Distance bias, the range window, and cone are distinct factors. UE integration also transfers centimeters, light color, and candela. Some range/cone calculations explicitly remain outside the internal BRDF entry and must not be multiplied in again.
What controls a specular peak
The recovered point path uses alpha=max(Roughness²,0.002), source distribution and visibility forms, and Schlick’s fifth-power Fresnel term. DFG is sampled at (NoV, Roughness²), with one component entering this energy compensation:
float3 Fresnel = F0 + SchlickFifth * (1 - F0);
float3 Energy = 1 + (1 / max(DFG.x, 1e-6) - 1) * F0;
This Energy term addresses a different issue from AO multi-bounce correction and cannot be merged with it. Source diffuse also includes angular, roughness, and retroreflection terms. Replacing it with default Lambert and fitting light intensity changes the angular response.
The directional path uses source angular size and reflection direction to select a direction on a spherical light, then evaluates its half-angle terms. The local disk path retains a longer SSA port and LUT sampling. Public PBR literature helps explain the models; the specific constants and operation order here come from the capture and ported code. Moving Frostbite to PBR, Microfacet Masking-Shadowing
Point, directional, disk, and LUT code and engine-integration patches are recorded separately. The patches document changes; they are not a complete engine ready to build after extraction.
Inspecting one lighting evaluation term by term
The distance window, spotlight cone, distance denominator, surface orientation, and BRDF all affect brightness in different ways. The window limits range; the cone limits angular extent; the denominator controls attenuation; NoL describes orientation to incident light; microfacet terms distribute energy toward the viewer. A single brightness coefficient cannot explain an error confined to a narrow edge highlight.
The bridge presents a particular risk of duplicate evaluation: some source range, cone, and distance-bias work happens outside the BRDF, whose inputs follow that convention. Placing the “complete source formula” inside it again can attenuate twice. The code compiles and produces light, but diverges toward range boundaries. Global intensity cannot compensate for that shape error.
Roughness needs the same tracing. Material Roughness, distribution alpha, DFG coordinates, and reflection-cube mip are not interchangeable. The point path explicitly consumes squared roughness; other light paths have their own calculations. Missing or duplicating a square, or sharing the wrong minimum, changes width, peak, and environment-reflection blur together.
Local effects before domain-wide percentages
Direct specular occupies a large luminance share in this fixed body domain and deserves early inspection. The statistic still has limits. A narrow metallic edge can reach a high peak over few pixels. Low domain-wide probe and SSR contributions do not make local differences negligible. Contribution shares can prioritize diagnosis without assigning all residuals to the largest stage.
Light-record count, lights affecting the object, and shadow eligibility are separate questions. The local-light control supports only its validation set. It does not recover the complete light-culling or clustered-list producer; the presence of a lighting compute program is insufficient to assign an unconfirmed architecture name.
Connecting vectors, distributions, and units
One light evaluation starts with surface normal N and view direction V. Surface-to-light gives ToLight, normalized into L; L and V form half-vector H. NoL determines whether the surface faces the light, while NoV, NoH, and LoH enter distribution, visibility, and Fresnel.
These angles are not interchangeable. Reversing the view vector or multiplying a world normal by a light direction in another space can produce numerically legal values and entirely wrong highlights. Roughness can broaden the bright region without repairing its spatial relationship.
Distribution and visibility in the current point path
The code obtains alpha from squared Roughness with a minimum of 0.002, then squares alpha. These adjacent squares serve different internal quantities. The following retains the relevant distribution and visibility structure for explanation, rather than defining a common interface for every light type:
alpha = max(Roughness * Roughness, 0.002)
a2 = alpha * alpha
denom = (a2 * NoH - NoH) * NoH + 1
D_without_pi = a2 / (denom * denom)
visibility = 0.5 / (
NoL * sqrt((NoV - a2*NoV)*NoV + a2)
+ NoV * sqrt((NoL - a2*NoL)*NoL + a2))
The frozen program handles NoV construction, epsilon, and early-outs explicitly; precise tests must preserve them. These equations explain variable roles rather than reducing the model to “lower roughness means brighter.” Peaks also depend on source size, direction, F0, DFG, occlusion, and final quantization.
The name D_without_pi records that normalization is applied in outer composition. Adding 1/pi after recognizing a familiar GGX expression would normalize twice. Direct diffuse has its own factor placement too. Trace inputs to complete output to locate normalization; matching an isolated line to a textbook formula can duplicate it.
Diffuse is more than Lambert
The point branch’s diffuse coefficient includes view angle, incident angle, roughness-dependent blending, and retroreflection. These alter energy distribution at low angles or particular roughness values. Replacing them with a constant and fitting light strength and base color to one image discards source angular response.
The explanation therefore follows inputs and roles: front-facing response, grazing contribution, source coefficients, and target-engine bridging. Long programs remain in frozen snapshots for inspection; the article exposes readable relationships and key branches instead of unexplained register lists.
Light angular size and specular distribution
Directional and disk paths also account for angular size and different integration approximations. An area light spans a range of directions, influencing highlight width and peak. Increasing point-light intensity changes amplitude without necessarily reproducing that distribution. The connection between the source disk program and its LUT must follow the actual branch.
This explains why area, LUTs, and directionality need checking, without declaring a published area-light method to be the complete current implementation. Actual code-to-table connections are the direct evidence; papers explain integration, energy, and error. Coverage of other light shapes remains limited by observations and tests.
Occlusion Inputs and Their Scope
Combining AO inputs
Material AO and SSAO have different producers. The integrated local-light branch uses min(saturate(MaterialAO), saturate(SSAO)) as its CaptureAO. Multiplication is not an equivalent replacement, nor is this rule automatically valid for every light type.
BF6NativeLocalDiffuseAO applies an RGB polynomial to diffuse color:
float3 A = DiffuseColor * 2.0404000282287598 - 0.33239999413490295;
float3 B = 0.641700029373169 - DiffuseColor * 4.795100212097168;
float3 C = DiffuseColor * 2.755199909210205 + 0.6902999877929688;
float3 MultiBounce = saturate(((A * AO + B) * AO + C) * AO);
float3 Factor = 1 + Strength * (MultiBounce - 1);
This color-dependent local-diffuse correction avoids darkening near-field energy on bright surfaces solely by single-bounce AO. It relates to multi-bounce AO literature, but the consumer formula cannot establish that the original SSAO producer is GTAO or its Specular Occlusion is GTSO. Accurate Indirect Occlusion technical report
Direct Specular Occlusion
Local direct specular has a separate derived occlusion term:
float Exponent = exp2(-16 * Roughness * Roughness - 1);
float DirectSO = saturate(pow(saturate(NoV) + saturate(AO), Exponent)
+ saturate(AO) - 1);
In this integration, it affects the corresponding radial-light specular. Directional light is added later in the source program and does not pass through this local SO term. Texture-driven material Specular Occlusion, IBL occlusion, and DirectSO need separate consumer traces. Applying one AO grayscale to diffuse and all specular changes energy distribution.
DirectSO response with fixed inputs
The graph fixes AO=0.5 and varies only NoV and roughness in the formula above. At NoV=0.5 the power’s base equals 1, so all three roughness values produce DirectSO=0.5. Different exponents separate the responses away from this intersection. These are local function responses, rather than weapon curves fitted from final screenshots.
As roughness increases, this function’s exponent approaches zero and its curve approaches constant AO. This does not make final specular view-independent: microfacet D, visibility, Fresnel, DFG, light direction, and light visibility still participate at their own stages. DirectSO is one multiplier among them.
Plotting fixed inputs checks function shape and wiring. Swapping AO and NoV changes the additive term and response, while preserving the intersection where both equal 0.5; checking only that point misses the error. The plot does not cover every saturate boundary. Whether a light actually enters the branch requires bindings and net-contribution controls. Double-precision plotting illustrates the formula’s trend without claiming GPU bitwise equality.
Validating integration through net contribution
This historical control image includes gain and difference views whose original labels must remain. It is not an ordinary beauty image with the feature disabled.
Across the complete 322,863-pixel body domain, mean absolute net contributions for original/UE are approximately 0.002135782 and 0.002135303. Net-contribution RGB MAE is approximately 0.000035044. The L1 difference relative to this feature is approximately 1.64080%; its denominator is the feature’s own contribution, rather than the final image. Each side uses its own inputs, so this cannot establish operator equivalence for arbitrary inputs.
A surface example separates occlusion terms
At one receiver-edge pixel, material AO can supply local structural occlusion; SSAO supplies another estimate from screen geometry; a light’s shadow tests whether that light is blocked; and specular occlusion also depends on reflection direction and roughness. All can darken output, but their roles differ. Combining them into one grayscale multiplier loses those distinctions.
The local-diffuse correction also depends on surface color. MultiBounce is evaluated per RGB component, so identical AO can produce different corrections for different diffuse colors. Strength controls its application to the branch. Converting the result to grayscale first, or applying it to a directional path without the corresponding contract, changes the source consumer.
DirectSO net-contribution comparison tests another aspect of integration: retain lights, attenuation, and other conditions, disable only the corresponding effect, and inspect the change. Similar mean changes establish a similar scale under current inputs; local shape and maximum differences still need checking. The feature-relative 1.64080% cannot be reported as an error percentage for the complete image.
Where each occlusion term applies
A receiver pixel can receive material AO, SSAO, light-direction shadows, and specular occlusion simultaneously. Diagnosis starts by identifying each producer, then whether it changes diffuse, specular, or environment lighting. Sharing “occlusion” in their names does not give them a shared grayscale texture or multiplication point.
MultiBounce corrects local diffuse per DiffuseColor channel, with Strength controlling interpolation. DirectSO consumes its own angular and roughness inputs. Light intensity, exposure, and shadow strength belong to other stages. Combining them into a global gain may temporarily improve one region while discarding responses at other colors and view angles.
These components remain separate during further diagnosis. After surface precision improves, residual highlights may still originate in lights, visibility, reflections, or temporal processing. Further AO tuning does not automatically explain them. Part 2 will trace their actual UE consumers and inputs.
Matching Both Shadow Production and Sampling
The shadow camera is an algorithm input
Recovering PCF also requires the light view, clipping range, caster geometry, atlas viewport, depth format, bias, and comparison direction. The same filter gives different visibility under different projections. The implementation adds a native D16 shadow target and corresponding raster and sampling paths, rather than adjusting the strength of default UE rectangular-light shadows.
The retained 4096×4096 D16 atlas comes from an earlier original-data readback. The right image uses a percentile contrast range over nonzero depths. This is stored depth, rather than Shadow Visibility or an atlas independently generated by the final UE validation build.
From projection to comparison sampling
BF6NativeShadowPCF retains the projection multiply-add order and constructs atlas UVs from source records. It uses a 4096 scale, half-texel offset, source kernel indices and weights, hardware comparison Gather, and source return-order accumulation. Shadow-map rasterization uses GREATER_EQUAL; subsequent PCF GatherCmp uses GREATER. These belong to different stages and cannot be exchanged or replaced with an ordinary float Load and manual comparison.
Hardware GatherCmp returns comparison results for four neighboring texels. The caller still determines weights and result order. Numerical matching here also includes D16 quantization and projection precision.
Contact Shadows perform a separate screen-depth visibility check involving random phase, step count, linear-depth conversion, and distance-dependent width. This is a different input from the shadow map; atlas grayscale cannot replace it. The current control sets specified shadow visibility to 1 while retaining source cone and attenuation, separating “disable shadows” from “disable the light.”
For the four registered local lights, original/UE mean net shadow contributions are approximately 0.024980807 and 0.025140195, with net-contribution MAE approximately 0.000222070. Similar means do not establish pixelwise equality at edges and peaks; maximum local differences in this control remain substantial.
Read depth atlases separately from visibility images
The atlas stores depth from the light’s viewpoint. Combined with a projected receiver’s comparison depth, comparison sampling and filtering produce lighting visibility. A dark depth visualization may simply have values concentrated in a narrow range; it does not establish nearly complete occlusion. Using it as visibility bypasses the calculation.
Sampling precision must also match. D16 first quantizes depth; atlas coordinates and half-texel offsets determine sampled positions; GREATER determines comparison direction; Gather order and weights determine accumulation. A mismatch can create errors around small holes and hard edges. Keeping the name PCF or a visually similar kernel does not establish equivalent results.
Shadow controls should change visibility alone where possible. Turning off a whole light also removes diffuse, specular, and attenuation, preventing an isolated estimate of shadow contribution. Setting specified visibility to one while retaining cone and attenuation better isolates the effect. It remains a scene-specific control rather than proof for all light types and occlusion boundaries.
Half-texel offsets and four-component weights
The source projects the receiver through shadow-view row records, divides by w, and forms UV using atlas offset and scale. It then computes Texel = UV × 4096 − 0.5, separating integer Base and fractional F. This half-texel changes continuous sample position relative to the grid; another “center correction” must not be added elsewhere.
For teaching Texel=(100.75, 200.25), Base=(100, 200) and F=(0.75, 0.25). In source component order, W=(0.1875, 0.0625, 0.5625, 0.1875), summing to 1. W is not yet the final filter for four comparison results. The program dots source Weights records with W to form Filter, then dots Filter with the hardware comparison Gather results:
I = Kernel.y + Y × Kernel.z + X
Filter = (dot(Weights[I], W), dot(Weights[I+1], W),
dot(Weights[I+Kernel.z], W), dot(Weights[I+Kernel.z+1], W))
FilterSum += dot(Filter, GatherCompare(T, NDC.z))
Kernel.x, starting offset, and row stride jointly determine reads; X/Y advance by 2 in the source loop. The diagram invents neither a kernel size nor a Gather component order from grid positions. Removing Weights and applying W directly creates another filter. Averaging depth before comparison also changes the operation.
Valid is first computed from NDC and atlas records, then used in final return selection. Its boolean expression checks XY bounds, nonnegative z, and a nonnegative record component. No familiar but absent clipping rules are added here. Returning 1 when invalid does not justify rewriting the source as an immediate early-out at function entry.
Kernel and comparison order
Shadow sampling projects the receiver into light clip space and then the atlas. Coordinate fractions form weights; the source kernel table defines neighborhood samples and composition. Comparison Gather returns comparison results, which differs from comparing an averaged depth. Nonlinear comparison and averaging cannot be reordered freely.
The program also applies light-direction-dependent fade and strength, returning unoccluded output for invalid projection. Source Valid comparisons, kernel indices, and sampler behavior must survive at boundaries, not merely in a central shadow region. Some fine-edge errors therefore cannot be solved simply by adding PCF samples.
Atlas inspection shows depth distribution without independently proving correct depth production for every current light. Tiles, viewports, casters, and light matrices must be checked together. Part 1 establishes that production/consumption contract; Part 2 will cover actual D16 targets and an independent visibility pass in UE.
Environment Probes and Screen-Space Reflections
Cached world-direction data and live production
Environment lighting uses source world-direction coefficients, probe records, and cached inputs. High-quality input checks identified local-cube face resolution changes from 128 to 256, mip counts from 6 to 7, SampleLevel mapping scale from 32 to 64, and changed cube-reference indices. Replacing a cube with a higher-resolution image alone does not restore the input contract.
The study establishes how these caches are read, while their complete dynamic world-GI production remains unrecovered. This is not a Lumen port, and one fixed view cannot establish the whole environment-lighting update policy.
SSR work allocation
Original high-quality SSR includes classification, allocation, trace, filter, eliminate, and resolve. Classification, allocation, and GPU-generated Dispatch arguments schedule reflection work, distinct from GPU-driven geometry draws above.
In the later-frame fixed-input test, actual GPU argument-buffer readbacks correspond to captured commands as follows:
| Consumer | Argument location | Observed Dispatch xyz |
|---|---|---|
| Allocate / Resolve / Filter | Shared dispatch buffer, byte offset 0 | 2448,1,1 |
| Eliminate | Shared dispatch buffer, byte offset 16 | 128112,1,1 |
| Trace A | Trace-argument buffer, byte offset 0 | 60,1,1 |
| Trace B | Trace-argument buffer, byte offset 16 | 217,1,1 |
Ported classification, allocation, and resolve programs were substituted individually and in combination. All 14 inspected complete outputs matched the baseline in the specified later-frame tests. Actual argument buffers were also read to validate generated dispatches, rather than relying only on images produced with the exporter’s frozen buffers.
These counts are not constant across frames. SSR internal counts do not define final reconstruction acceptance here and are not interpreted as accumulated frame counts.
SSR HiZ, history, and confidence
This is the later frame’s SSR maximum-depth hierarchy. The minimum hierarchy is available in the original SSR minimum-depth visualization. Even a shared resource object can hold different contents at different read times. The observations remain separate; reflection-stage depth is not evidence of geometry-occlusion input.
These show historical radiance, historical SSR color, current color, and historical/current confidence read during original later-frame lighting. Colors use a fixed Reinhard+sRGB display transform; confidence is displayed as R8_UNORM/255. Dark colors do not indicate a failed read: screen reflections affect only parts of this view. Confidence is neither TAA classification nor accumulated frame count.
Historical SSR net luminance is approximately 0.07957% of total body lighting. A low domain-wide share can still have local effects, but cannot explain every specular-peak difference alone. Probe fallback, DFG, material SO, current radiance, and their histories require separate attribution.
Stochastic SSR and screen-space ray-tracing publications provide background. Identifying a precise OB3 implementation still requires original-program evidence. Frostbite SSR presentation, Efficient GPU Screen-Space Ray Tracing
Screen reflections carry both color and reliability
An SSR color does not guarantee a usable screen reflection at every pixel. Historical color, current tracing, filtering, and validity must cooperate; probes provide another source where screen information is insufficient. Separate color and confidence views prevent a dark image from being called reflection failure or a colored history from being mistaken for a valid current hit.
Confidence is stored in R8_UNORM and interpreted over its defined range; TAA class is an integer category. Both can be visualized in grayscale or false color without sharing identity. Reading confidence as accumulated frames turns reliability into a time counter; reading TAA class as opacity loses classification branches.
Indirect-argument readback provides another necessary check. An exporter may freeze replay arguments. Inspecting work generation itself requires reading the actual GPU-produced buffer and checking the offsets used by actual consumers. Byte offsets follow source layout. Tuple sizes alone cannot establish geometry counts, valid reflection pixels, or historical frames.
Final reflections also depend on surface data, DFG, probe quality, and current lighting. A same-input SSR operator can pass while independent UE inputs and history still differ. Final evaluation therefore retains component controls instead of attributing local highlight differences vaguely to insufficient reflection frames.
Probe spatial and sampling context
A reflection probe includes spatial and sampling context. Source cube index, face resolution, mip mapping, and material roughness jointly determine the read. A fixed scene can study consumers using confirmed caches without recovering dynamic-world cache updates and scheduling.
SSR supplements currently visible screen information. Saved original history colors and confidence distinguish absent reflection from reflection available only locally. Reading those textures is more reliable than inferring their source from the beauty image, while still requiring the owning frame, reading stage, and data purpose.
Preserving Precision and History in HDR and Volume Composition
Writing lighting components into low-precision formats individually and then adding them in UE need not equal adding them in floating-point registers and storing once. Original lighting observations reveal measurable quantization boundaries between internal composition and final packed storage. The port preserves unified composition and corresponding dither instead of compensating with light gain.
BF6NativeFinalHDRDither generates noise before final storage:
precise float x = float(Pixel.x) * 0.067110560834407806f;
precise float base = mad(float(Pixel.y), 0.005837149918079376f, x);
precise float shifted = base + QuantizationPhase;
It then adds RGB phases, applies two frac operations, and perturbs floating-point bits according to target mantissa precision. R11G11B10 channels have different precision. HDR dither, decode dither, and final RGB8 dither also occur at different points. A disabled optional material-dither branch does not establish that final HDR dither did not execute.
The source CPU phase generator was recovered by checking disassembly against original executable bytes, then matched byte for byte to 64 constant buffers actually uploaded to the GPU. Float mul, mad, phase addition, and subnormal handling were checked separately. An independent GPU fixed-input test reproduced the specified source noise operator over 675,840 observed pixels before its actual UE integration. This does not cover floating-point behavior on every platform. Source phase recovery and runtime integration have separate research records.
Volume structure and 2D readback layout
The diagram explains logical volume-to-atlas coordinates rather than optical slices. The original UE volume-slice image comes from one earlier UE test, showing layers 16, 64, and 112 of Density, Lighting, and Integrated Volume. All use Reinhard+sRGB without per-column brightening. Some values remain dark in that range; appearance alone is not used to judge complete volume equality. Quantitative conclusions come from all valid voxels.
The data is 480×270×128, totaling 16,588,800 valid voxels in R11G11B10. Diagnostic export lays it out as 1920×8640:
uint3 v = uint3(id.x % 480, id.y % 270,
(id.x / 480) + (id.y / 270) * 4);
Flat[id.xy] = Volume.Load(int4(v, 0));
This is a 4×32 slice layout. Consecutive file rows cannot be treated as one slice. Other readbacks also require removing padding according to actual row pitch before comparing valid voxels.
Checking voxel-to-atlas coordinates
Writing the inverse relationship locates any voxel in the atlas, beyond checking dimensions alone. For v=(x,y,z):
FlatX = x + 480 × (z % 4)
FlatY = y + 270 × floor(z / 4)
Teaching point v=(17,23,65) lies in zero-based slice row 16, column 1, at Flat=(497,4343). Substituting into the remainder/integer-division mapping recovers x=17, y=23, z=65. Boundary voxel (479,269,127) maps to (1919,8639), the last valid pixel of the 1920×8640 atlas.
This rearranges data without spatial resampling or interpreting slice index as physical distance. z=64 and z=65 are horizontal neighbors in the atlas, whereas z=68 moves to the next row. Blurring the whole atlas as an ordinary 2D image mixes pixels without equivalent spatial adjacency. Actual fog still samples Texture3D through its corresponding algorithm; the atlas serves readback and verification only.
A volume check can begin with dimensions and bit depth, verify known coordinates, and then compare every valid value. Plausible slices suggest reasonable visualization layout, but cannot replace complete-volume comparison or explain unsaved dynamic history.
Volume operators and independent history
The volume chain includes density/emission, lighting, temporal processing, and integration. Beer–Lambert attenuation and view-ray scattering integration help explain them; the specific implementation follows the original DXIL port and fixed-input tests. Frostbite’s public volume presentation provides principles without proving OB3 retained every published design choice. Frostbite Volumetric Lighting
The current port ran four retained test categories. Every valid voxel in six GPU outputs matched the original, and 83 related checks passed. None of the lighting test’s 26 light records satisfied the tested local-volumetric-light branch conditions. This specialization does not cover newly eligible local volumetric lights. Noise, camera, world caches, and history in independent live execution remain separate questions.
Analysis after original lighting also observes raster fog composition, shafts, and transparent objects. Compute versus raster alone does not explain every error; blend equations, formats, depth, and output targets must correspond. Sight-glass transmission must be measured separately from the opaque body. Near-zero net contribution over the body does not establish no effect on glass.
Storing before adding differs from adding before storing
If floating-point lighting components are written separately to limited-precision textures, each is rounded before later addition. A source program that adds in registers and stores once need not produce the same mantissa, even with the same BRDF. The accumulation and storage boundaries need recovering; the difference cannot all be attributed to material color.
Each dither application point therefore needs its own identity. Noise before HDR writes addresses limited-precision floating-point storage; perturbations around decoding and RGB8 output address different encodings. Sharing the name Dither does not make one noise texture valid anywhere. Phase, pixel coordinates, channel precision, and multiply-add order are test inputs.
What same-input volume tests cover
Separating density, lighting, temporal processing, and integration allows one input category to be fixed while its output is inspected. Volume data checks spatial organization and depth slices; screen-space net contribution shows the final affected regions. These answer operator and composition questions respectively. A volume slice is not final fog color.
No light in the current lighting test activates the local-volumetric branch, an important condition on the result. Matching outputs does not validate a branch that did not execute. Independent execution must also produce its own density, world caches, camera transforms, and history. Retained intermediates as test inputs are distinct from runtime injection into final display.
Likewise, low fog, transmission, or depth-of-field contribution over the weapon body does not justify deleting those programs. Sight glass, background, and out-of-focus regions have different inputs. Changing the validation domain can turn a near-zero component into a necessary path, especially when moving from weapon presentation to scene rendering.
TAA Inputs, History, and State Ownership
Complete inputs and outputs
The original TAA fixed-input test retains eight textures: Depth, Stencil, Velocity, Prior Class, current HDR, Prior Color, current CoC, and Prior CoC, plus 512 valid constant bytes. Depth and Stencil have separate aspect views. Outputs include new class, new history color, new history CoC, encoded display, and display CoC.
History is not a display screenshot blurred again. It has its own format, color encoding, classification, and validity protocol; bindings and samplers must remain correct when reading it.
History textures and display output
Read format and purpose before interpreting color. These intermediates show undecoded storage channels. Their cyan appearance cannot diagnose white balance or weapon-material tint. Prior Color is the old state read here; New History and Encoded Display are different outputs. Similar appearance does not make their bindings interchangeable.
The three columns are cropped unchanged from existing original-intermediate visualizations and explained individually. There is no new decoding or brightening, nor restoration of pixels omitted by the source visualization’s sampled layout. The original TAA history-texture image retains the complete English figure and notes.
These are prior color history, new color history, and encoded display from the original fixed-input test. All use R16G16B16A16_UNORM. The image directly shows normalized storage RGB without color decoding and should not be judged as a beauty image. It differs from linear HDR and SSR’s R11G11B10 color.
This R16G16_FLOAT motion texture is actually read by original TAA. X/Y share a symmetric display range, with magnitude in a separate column. Stored units are retained without labeling them pixel displacement. Small nonzero residuals remain visible under a fixed camera; the diagnostic explicitly labels its display range.
Only integer classes 0 and 1 occur in these inputs. Prior counts are 7,745,094 / 549,306; new counts are 7,745,042 / 549,358. Colors distinguish categories only. They are not called SSR confidence or AO.
From Encoded Color to Final Display
These cumulative outputs come from the same earlier UE test and share one display mapping: Before Fog, After Fog, after TAA decode, and after DOF. They are not four independent net contributions.
TAA encoded output requires its corresponding decode and sharpening. DOF reads CoC and HDR, affecting background and the weapon’s focus region differently. The original nine processing steps were tested and retested against complete 4K outputs using saved original HDR/CoC inputs. The current CoC visualization labels stored values only; its unit has not been established as pixel radius.
Format numbers also come from two systems: original D3D12 readback metadata uses DXGI enums, whereas UE diagnostics may use EPixelFormat. Equal integers do not guarantee equal formats. Check the originating API, bytes per pixel, and producer declaration. The material here does not interpret UE format=21 directly as DXGI_FORMAT21. DXGI formats
Bloom, Film Grain, Color Transform, Tone Mapping, and Output Dither each have feature controls. Complete intermediates and net-contribution images under each side’s own inputs complement each other; this list is not a full execution order. Final evaluation must inspect the original final display buffer, direct UE post-process output, and viewport-exported PNG separately, checking the color conversion from render to screenshot before explaining highlights.
Labels ×10 / ×20 / ×100 on post-process differences specify display gains. Historical images do not all use the same gain; column headers must not be removed and their values reinterpreted.
The same pixel coordinates can hold different color domains
Linear HDR, TAA encoded textures, and display RGB8 can share dimensions while storing different values. Auto-exposure or per-image normalization can brighten shadows and make intermediates appear closer while hiding energy and encoding relationships. Figures retain original display transforms and identify difference gains in their captions.
Final-display comparison runs from the original display buffer through native UE post-processing to the viewport screenshot. Matching intermediate HDR still leaves tone mapping, color transform, grain, and output quantization to check. A close final screenshot also needs intermediate inspection to rule out cancellation between errors.
Cumulative HDR and feature net contribution are easily confused. A cumulative image contains every prior effect at that stage. A net contribution is an enabled/disabled difference under explicit control. The difference between After Fog and final display cannot all be attributed to fog, and an amplified difference column is not actual beauty output. Captions retain data type, stage, and display method to separate appearance from computational meaning.
Inputs required by temporal and display stages
A correct fixed-camera asset display needs more than meshes and textures. Temporal processing requires previous camera state, motion, current HDR, classification, CoC, and differently encoded histories. Reconstructing this frame needs those inputs alongside conventional content assets. Calling all this state “recovered assets” obscures which inputs runtime execution must generate independently.
The original TAA test’s eight textures and constant layout establish a clear boundary. Saved inputs can test program outputs under matching sampling conventions. Alternatively, UE can generate its own current inputs and history for final-image comparison. The former isolates operator errors; the latter additionally includes upstream generation and historical differences. Their conclusions must remain separate.
Motion units and coordinate space
Motion colors are often read intuitively as left/right movement, but actual values depend on coordinate range, direction, encoding, jitter, and object motion. The current camera path uses NDC differences. Its visualization retains storage units instead of labeling them screen pixels. Conversion requires the consumer’s interpretation and projection scale.
Small nonzero values under a fixed camera are not automatically erroneous noise. Matrix precision, sample offsets, and finite-precision formats can contribute; the current evidence does not attribute every residual. Expanding the diagnostic display range makes values visible without implying equally amplified object movement in the algorithm.
What history stores and how it encodes color
TAA history color uses normalized encoded storage. A display screenshot has undergone later decoding, depth of field, color transformation, and output. Feeding a final PNG into history violates that domain. Similarly, SSR prior radiance and TAA prior color have different producers and consumers even at equal screen dimensions.
Classification history preserves integer identity. Classes 0 and 1 in the complete inputs can be displayed with fixed colors, but without evidence they are not assigned a complete “weapon/background” rule. UE foreground transfer has an explicit convention of its own; that adaptation must not be projected backward onto all original class values.
Intermediate color domains and display transforms
Linear HDR uses a fixed viewing transform to show its range on ordinary screens. UNORM history displays raw storage values; DeviceZ has a separate logarithmic view. All are visible colors, but not the same luminance unit. Type and range must remain attached to comparisons; a brighter visualization does not prove higher algorithmic energy.
Final RGB8 difference is another quantity. Same-coordinate ROIs reveal local error shape; a body mask measures a specific geometry domain. An ROI containing background cannot substitute for body-mask error. Pixels in an amplified difference image cannot be used as raw residuals afterward.
Inputs and Conventions Needed for UE Implementation
Before implementation, the target screenshot’s inputs and conventions need to be explicit. Geometry conventions describe how parts and pose produce surfaces; material conventions describe channels, bases, and formats; lighting conventions describe lights, sampling, and units; temporal conventions describe inputs, histories, and frame identities; display conventions describe encoding and final output.
These records make it possible to trace a local change through affected calculations. Replacing normals requires rechecking decoding and affected lighting. Changing history selection requires saving current inputs and previous-slot eligibility. Replacing HDR storage format requires revisiting quantization and dither. After a module changes, retain affected intermediates and check them alongside the final image.
| Input to implementation | Relationships to preserve | Capabilities not extrapolated here |
|---|---|---|
| Fixed geometry and pose | Indices, parts, world positions, material varyings | Arbitrary skinned poses and complete assembly systems |
| Materials and textures | Channels, bases, formats, mips, actual consumers | General import and runtime streaming for all assets |
| Lights and visibility | Relative coordinates, units, shadow matrices, comparisons | Every light type and dynamic light-list generation |
| Reflections and fog | Their own caches, histories, and current inputs | Dynamic world GI and all eligible volumetric-light branches |
| TAA and display | Current inputs, frame slots, resets, encoding, endpoints | Arbitrary camera trajectories and comprehensive independent-history agreement |
Conditions for verifiable reconstructed assets
Validation needs the current geometry source, pose-generation method, material bindings, camera projection, and surface data read by subsequent shading. Checking these relationships separately provides a basis for controlled reconstruction. A close final screenshot still leaves other original assets’ generation and animation mechanisms to be validated individually.
Work on 3D pose and surface-field precision provides that basis here. The final build retains camera and pose records, with surface fields progressively aligned within the specified body domain. Local specular-peak differences remain in final display. The next step is to trace the calculations consuming these fields, rather than assigning every unexplained residual to material import.
Cost and limits of this analysis
Recovering programs and resources individually is expensive. It suits precise understanding of a controlled path, rather than a low-cost way to copy an entire game. Captures freeze their current state, and some conditions execute only specific branches. Dynamic scenes, quality settings, and hardware require separate observation and runtime evidence.
D3D12 bindings, Wave operations, comparison sampling, and particular formats do not transfer unconditionally to other graphics APIs. The current path’s uses are established, without back ends or performance analysis for other platforms. A migration that changes resource layout or sampling needs output verification again, rather than retaining only an algorithm’s name.
The two articles follow this division. Part 1 establishes what the original currently does and which inputs explain it. Part 2 addresses UE threads, views, resource lifetimes, post-process placement, and runtime limits. The first establishes input/calculation relationships; the second checks how they execute in UE.
Background references and project evidence
D3D12 Indirect Drawing and the indexed-draw argument structure establish API layout and consumption requirements; the concrete values here come from the capture. Moving Frostbite to Physically Based Rendering provides material and light background, while Heitz’s microfacet visibility paper helps explain BRDF visibility. Neither establishes that OB3 uses every corresponding program unchanged.
Earlier articles on hybrid character rendering and UE5 runtime weapon batching provide related examples of describing assets, data, and consumers. This study has its own capture, program, and validation versions; conclusions do not transfer between projects automatically.
Continue to Part 2: UE5.8 Implementation, Pixel Alignment, and Debugging.





























1 thought on “Reconstructing BF6 Weapon Rendering, Part 1: M4A1 Capture Analysis, Asset Reconstruction, and Shading”