Character Procedural Animation (II): Continuous Cloth and Ponytail Simulation, Collision Inputs, and Surface Reconstruction

After a character stops, the body settles into a standing pose while the garment and ponytail continue moving. Reconstructing this motion requires body animation, collision, and the accumulated simulation state to work together. The body supplies new constraint targets and colliders; the solver advances cloth and hair from their previous state. Changing the body animation therefore also requires rebuilding these inputs and the motion that follows. An old cache may still animate, yet intersect the leg in its new pose. This article follows that dependency: how the body drives simulation, and how simulated points become a visible surface.

Part I covered rotation constraints, translational springs, and pose correction for chest and hip helper bones, producing local bone transforms for each frame. This article continues from those results: compute the body pose in component space; construct the separate skinning matrices, constraint targets, and body colliders for cloth and ponytail; continuously simulate their solver points, called particles below; then reconstruct the visible surface with normals, tangents, and materials. These particles are computational points on a mesh, unrelated to smoke, sparks, or other particle effects.

The current implementation is an offline pipeline. Meshes, binding information, and constraint data come from the source resources. Some input-processing and history-reset behavior is checked by executing original program instructions under bounded inputs. Continuous simulation uses the public NvCloth CPU implementation; original vertex-shader replay checks the surface mapping; Blender reads the caches and renders the result. The following sections explain the inputs, computation, and outputs of each stage. This is a reproducible offline implementation; the complete original-game schedule and a real-time UE integration remain separate validation tasks.

Start with the full rear view. The body walks, runs, sprints, and comes to a stop, making it possible to observe the garment responding to the legs and the ponytail continuing after deceleration. The native 1920×1080 render preserves the transitions between starting, changing speed, and stopping. The ponytail uses gait-driven test wind, with additional backward and upward acceleration during sprinting. These strengths are offline presentation settings and have not been calibrated against captured in-game wind inputs.

Full rear view: offline Blender render, 1920×1080, 30 FPS, normal speed, F1–280. The sequence covers walking, regular running, sprinting, input release, and stopping. Body and garment use the baseline version; the ponytail uses forward travel, gait-driven test wind, and additional sprint acceleration. Its demonstration inputs differ from those of the B/C collision comparison later in the article.

What must be recomputed when the body pose changes

Skeletal animation first determines where the body is. Cloth simulation also needs to know how its targets move with that body, which points may deviate from those targets, where the body colliders are now, and where the particles were previously. Rendering must then map the particle mesh back to the visible mesh and update its surface directions. Updating body skinning alone does not automatically update all of these dependent data correctly.

Skinning can calculate where cloth would lie under the current skeletal pose, but one pose cannot provide the inertial swing and collision response after a stop. NvCloth discretizes the cloth into solver points and retains their position history. Each update advances motion, then corrects positions through mesh constraints and collision. Structural connections keep the sheet coherent, allowing motion or contact in one region to affect neighboring regions. The points carry the motion calculation; their mesh relationships constrain how they deform together.

Three objects recur throughout the article. An anchor is a constraint target generated from the current body pose and binding relationship. A particle is a point participating in simulation; its position depends on history and constraint results. A render vertex belongs to the visible mesh and reads particle results through a mapping. Anchors describe body-driven targets, particles describe simulated state, and render vertices describe the surface ultimately drawn. They are distinct objects.

Here, a target means the constraint target just defined, not the final vertex delivered to rendering. A moving particle may depart from its target and be limited by distance constraints, structural constraints, and collision. Separating target from result explains the lag in a garment responding to the same body motion, and helps determine whether a correction changed simulation inputs or simply overwrote its output.

Body pose, simulation inputs and rendered surface

Figure 1 | The skeletal pose drives targets and colliders separately. Particles retain history across updates; surface reconstruction reads their results. Converging connections indicate shared inputs, not a single matrix array used by every stage.

The stopping example uses the same corrected left-leg pose with two caches: retained cloth/hair data and a newly simulated result. Body motion, camera, and display time are identical, so the comparison isolates the cache change. Comparing complete before-and-after versions instead would change both the leg and secondary motion, making the cause harder to locate. Fixing the body first allows the effect of the new collision inputs to be examined.

Retained cache B at frame 196: normal materials
Recomputed cache C at frame 196: normal materials

Frame 196: B on the left retains the old cache; C on the right recomputes cloth and hair. Body pose, camera, and crop match. These are native 482×558 crops. First observe the visible-surface difference; collision metrics are discussed later.

The body cache is an upstream input, not a replacement for every downstream result. Even identical body poses can coexist with different particle positions because their preceding histories differ. Continuous simulation state must be retained alongside the input sequence; it cannot be reconstructed from the current bone matrices alone.

The explanation starts with binding and coordinate conversion to establish how targets and colliders are generated. It then covers timing, particle history, and constraint solving, before returning to render-vertex reconstruction and the stopping comparison. This order traces a visible difference to a specific stage: target generation, particle response to collision, or intersection of the reconstructed surface with the body.

Building cloth and ponytail inputs from the body skeleton

The rear and side renders at the same instant identify the objects involved: the body supplies the skeletal pose; cloth and ponytail are the subjects of subsequent simulation and surface reconstruction. Both images below are from frame 150 of the delivered full-sequence Blender render, with only the camera changed.

Rear view of the body, cloth and ponytail

Rear reference at the same frame, 1920×1080. Cloth and ponytail use the baseline caches. The image locates the visible body and attached meshes; it does not establish bone binding or solver parameters.

Side view at the same display time

Side reference at frame 150, matching the display time above with a different fixed camera. Both are offline Blender render frames, not editor bone-debug screenshots.

Component-space poses and skinning matrices

Part I produced transforms relative to each immediate parent bone. Building cloth and ponytail inputs requires forward kinematics along the hierarchy to obtain transforms relative to the skeletal component. The bone equations below retain Part I's column-vector convention: the local transform on the right acts first, followed by the parent component transform on the left. This mathematical notation does not prescribe the multiplication syntax of a particular engine transform type.

// L[i]: bone i relative to its immediate parent.
// C[i]: bone i relative to the skeletal component.
// Assign the root separately. Visit only non-root bones, parents first.
C[root] = L[root]
for bone in non_root_bones_parent_first:
    C[bone] = C[parent[bone]] * L[bone]

A component matrix describes a bone's current position and orientation. A skinning matrix must additionally remove the resource's bind pose: the bone state used when the mesh was bound to its skeleton. Omitting that inverse would apply another complete bone transform to vertices already positioned in bind space. With B denoting the bind-pose component matrix, the body skinning matrices relevant to cloth are:

// Column vectors: undo the bind pose, then apply the current pose.
SkinBody[i] = CBodyCurrent[i] * inverse(BBody[i])

For a weighted vertex, linear blend skinning sums the results of several bone transforms using their weights. The expression below shows only position; homogeneous coordinates and resource-specific integer-weight decoding are omitted. Storage and normalization must still follow the source resource. A sum close to one does not justify removing a conversion step.

// pBind: vertex position in the resource bind pose.
// weight[k]: the vertex weight for influencing bone k.
pCurrent = sum(weight[k] * transform_position(Skin[k], pBind))

Several attached meshes can share a current skeletal pose while retaining separate binding data. The current pose locates the bones now; the inverse bind matrices remove each mesh's original binding placement. Using the body's inverse bind matrices for the ponytail can introduce a global offset. Collision may alter the displaced shape, but cannot repair the original binding relationship. Check skinning inputs before tuning physics parameters.

Sharing the body pose while retaining ponytail binding data

The resource construction script explicitly associates the ponytail component with the body's master pose component. The reconstruction therefore reads component-space transforms from matching body bones and combines them with the ponytail's own bind matrices and skinning weights. Component transforms and current pose sources are shared; the ponytail retains its own mesh, bind pose, and bone mapping.

In the following expression, BHair and CBodyCurrent use the same component-space basis, units, and axis convention. The ponytail retains its own reference binding while taking its current pose from the body. Any additional relative transform between the two components must be resolved into a common space before multiplying them.

// bodyBoneOfHairBone: bone mapping checked against source names and references.
// BHair stores the ponytail bind matrices in the same component space
// used by CBodyCurrent.
for hairBone in hair_render_bones:
    sourceBone = bodyBoneOfHairBone[hairBone]
    SkinHair[hairBone] = CBodyCurrent[sourceBone] * inverse(BHair[hairBone])

The actual Blender screenshots below check this input relationship. At frame 38, the matching Bip001-Head bones of the body and ponytail are selected, with the ponytail armature active. After constraint evaluation, the two bones coincide; local transform axes remain visible. Seeing one overlapping set of axes does not mean there is only one bone.

Matching body and ponytail bones with local axes in Blender

Actual editor bone view at frame 38 with normal materials. The armatures share a component transform, and corresponding head bones are selected. Internal asset names are obscured; bone names, local transform controls, and the original image proportions are retained.

Actual Copy Transforms constraint panel in Blender

Actual constraint panel for the selected bone: target bone Bip001-Head; both Target and Owner use Pose Space; mix mode Replace; influence 1.000. Asset names are obscured rather than replaced, and these settings have not been altered.

This is the actual Blender Copy Transforms constraint used to reconstruct pose inputs, not a component panel from the original game. Pose Space on both sides reads and writes the pose in armature-object space. Because the components currently share a transform, this corresponds to their component-space bone poses. It does not make the separate meshes' bind matrices identical; subsequent skinning still uses each mesh's own data.

The pseudocode mapping must first be established from source bone names and references, not by pairing array indices directly. The ponytail has 22 render bones and 30 entries in its physics bone mapping. These describe different objects: render-skeleton members versus references required by the physics data. Different counts do not imply redundant assets. Preserve each table and verify which bone every entry references.

Current bone pose and separate reference bindings

Figure 2 | The same current body-bone pose can be combined with the body's or ponytail's own bind matrix. Colors identify matrix sources. This is a binding diagram, not an actual skeleton-debug capture.

The source asset also references a different master mesh and physics asset used during content authoring. Retain those references without replacing the current character's clothing or skeleton on that basis alone. Check which mesh is actually rendered, which component supplies the current bone pose, which physics asset provides collision shapes, and which binding data each mesh uses. Dependencies locate source data; the active configuration determines what participates in calculation.

The resources also contain hair-stabilization animation-drive switches and gravity-override branches. Their presence establishes available capabilities, not that every action enables them. Continuous-simulation conclusions here follow the current input manifest and backend configuration; unobserved runtime switches are not assumed to be enabled.

Batch target generation, continuous physics state

Constraint targets can be generated in batches because a target at a specified time depends primarily on that time's body pose and binding data, not the previous batch's particle motion. Worker processes generate the inputs and retain input/output hashes—data digests used to check consistency. Start, middle, and end calibration poses verify that identical pose and binding inputs reproduce identical targets. This calibration does not check continuous motion, which must still be simulated from the sequence start.

These batches organize computation; they are not action lifecycles. After target generation, cloth simulation still runs continuously from start to finish. Treating the first frame of each batch as a new physics start would discard the preceding velocity and constraint history at every boundary.

A useful archive separates input construction from solver state. The former stores targets, collision shapes, and reference frames; the latter stores the particles' continuous evolution. Target files can be reused for parameter experiments, but particle caches from different configurations need separate identifiers and associated parameter records. This allows anchor verification without pairing one experiment's particle results with a different body cache.

Cloth particles, inverse mass, and maximum distance

The garment uses the source LOD0 physics mesh with 2,483 solver particles. LOD means level of detail; LOD0 here is the selected highest-detail resource level, not a claim that runtime simulation uses the same budget at every camera distance. The complete runtime LOD-switching policy has not been reconstructed.

Particles store positions and constraint-related data. Their discrete simulation mesh need not correspond one-to-one with visible vertices. The physics mesh calculates motion; the render mesh supplies surface detail and may be denser, using a mapping to combine several particles. This separates simulation data from surface detail. Actual point counts remain those of the source resource.

Displaying particles in a debug image identifies the positions being simulated. Displaying the final garment shows the surface reconstructed from those results. Collision analysis must first identify its measurement object: particle-to-collider distance and visible-triangle intersection are different measurements. Overlaying both helps locate discrepancies; this debug display is not a required final visual effect.

The selected ponytail LOD0 has 17,309 points and 17,103 triangles. Physics and render indices have matching order in this resource, with a maximum source-position difference of about 7.62×10⁻⁶ cm. That supports this mapping, not skipping index validation for other hair assets. Even equal point counts do not protect against reordered indices writing the wrong particle motion into a render vertex.

Two particle inputs must remain distinct: inverse mass and maximum distance. Inverse mass, 1/m, determines how constraint corrections are distributed among movable points; zero-inverse-mass points are not updated as freely moving particles. MaxDistance limits a particle's displacement from its skinned target. Mass response and permitted range are separate conditions. Their zero-valued regions coincide in this resource, but both fields must be retained rather than universally substituting one for the other.

Ponytail MaxDistance ranges from 0–100 cm. Its 747 zero values coincide with zero-inverse-mass points. Zero MaxDistance collapses the allowed region to the target position; zero inverse mass makes the point fixed. These regions anchor movable regions to the body. Other points still participate in dynamics and influence one another through mesh connections; local fixation does not eliminate motion in the entire ponytail.

Both actual editor screenshots below use frame 38 and the same viewport. The normal-material view locates the ponytail before the MaxDistance attribute is inspected on that mesh. This prevents reading an unlocated color map as a motion result.

Same-frame material view in the Blender editor

Normal-material reference, cropped from the actual Blender viewport. This scene inspects pose and constraint inputs; it is not a second motion-validation run of the continuous NvCloth output.

Actual MaxDistance attribute visualization

The source_cloth_max_distance_cm attribute at the same frame and view: blue is 0 cm, orange-red is 100 cm, with intermediate colors indicating allowed distances. The ponytail uses a diagnostic attribute material; the body retains its normal material. This is not a missing-material or unfinished-compilation view.

The attribute comes from source distance-weight data: 17,309 values, including 747 zeros. Its colors describe permitted motion, not measured displacement. Orange-red does not mean a point has moved 100 cm, and blue does not mean collision pushed it to zero displacement. Inverse mass and penetration depth are separate data that cannot be read from this color map.

An ideal spherical constraint illustrates MaxDistance. Let a be the target, r the allowed radius, and p the predicted position. A point outside the sphere is projected back to its boundary along the target-to-point direction. This explains geometry, not the SDK's full weighting, stiffness, or iteration implementation.

// Teaching model: restrict a position to the sphere centered at a, radius r.
delta = p - a
if length(delta) > r:
    p = a + normalize(delta) * r

For a target at the origin, a 2 cm limit, and a predicted point at (3,0,0) cm, this step alone produces (2,0,0) cm. Later constraints and collision can move it again. A final distance greater than 2 cm does not establish that the distance constraint was skipped; inspect states before and after that stage.

Three other source weight arrays are empty and remain empty in the reconstruction. The LOD map [0,-1,-1] contains valid simulation mapping 0 and two invalid entries, not three enabled simulation LODs. Resource parsing must preserve the meanings of empty arrays and invalid indices, or an unconfigured path may be incorrectly executed as a valid configuration.

The next images locate actual solver points on the character. Orange points are movable particles selected for this collision audit, not every render vertex or a MaxDistance visualization. Distance fields and fixed regions still require resource inspection or a dedicated weight view.

Retained cache B at frame 196: solver particles and colliders
Recomputed cache C at frame 196: solver particles and colliders

Orange points are movable solver points selected within 2.5 cm of the collision envelope, not all garment vertices. Each white circle marks that version's deepest point: about 2.62 cm on the left and 1.09 cm on the right. The maxima are selected independently and need not belong to the same particle.

Both overlays use the same corrected colliders. The left measures old cached points against these new colliders; the old cache was not originally simulated with them. The right shows recomputed points. The stopping example returns to the circle markers and depth comparison.

Reference coordinates and body colliders

Establish the space of each particle position

Body-bone calculations use component space, whereas the solver updates particles in a selected rigid reference frame. Its translation and rotation organize overall character motion and relative deformation. Transforming particles but leaving colliders in the old space can produce individually plausible numbers with completely incorrect geometric relationships.

This section retains the source bridge's row-vector convention, separately from the column-vector skinning notation above. R is the reference-frame rotation and t its translation in component space; position q is a row vector. A rigid rotation's inverse equals its transpose, giving the forward and return conversions:

// qC: component-space position; qS: solver-reference-space position.
// R and t must come from the same input time.
qS = (qC - t) * R
qC = qS * transpose(R) + t

Similar symbols do not make these expressions interchangeable with column-vector code. Fix a test position, convert it into solver space and back, and check restoration. Then test an offset along a known axis to verify rotation direction. Testing only the origin can reveal translation errors while missing axis-rotation errors.

Reference-frame conversion for targets and collision geometry

Figure 3 | Particles, targets, and collision shapes use one reference frame. Example coordinates explain spatial relationships. Arrows change coordinate representation, not the physical position through an additional solver displacement.

The frame-196 overlay shows the actual coordinate relationship. Component axes, solver-reference axes, and left-leg collision inputs are projected onto the original side render, connecting the equations to their positions on the character.

Actual component and solver reference axes

Projected data overlay at frame 196, not a Blender editor screenshot. Solid lines are component XYZ; dashed lines are solver-reference XYZ. Red, green, and blue denote X, Y, and Z. Cyan and violet wireframes are the actual left-leg collision inputs. Origins coincide at this frame, but axis directions differ.

Component axes are drawn 32 cm long and solver-reference axes 20 cm long for visibility. These are debug-line lengths, not different unit scales or a solver-space scale applied to the character. Coincident origins indicate matching translation at this frame only; rotation must still be converted, and this relationship must not be assumed for every action time.

The current reference transform is rigid and contains no nonuniform scaling. Sphere centers therefore use the same position conversion while radii remain unchanged. Supporting scale later would require reconsidering that condition; the current bridge does not automatically generalize to arbitrarily scaled spheres or capsules.

Updating spheres, capsules, planes, and convex shapes

Body collision inputs are generated from the current pose and the selected source physics asset. Spheres store centers and radii; capsules pair sphere indices to form segment-and-radius shapes. Preserve the relationship between the sphere array and capsule indices. Changing array order while updating positions can connect a capsule to the wrong body region.

A plane cannot be updated by moving a single center point. Let the component-space plane satisfy n·x+d=0, with normal n and plane constant d. Both nC and nS below are row vectors, matching this section's position convention. Substituting the reference transform gives:

// nC: component-space plane normal; dC: plane constant.
// Rotate the normal; translation enters through the plane constant.
nS = nC * R
dS = dC + dot(nC, t)

For the component-space plane x=5 cm, choose normal (1,0,0) and constant -5 cm. Translating the reference origin to x=2 cm without rotation gives constant -3 cm: the plane lies at x=3 cm in solver space. This directly checks the translation sign without guessing from the final cloth render.

Convex shapes combine multiple planes and indices. Conversion must preserve which planes form each shape, not merely produce isolated plane equations. Store converted inputs, shape-index relationships, and source-resource records together so replay reconstructs the same shapes.

The following overlays locate the actual left-leg colliders. Both wireframe sections come from real collision inputs projected into the same side camera as the normal-material images.

Retained cache B at frame 196: corrected left-leg colliders
Recomputed cache C at frame 196: corrected left-leg colliders

Cyan and violet show the two tapered left-leg capsules. These are overlays of actual collision inputs, not the visible leg's triangle surface. B/C share the capsules, allowing particle depths to be compared under identical measurement conditions.

Spheres and capsules approximate collision volume rather than copy the render mesh triangle by triangle. They may extend beyond the visible body in one region and leave gaps elsewhere. Particles remaining outside the capsules do not establish that the rendered cloth avoids the rendered leg; visible intersection likewise does not establish that capsule collision never ran. This distinction matters in the stopping comparison.

Select reference frame, targets, and colliders from the same input

Each update selects one input index, then uses it for reference frame, targets, and collision shapes. Taking the current reference frame but previous anchors mixes relative deformation with overall motion. The error may appear as abrupt swinging or a persistent offset.

Mixing adjacent input times may not immediately create visible intersections in quiet motion. Alongside extreme poses, record steady frames through bone-based target generation, reference conversion, and reconstruction. Round-trip checks verify space; index checks verify time. Both must pass before subsequent differences can be assigned to collision or solver configuration.

Video frame rate, pose inputs, and solver frequency

Animation sampling, physics updates, and video encoding use different meanings of frames and Hz. Video rate is the number of displayed images per second; body-pose input rate counts the animation poses supplied to helper-bone solving; cloth/hair submission rate counts calls supplying targets and colliders. NvCloth's solver frequency parameter arranges internal solving. Identical video rates can hide different input and solver settings, so a comparison must state which rate changes.

Time or frequency Meaning in these materials What it does not establish
Video at 30 FPS Encoded output displays 30 frames per second The solver updates only 30 times per second
Body inputs at 30 / 60 Hz Two body-dynamics input schemes from Part I Cloth uses the same submission rate
Cloth/hair submissions at about 30 Hz Selected inputs submitted at display times Exactly one internal solver iteration per submission
NvCloth solver frequency Internal frequency setting of the current backend The original game uses the same configuration and step count

Part I called a shorter computational step inside an external update a Substep. The distinction applies here, but helper-bone springs and NvCloth are different implementations. Strict comparisons, accumulated remainder, and fixed-step rules in the spring code cannot determine NvCloth's internal step count. Update arrangements follow each implementation's settings and call records, not an assumption that equal frequency values imply equal algorithms.

The source ponytail stores a solver frequency of 60 Hz. The garment sensitivity test starts from a tested 30 Hz solver setting. These apply to different assets and experiments and are not contradictory. Missing resource fields cannot be filled using defaults from another engine version; defaults belong to a specific implementation and version.

The garment submits approximately 0.0333330 s per update using a calibrated upper limit; the ponytail submits about 0.033333335 s. Both approximate one thirtieth of a second, but their separate values are retained in the explanation and replay. Floating-point representation, limits, and comparison operators affect boundaries. A shared 30 FPS encoding does not justify merging the two time inputs.

Input selection and persistent solver state

Figure 4 | Each column lists selected input indices, starting at 0. At tick=3, cloth reads input 3 and ponytail reads input 2. Input selection is separate from persistent particle state: reading a target does not reinitialize simulation. This is the local replay rule, not measured total game-display latency.

Input lag and shader history are different uses of time

Replay selects i=max(tick-lag,0), where tick is the update index starting at 0 and lag is an index offset. Cloth uses lag=0; ponytail uses lag=1. The same i selects reference frame, anchors, and colliders. Missing earlier inputs at the beginning clamp to zero rather than accessing a nonexistent negative frame.

Ponytail surface shading additionally reads current and historical particles and skinning matrices. This history belongs to surface reconstruction. It cannot simply be added to the input offset to claim two frames of game-input latency. Measuring visible response requires aligned input events, submission times, solver output, and display times; these materials do not provide that complete in-game measurement.

Half-speed video is also a presentation choice. The rear stopping clip repeats each of 101 source times twice, encoding 202 frames. It neither simulates new intermediate physics frames nor reruns the solver at half speed. Slow playback exposes the existing adjacent states, not higher temporal-resolution motion.

Define intermediate poses before increasing submission rate

Increasing submission rate first requires defining poses at the new input times. Holding the latest sample and interpolating adjacent poses generate different targets and colliders, so simulation experiences different driving histories. Even when the final video samples identical display times or the body matches at those endpoints, particle differences created between them can persist.

These are separate sensitivity experiments; the current presentation has not switched to high-frequency submission. Fix body-pose scheme, submission rate, and intermediate sampling method before comparing particles. A video labeled only 60 Hz does not identify the modified stage or establish superiority.

Ponytail wind: per-particle calculation and offline settings

Ponytail motion combines overall travel, wind response, and existing state. Travel drives the reference frame; particle velocity and surface normals determine wind acceleration; prior updates continue influencing the stop. This section separates a per-particle formula checked against original instructions from the test wind and sprint enhancement used in the video. A verified formula does not mean its wind input has been recovered: these clips use offline tuning, while in-game wind vectors still require frame-by-frame capture.

Relative wind and particle normals determine acceleration

The newly unpacked ponytail asset matches the hash of the asset used in replay, checking that the same source data is used. Its configuration selects per-particle wind and sets SDK built-in drag and lift to 0 in that branch. Wind enters the solver as computed particle accelerations. Enabling another set of built-in drag and lift would change the active terms. These findings apply to the checked resource, not every cloth or hair asset.

Wind calculation needs particle velocity and surface orientation. The offline implementation derives velocity by differencing NvCloth current and previous positions. Normals come from the current physical triangles, accumulating unnormalized cross products before normalization. Velocity reads adjacent states; normals read current geometry, and both are updated for each calculation. Wind, velocity, and normals must share one reference frame before subtraction or dot products have the intended spatial meaning.

Let u be wind velocity relative to the particle and n the unit particle normal. The original path computes 2500 × wind − particleVelocity, then scales it according to the directions of n and u to produce this wind-acceleration term. adaptation controls the normal-direction weighting. The factor 2500 is a scale used by that path; the available evidence does not establish the original wind field's physical units from that constant alone. Reading and replay retain its numerical convention.

// Flow pseudocode for the checked per-particle branch, not complete SDK source.
// wind, particleVelocity, and normal use the same reference frame.
// normal is normalized; adaptation adjusts normal-direction weighting.
// Floating-point details follow the original instructions and matching replay.
if MaxDistance[i] == 0:
    windAcceleration[i] = 0
else:
    u = 2500 * wind - particleVelocity[i]
    direction = normalized_direction_when_nonzero(u)
    alignment = abs(dot(normal[i], direction))
    response = min(1, adaptation * alignment)
    windAcceleration[i] = response * u
// normalized_direction_when_nonzero denotes the direction of a nonzero vector.
// A zero u produces zero output; this does not replace near-zero implementation details.

First consider subtraction: a particle moving with the wind changes relative wind speed, so the same wind input produces different results for different motion states. Then consider the normal weight. Perpendicular normal and relative-wind directions give a zero dot product and zero response. Parallel or antiparallel directions both give absolute dot product 1. Reversing the normal alone therefore leaves this weight unchanged. The final weight is capped at 1 and acceleration follows u.

For a simple example, an absolute dot product of 0.5 and wind-response parameter 1.6 produce weight 0.8. An absolute dot product of 1 gives product 1.6, capped to weight 1. These values illustrate the diagram, not a measured in-game particle. Points with zero MaxDistance receive zero wind acceleration and remain governed by their existing fixed-point and target-update rules.

Relative wind velocity, normal angle and per-particle response

Figure 5 | Per-particle wind geometry. Left: relative velocity as a vector difference. Center: the angle between a unit normal and relative wind changes the response. Right: formula evidence is separated from offline tuning. Vector directions and lengths are teaching examples, not an in-game wind sample.

The formula check uses 250 particle-input cases. The maximum absolute acceleration difference between offline calculation and original-instruction output is approximately 0.000046 cm/s². This checks calculation under those supplied inputs. It does not cover scene wind queries, the final component wind vector, or scheduling of the branch within a full game update. Further in-game comparison needs synchronized wind inputs, particle state, and display times to distinguish input differences from later computation.

Tuning test crosswind separately from sprint enhancement

The video uses reproducible test wind to compare settings on the same action sequence. Its lateral component follows the feet's fore-aft positional difference; strength varies with movement speed; adaptation is 1.6. Foot motion is a test signal making crosswind vary with gait. No current evidence establishes the same wind-generation method in the original game. Body and garment stay on the baseline version while the ponytail is continuously simulated from sequence start with these inputs.

The sprint demonstration adds backward and upward acceleration to adjust extension and lift. This term fades in during the sprint transition and fades out before input release. Stopping continues with the same particle history, without resetting to a prescribed exit pose. Additional acceleration affects both the current strands and subsequent state. Sprint and stop therefore need to be reviewed together; the frame with maximum lift cannot establish a suitable exit response.

Setting Value or driver Scope and meaning
World-space forward trajectory From the same body-motion source Drives the ponytail reference frame
Test crosswind Foot fore-aft difference; strength varies with speed Reproducible offline input, not an in-game wind query
Wind-response parameter adaptation 1.6 Adjusts normal-direction weighting
Additional backward sprint acceleration Maximum 181.5 cm/s² Applied along the demonstration's defined backward direction
Additional upward sprint acceleration Maximum 330 cm/s² Offline sprint-tuning term
Sprint crosswind boost Up to 38% Does not replace the relative-wind formula
Enhancement exit Fades before input release Particle history continues into the stop

The three-column view places walking, regular running, and sprinting under the same rear camera to show strand distribution, extension, and tip motion. Columns use different action intervals at their own playback rhythms; the sprint column also includes extra acceleration. This arrangement compares appearance, but both action and driving input differ. Their visible differences cannot isolate wind strength. That requires a parameter toggle or value comparison over the same input segment.

Walk, regular run, and sprint at normal speed. Left: F1–36; middle: F76–111; right: F138–173, all from the updated ponytail result. The columns are not synchronized source times; the right includes offline sprint enhancement.

View the three-column half-speed version

The same three columns slowed by repeating source frames, exposing deformation without increasing solver frequency.

How sprint enhancement changes tip trajectories and stopping

The comparison is between the preceding gait-wind version and the sprint-enhanced version. Their ponytail particles match element by element over F1–120; changes mainly occur in the later sprint transition and stop. Under the same rear camera, the median tip-region height relative to the head during F134–179 increases by approximately 16.1 cm. Projected lateral peak-to-peak range rises from about 81 to 110 pixels; lateral tip motion relative to the middle of the strand rises from about 13.6 to 14.4 cm. Peak-to-peak means the maximum minus minimum within the window. Height, spatial displacement, and image projection are separate measurements; camera-dependent pixels cannot be directly converted to centimeters.

During stopping, the fraction of sampled tip-region particles ahead of the head rises from about 28% to 34%. This concerns a selected tip region, not the direction of the entire ponytail. Together with sprint data, it shows changed tip trajectories and a changed exit response. These are offline-tuning effects, recorded separately from the later left-leg B/C collision experiment. Frame-by-frame matching under the original game's wind input has not yet been completed.

Preserving motion history through continuous simulation

Initializing the solver and retaining state across frames

Cloth and ponytail retain separate solver states throughout the action. The first display time uses dt=0 to establish the reference frame and handle initialization-related interpolation state. It is not a normal simulation step advancing time. Later updates continue from the existing particle state.

// Flow pseudocode for the offline bridge, not the SDK's internal solver.
// lag: the input-index offset; dt: the interval submitted on this update.
// Each uses the checked cloth or ponytail settings. Create the solver once.
solver = create_solver(resource, configuration)
for tick in display_ticks:
    inputIndex = max(tick - lag, 0)
    frame = referenceFrame[inputIndex]
    solver.set_reference_frame(frame, initialize=(tick == 0))

    targets = to_solver_space(anchors[inputIndex], frame)
    shapes = to_solver_space(colliders[inputIndex], frame)
    stepDt = 0 if tick == 0 else dt
    solver.step(targets, maxDistance, stepDt, shapes)

    particles[tick] = to_component_space(solver.current_particles, frame)

create_solver is outside the loop, keeping one solver alive across the action. Recreating it every frame would discard position history even with correct targets and colliders. The output could still resemble cloth, but its inertial continuation after stopping would change. Continuous-motion validation must check both positions and that the state object is neither repeatedly initialized nor disconnected from the preceding update.

The caller first sets motion-constraint targets, then updates spheres, capsules, planes, and convex shapes before invoking simulation start, chunk calculation, and end. Particle positions are read only after simulation completes. This prepares targets and shapes before calculation and avoids replacing partial inputs mid-step. Surface reconstruction reads the completed result rather than an array still being updated.

The backend controls the actual parallel partitioning. beginSimulation → simulateChunk → endSimulation describes the local CPU reference backend's call relationship, not recovery of the original game's thread pool, task graph, or every platform backend. Similar library interfaces do not establish equivalent binary versions or runtime behavior.

How distance constraints and collision successively move particles

In one internal iteration, the current SDK processes integration, wind, motion/MaxDistance constraints, tether constraints, fabric structural constraints, separation constraints, character collision, self-collision, and sleep checks. Integration advances state over the interval; later constraints correct positions. This order comes from the public CPU implementation used locally. The original game binary's complete schedule has not been verified.

These stages address different conditions. Motion constraints limit a particle around its per-frame target. Tethers limit excessive stretching away from fixed regions. Fabric constraints preserve relationships in the physics mesh. Separation defines excluded regions; character collision handles contact with body shapes; self-collision handles cloth approaching itself. Each stage uses its own inputs and settings, starting from positions left by the preceding stage, so order affects the result.

Constraint order and particle updates

Figure 6 | A two-dimensional example: the predicted point at (3,0) is projected to (2,0) by the distance constraint, entering the collision section. Collision then pushes it to (2.5,0), changing the previously satisfied distance condition. Green denotes the allowed region around the skinned target; orange denotes the excluded body section. Each panel reports distance and collision validity separately. This is not a measured trajectory or the complete SDK projection algorithm.

A particle may first be pulled into the MaxDistance sphere, then pushed out of a body capsule. Its final distance from the target can exceed the intermediate distance. Adding another projection into the target sphere at the end could put it back inside the body. Alternating projections indefinitely would also change the original iteration strategy.

To diagnose excessive displacement, record positions before the distance constraint, after it, and after subsequent collision. Check that MaxDistance was supplied correctly, determine its actual correction, then identify which later stage moved the particle again. Final position alone cannot distinguish bad input, a skipped constraint, and later corrections. Stage-specific records preserve the cause and indicate whether an algorithm change is needed.

The current caller does not configure virtual particles: additional collision-sampling points that supplement mesh vertices and may affect local contact. Available call-site analysis does not establish whether the original build enabled them. This finding is limited to the local implementation and must remain a qualification when comparing collision appearance.

Fixed-point updates and particle position history

Targets drive fixed-point positions, but the solver may also retain position history for velocity, interpolation, or constraints. Updating current fixed positions while omitting corresponding history can create unintended differences between states. Overwriting every particle's history with targets would instead remove motion that movable points should retain. Fixed-point updates and full particle resets must be handled separately; fixation alone does not justify clearing every buffer.

The implementation adds no rule overwriting fixed-particle history every frame. History clearing follows the verified reset path. Binding errors, discontinuities, and collision errors need different remedies: repair incorrect target generation, define explicit reset behavior for legitimate teleports, and preserve state through ordinary continuous motion.

This also matters when rendering a segment. Blender may output only selected frames, but their physics cache must include preceding simulation. To render from frame 190 onward, simulate from the beginning through frame 190 first, then start image output. Skipping earlier displayed images must not also skip earlier physics history.

Teleport, reset, and ordinary-update behavior

Original-instruction execution records check a section of cloth mode handling. The entry distinguishes normal, teleport, and teleport-with-reset: value zero restores normal mode, one requests teleport, and two requests teleport with reset. Returning to normal is distinct from resetting particles, despite the related naming.

The checked mode-two path assigns the selected target to both current and historical particle XYZ, preserves current W and copies it to historical W, then clears particle accelerations. W stores inverse mass here. Reset therefore maintains consistency between positions, history, and mass attributes rather than merely copying coordinates.

// Summary of the checked mode-two particle-reset slice only.
// target: selected reset target; W retains current inverse mass.
if mode == TeleportAndReset:
    for i in all_particles:
        current[i].xyz = target[i]
        previous[i].xyz = target[i]
        previous[i].w = current[i].w
    clear_particle_accelerations()

The loop includes fixed and movable particles. Normal mode does not perform that reset within the checked slice. Mode one cannot be described as handling no state at all from this record alone: reference-frame or interpolation state may be updated elsewhere. Conclusions stop at the executed section; other paths need separate inspection.

Continuous updates and explicit history reset

Figure 7 | Ordinary updates retain different current and historical positions. The verified mode-two path resets both and clears acceleration. The diagram does not rule out other upstream policies during normal operation.

Another mode-selection record switches from normal to teleport when a floating-point time difference is strictly greater than a time limit multiplied by a factor. Equality does not trigger the branch. Testing the neighboring floating-point values below, equal to, and above the threshold establishes this boundary more clearly than one large time difference.

These records cover mode selection and a local reset path, not the full game cloth update. Registered control variables have defaults, but runtime settings may differ and need to be observed. The time difference selecting teleport mode is also distinct from the ordinary submission interval of roughly one thirtieth of a second; a trigger condition is not normal simulation time.

A forced reset is generally unsuitable for isolating the ordinary stopping correction. Clearing history at a chosen frame in both versions would combine changed collision inputs with interrupted continuous state. Retaining full-sequence simulation lets recomputation answer how new collision inputs affect existing motion.

Reconstructing visible cloth from physics particles

Computing particle normals from physical triangles

The physics mesh supplies points and triangles. Dynamic render mapping uses normal offsets as well as positions, so particle normals must first be constructed. The implementation calculates an unnormalized cross product for each physical triangle, adds it to all three vertices, and normalizes the accumulated result at each vertex.

// pa, pb, pc are triangle positions in the same coordinate space.
// Unnormalized cross-product magnitude is twice the triangle area.
normalSum[:] = 0
for (a, b, c) in physics_triangles:
    faceNormal = cross(p[b] - p[a], p[c] - p[a])
    normalSum[a] += faceNormal
    normalSum[b] += faceNormal
    normalSum[c] += faceNormal
particleNormal = normalize_valid_sums(normalSum)

Triangle vertex order determines cross-product direction. Reversing winding during decoding or coordinate conversion while retaining an old normal can reverse the subsequent offset. Degenerate triangles and near-zero accumulated normals require the implementation's validity handling. A conceptual helper is shown instead of inventing a default direction that could change results.

Normalizing each face before summation gives small and large triangles equal contributions, unlike area weighting. That may be hard to see at a distance but changes offsets and lighting. The normal-generation order is itself an implementation detail to preserve in reconstruction.

Barycentric weights and normal offsets determine render positions

A dynamic render vertex stores physics-particle indices j0, j1, j2, two barycentric weights, and normal offset d. Barycentric weights interpolate a position on the physical triangle. The third weight is computed from the first two rather than read from another field. The current path retains this float32 operation order:

// float32 denotes single precision. Preserve the recovered subtraction order.
w2 = float32(float32(1 - w0) - w1)

// p and n: particle positions and unit normals at the same time and space.
pRender = 0
for k in [0, 1, 2]:
    pRender += w[k] * (p[j[k]] + d * n[j[k]])

Physical triangle, barycentric interpolation and normal offset

Figure 8 | Physical triangle to render vertex. Teaching weights 0.2, 0.3, 0.5 first produce (3,5,0) cm in the plane. All normals in this example point +Z; adding a 0.4 cm offset gives (3,5,0.4) cm. The lower-right section magnifies height, while the three-dimensional normals remain perpendicular to the triangle.

For the teaching points (0,0,0), (10,0,0), and (0,10,0) cm, use weights 0.2, 0.3, 0.5, normals along +Z, and offset 0.4 cm. The interpolated position is (3,5,0) cm; after the offset it is (3,5,0.4) cm. That 0.4 cm belongs to surface mapping, not particle penetration or solver error.

On a deformed mesh the three normals may differ, and their weighted offset changes with the triangle. Render vertices must therefore be checked independently even if every physical point lies outside a collider. They are not copies of physics points. Declaring that cloth cannot intersect the leg because particles remain outside a capsule skips precisely this mapping stage.

Barycentric precision has a specific role. Different parentheses for 1-w0-w1 are equivalent in real arithmetic but not guaranteed bitwise equivalent in floating point. Retaining the checked order avoids introducing an additional difference in comparison. It does not establish that one floating-point detail reconstructs the entire visual result.

The static branch retains original skeletal skinning

A fourth mapping index of 65535 selects the static branch and returns to original skeletal skinning. Static here means not updated by the current dynamic-particle mapping, not stationary in world space. Body-bone motion still affects these vertices through skinning.

Some shoulder-strap vertices use this branch. Their pose problems cannot be fixed solely through garment-particle tuning. Check bone weights, body pose, equipment relationships, and the static branch before assigning the issue to dynamic cloth. Treating every clothing surface as simulated fabric sends diagnosis toward the wrong stage.

View the earlier shoulder-strap reference

Shoulder strap detail

Earlier shoulder-strap material, retained to locate the region. It is less clear than the new images. Branch assignment comes from mapping fields and replay, not per-vertex evidence in this image.

Vertex IDs are essential here. Export, mesh reordering, or cache tools that change vertex order must update every associated mapping. Equal vertex counts do not establish matching identities. Positions, normals, static masks, tangent handedness, and other attributes must follow the same index correspondence.

Checking normals and tangents with the original vertex shader

Matching positions still leaves lighting normals and tangents to verify. Normals define surface orientation. Normal mapping additionally uses tangent, normal, and a handedness sign to construct its basis; that sign determines the bitangent direction. Failing to account for it after a coordinate reflection can reverse apparent bumps in parts of the same normal map. Position and direction checks are separate tasks.

The replay tool first executes the original vertex-shader bytecode with captured inputs and checks output hashes. It supplies buffers, runs the shader, and reads results. Once known-input replay passes, recomputed particles, particle normals, and skinning matrices are substituted frame by frame. When a difference appears, this separates replay-environment problems from new-input problems.

For cloth, the CPU reconstructs mapped positions while shader replay supplies tangents and normals and checks the relevant branches. Ponytail replay receives current and historical particles and skinning matrices, cross-checked each frame against CPU position mapping. The paths share concepts, but do not reduce to every vertex using one CPU algorithm.

Static-vertex directions still use original weights and bone transforms. Integer-weight normalization, vertex indices, and static masks remain part of verification. New normals for dynamic points must not overwrite the entire garment, fixed shoulder regions, and every hair card with simulated directions.

After positions match, abnormal shading calls for checking normal/tangent caches, coordinate reflection, handedness, and materials. This avoids using cloth stiffness to address a lighting problem. Smooth shading likewise cannot validate position mapping. Check geometry and directions independently, then inspect their combined result with normal materials.

Successful original-shader replay establishes that particular inputs, branches, and outputs can be executed again, not that the complete original renderer is integrated. Scene lighting, material composition, post-processing, and display remain other stages. Normal presentation materials expose shape without implying that Blender reproduces the original game's final rendering.

Writing caches and reading them correctly in Blender

Separate vertex positions, normals, and tangents

After particles are mapped to the render mesh, positions are written to MDD and directions to an independent NPZ archive. NPZ contains named NumPy arrays, storing surface directions and related attributes here; it does not simulate physics. MDD stores per-frame vertex positions. This writer uses big-endian frame/vertex counts, frame times, and coordinates. Big-endian means higher-order bytes are stored first and must be read using that convention.

Header counts must agree with the data length. Opening a file does not establish that every frame is complete. Check the start, middle, and end, total vertices, and index order. A partially written final frame can escape a short preview and fail only during complete rendering.

Source positions are recorded in centimeters and displayed in Blender in meters, with an axis conversion. Current-position components are multiplied by [0.01,-0.01,0.01]. Source (100,20,30) cm becomes (1,-0.2,0.3) m. The negative sign is an axis reflection; the magnitude is a unit conversion. They serve different purposes despite being combined in one component-wise multiplication.

// Current-position cache: unit and axis conversion only.
pBlender = (0.01 * pSource.x,
           -0.01 * pSource.y,
            0.01 * pSource.z)

Directions must not copy the position unit multiplier. Unit normals and tangents do not carry centimeter lengths. Conversion must retain direction and normalization conventions, while reflection also affects winding and handedness. The direction NPZ separately stores tangents, normals, handedness, and static-branch data so the reader can handle each correctly.

Match caches to the current body and control settings

Before reading a cache, confirm that the scene still uses the body pose and controls used to generate it. The current Blender reader enables this surface cache only for its matching full-body pose scheme, integer display frames, valid control weights, and enabled body helper-bone springs. Otherwise it returns to the original skinning/material path. This prevents displaying precomputed results incompatible with the current body state.

Cache identity and read conditions

Figure 9 | Check the sequence and controls before reading. Positions, directions, and static branches must correspond to the same mesh. If conditions fail, use the defined fallback rather than applying an old surface to an arbitrary new pose.

Disabling helper-bone springs in Blender changes the body conditions under which the cache was generated. Reading the old garment would combine a new body with old physics and could falsely suggest that body springs have no effect on cloth. A valid comparison needs a matching cache for each input, or an explicit skinning fallback. Manually editing bones also requires rechecking cache applicability.

The integer-frame restriction matters. Validation covers specified integer display times, not arbitrary fractional timeline positions with equivalent physical interpolation. Supporting fractional times requires separately defined interpolation for positions, directions, and history, checked against the simulation timeline.

Cache-readback error is distinct from simulation differences

In the high-frequency body-pose scene corresponding to the baseline cache, frame-by-frame readback gave maximum position error 0 m for cloth and about 5.96×10⁻⁸ m for the ponytail, with zero direction-readback error. Static vertices were retained and fallback under invalid controls passed.

These compare expected cached positions with positions read in Blender, checking writing, unit conversion, and reading. They do not compare public-CPU simulation with the original game or measure garment fit against the body. A cache can faithfully preserve a flawed simulation. Collision and final surfaces still need inspection after data reading passes.

Data checks must be paired with visual checks. Matching arrays eliminate one class of reading error; missing materials, reversed normals, cropped framing, or hair hiding the relevant region can still make an image uninformative. Normal materials and visible lighting make geometry and motion problems observable rather than replacing visual evidence with statistics.

Stopping correction: retained and recomputed caches on one body pose

Fix the body pose to isolate cache changes

The stopping case retains three versions. A is the baseline before left-leg correction. B applies that correction but retains old cloth/hair caches. C uses B's body pose and recomputes secondary motion. The three-column still locates the overall changes; recomputation itself is analyzed by comparing B with C.

Version Body pose Cloth/hair cache Question addressed
A: original baseline No left-leg correction Original Initial appearance
B: corrected body, retained cache Left-leg correction applied Original Consequences of changing the body without recomputation
C: corrected body, recomputed cache Identical to B Continuously solved over the full sequence How new collision inputs change secondary motion

Retained and recomputed caches on the same body pose

HD comparison at frame 194. Left B corrects the body and retains the old cache; right C recomputes cloth/hair on that same body. Cameras and display time match. Baseline A from the table is not shown in this two-column image.

View the earlier three-column record including baseline A

Historical three-version keyframes

The earlier record documents A/B/C relationships. Compare B/C to isolate recomputation; total A/C changes cannot be attributed solely to cloth/hair simulation.

The corresponding B/C inputs have element-identical constraint targets but changed left-leg capsule endpoints and related collision inputs. The difference cannot therefore be assigned to target displacement. Even with matching targets, collider changes alter contact corrections, which influence later states and progressively separate particle trajectories. Distinguishing targets from collision inputs identifies what recomputation actually changes.

The video compares caches under identical body pose, camera, and display time. The extended two-column clip covers 101 source times from stopping through the end, including the ponytail difference peak at frame 234. Half speed repeats those times to reveal continuing deformation without new intermediate simulation states.

Retained versus recomputed caches on the same corrected body, 1920×1080, half speed. Recomputation runs from the full-sequence start. The video displays only the stopping interval; its first image is not solver initialization.

View normal speed and separate clean columns

Normal-speed two-column view for presentation timing.

B: corrected body with retained cache, separate unannotated render.

C: the same corrected body with recomputed cache, separate unannotated render. It is the comparison partner above, not a different body action.

Earlier collision affects motion even after body poses match

Recomputation runs from the first input through the sequence end. Even when the body returns to the same pose at frame 214, particles can retain differences from earlier contacts. Current shape depends on preceding constraint corrections, velocity changes, and collision response as well as the current body.

Preceding simulation should not be shortened by visual guesswork. Initializing only at the first visibly different image changes the starting particle distribution and creates another experiment. Preserve the full input history while allowing rendering to select only the interval of interest.

The largest corresponding-particle position difference is approximately 14.97 cm for cloth at frame 194 and 4.68 cm for ponytail at frame 234. These compare matching particles in two caches, not a single particle's offset from its target or garment penetration into the leg.

The extended two-column video reaches frame 280 and includes the ponytail's sequence-wide difference peak at frame 234. Matching screenshots locate the visible result below. The 4.68 cm still comes from complete particle records, not image pixels: projection, occlusion, and particle-to-surface mapping also affect the image.

Same-condition comparison at frame 234

Frame 234: retained cache left, recomputed cache right. The sequence-wide corresponding-particle difference peaks here. The image locates shape changes without replacing particle measurements.

View separate original images at this frame

Retained-cache image at frame 234

B: the same body pose with retained cloth/hair cache.

Recomputed-cache image at frame 234

C: the same body pose with recomputed cloth/hair cache. Both originals are 1920×1080 RGB.

Intersection-pair counts and penetration depth measure different objects

The following times show changes in triangle-intersection pairs between the visible garment and left-leg meshes. One triangle may intersect several others, so the metric counts triangle pairs, not penetrated vertices or intersection area.

Frame Retained cache Recomputed cache Measurement object
193 135 95 Visible garment / left-leg triangle-intersection pairs
194 298 154 Same
196 138 224 Same

At frame 196 recomputation increases the intersection-pair count. At the same time, maximum particle penetration into the same new collision envelope falls from about 2.62 cm to 1.09 cm. That envelope comprises two tapered capsules for the left thigh and lower leg. Its depth measures particles relative to the envelope, not the visible garment relative to the rendered leg. There is no contradiction: one metric checks visible triangle pairs; the other checks particle depth in approximate collision geometry. Mapping, normal offsets, and discrete sampling can affect their relationship.

Geometry measured by the two collision metrics

Figure 10 | Actual F196 overlays and measurements. Both sides use identical body pose, camera, and corrected capsules. B measures retained particles against these capsules; C uses recomputed particles. White circles mark each version's deepest sampled particle. 2.62→1.09 cm is envelope penetration; 138→224 counts visible garment/leg triangle pairs. The objects measured differ.

Report both metrics separately. Penetration depth uses centimeters and tests particles against capsules; intersection counts test visible garment and leg triangles. Keeping objects, units, and windows explains why one can decrease while the other increases, with close-ups locating the region. No intersections were recorded in the selected region over frames 214–280. That covers the tested meshes and interval, not other regions or actions.

Same-condition comparison at frame 196

Frame 196: retained and recomputed caches under the same body and camera. No capsule or particle overlay is present in this normal-material image; contours alone cannot locate every detected intersection.

Earlier sections show normal materials, solver points, and capsule overlays for the same frame. Each pair places retained B on the left and recomputed C on the right with matching body, camera, and crop. All six images use the same corrected left-leg collision inputs. B measures old cached particles against those new shapes; it does not establish that the old simulation originally used them.

Depth is calculated in solver-local centimeters. Points and capsules are then transformed through component and world space into the original side camera. Read depth from the corresponding numerical record, not pixel distance from the white circle to a wireframe. These are projections of actual input/cache data, not a new UE real-time run or a new simulation.

The two measurements can now be connected to the image. Shallower orange points relative to cyan/violet capsules mean reduced maximum penetration into these approximate colliders. The visible garment still passes through surface mapping, and capsules differ from the rendered leg, so mesh-intersection pairs can increase. The orange points mark audited computational positions, not visual effects.

The contact close-up uses native-pixel crops from the same HD frames over 190–216. Both columns show the same local region, reducing distractions in a full-body view. Cropping cannot create geometric detail absent from the source.

Garment/left-leg B/C comparison, 1680×660, half speed. Numerical geometry metrics remain those of the corresponding run.

View normal speed and additional keyframes

Normal-speed view of the same local region.

Same-condition comparison at frame 193

Frame 193, paired with the table's change from 135→95 intersection pairs.

Same-condition comparison at frame 214

Frame 214 preserves continuous state after the body recovers. Equal current poses do not imply equal preceding particle histories.

Camera angle affects visual judgment. A gap visible from behind may be hidden by the leg in side view; a triangle intersection may lie inside the garment. Technical diagrams and multiple cameras locate measured geometry on the character. A favorable camera does not invalidate evidence from another view.

How solver frequency changes the result

The garment sensitivity test holds external submission at about 30 Hz with identical targets and colliders, changing only NvCloth solver frequency. The table sums visible triangle-intersection pairs over frames 191–280. Pairs can repeat across frames; this is not a count of temporally unique pairs.

Solver frequency Accumulated intersection pairs Conditions held fixed
30 Hz 813 Submissions, targets, colliders, and inspected region
60 Hz 369 Same
90 Hz 124 Same
120 Hz 102 Same

The current backend is sensitive to frequency, but these results cannot identify the original game's frequency as 120 Hz. Fewer intersection pairs describe one geometric metric over a specific interval; they do not independently establish better action timing, stretch, stability, performance, or fidelity.

Inspect the times of intersection as well. At 120 Hz frame 196 has no recorded pairs, but frames 205 and 206 introduce 60 and 42 pairs absent from the baseline. Higher frequency changes trajectories and contact distribution: fewer accumulated intersections can coexist with new local intersections. Configuration selection therefore requires full-window statistics and keyframes together.

Solver-frequency probe and local intersections

Figure 11 | Bars compare accumulated pairs in the inspected region. The right shows local intersections introduced by the higher-frequency setting. The horizontal categories are not a time axis, and pair counts are not penetration depth.

Frequency experiments are stored separately from the presentation configuration, which remains unchanged by this test. Adopting 120 Hz would require checking complete actions, contact intervals, normal/tangent caches, file reading, and final renders again, together with input timing and resource settings. Lower accumulated counts justify further evaluation, not automatic replacement of the existing render.

Higher internal frequency primarily changes calculation and constraint convergence for supplied inputs. It cannot correct bad bind matrices, mistimed colliders, or mismatched caches. Resolve those at input and reading stages before analyzing frequency effects; otherwise local parameter improvements may conceal remaining input errors.

Reproduction and diagnosis from input to final surface

From body inputs to particle results

Reproduction begins with a checked body-pose sequence, generates its targets, reference frames, and colliders, then simulates the full sequence. Records link the body sequence, cloth/hair resources, and solver configuration so every cache can be traced to actual inputs. Frequency suffixes in filenames do not replace settings: the number may refer to body sampling or physics solving.

At the start, check bind matrices and same-name bone mappings. For motion, check indices, units, reference frames, and collision shapes. For discontinuities, check modes, time boundaries, and history handling. This finds the first differing stage rather than repeatedly tuning final garment positions.

Incorrect targets make solver comparisons uninformative. If targets match but colliders differ, establish whether this is intentional or mixed inputs. If both match and results differ, inspect configuration, initialization, and history. Fix the object and stage in each comparison instead of combining changes under a single physics-mismatch label.

From particles to the final surface

Once particle data checks out, inspect physical triangles, particle normals, barycentric mapping, normal offsets, and static branches. Preserve position and direction checks separately, then verify unit/axis conversion and Blender reading. This distinguishes different simulation from the same particles being rendered into a different surface.

Start, middle, and end samples serve different purposes: binding and initialization; continuous state and deformation; history continuation and complete caches. A maximum-difference frame explains a peak, not every boundary. An apparently recovered final frame can miss a brief mid-sequence failure.

The handoff retains resource relationships, process descriptions, audit records, videos, and keyframes, but not the complete original program, preceding capture buffers, or D3D12 shader-replay host. This article explains that pipeline from those records; writing did not rerun the original project or add engine acceptance testing. Where underlying code was not supplied, explicitly labeled pseudocode explains inputs and outputs rather than posing as a line-by-line source quotation.

Check stage Main objects What passing establishes
Binding and target generation Bone mappings, bind matrices, anchors Corresponding inputs can be rebuilt for specified poses
Space and timing Reference frames, indices, colliders, dt One solve receives aligned time and space inputs
Continuous simulation Current/historical particles and settings How the reference backend evolves over the sequence
Surface reconstruction Dynamic mapping, static skinning, directions How particles become visible geometry
Cache reading Positions, normals/tangents, applicability conditions Writing and reading preserve expected data
Visual inspection Normal materials, multiple cameras, continuous video Current motion and local issues are observable

These checks cover input, computation, transfer, and appearance. Full video decoding establishes readability; near-zero cache-readback error establishes delivery of expected data into the scene; continuous footage and contact close-ups reveal motion and local intersection. Link each check to one configuration while retaining its scope to identify where a difference first appears.

From full-body movement to ponytail close-ups

The opening rear sequence and the following side sequence both use the updated gait-driven test wind and sprint enhancement. Ponytail simulation runs continuously from F1 to F280 before original hair-card vertex-shader reconstruction. Body and garment retain the baseline. The cameras expose strand distribution, extension, and body occlusion. Wind-response settings and the missing in-game inputs are documented above; these renders show the current offline solution.

Updated side sequence, 1920×1080, 30 FPS, normal speed, F1–280: walk, regular run, sprint, release, and stop. Ponytail uses test wind and sprint enhancement; body and garment remain on the baseline.

Stopping close-ups are native crops from the updated rear and side sequences, both over F180–280. The rear view reveals distribution around the torso; the side view reveals fore-aft extension and shoulder/back occlusion. Each preserves stopping through the end. Normal speed checks timing; repeated-frame half speed exposes adjacent poses without adding physical samples.

Updated rear ponytail stop, 960×1080, half speed, cropped at native pixels from F180–280. It uses the current gait-driven test wind and sprint enhancement; body and garment remain on the baseline.

View the rear close-up at normal speed

The same updated rear source frames at normal speed.

Updated side ponytail stop, 960×1080, half speed. Native crops from the test-wind/sprint-enhanced F180–280 sequence; repeated frames slow playback without adding physics states. Body and garment remain baseline.

View the side close-up at normal speed

The same updated side source frames at normal speed.

The update contains 18 video files. Numbered 04 duplicates the full rear sequence; 05 duplicates the half-speed rear stop, so those players are reused. Original B/C collision comparisons, clean columns, and contact-region videos remain alongside the new segments and three-column views. Gait clips demonstrate offline tuning; B/C metrics still refer to the original collision experiment. Replacing presentation videos did not recalculate 14.97 cm, 4.68 cm, or penetration depths.

Inspecting ponytail response by action phase

The following segments inspect the updated ponytail by action phase. Every segment is cropped from the full sequence, continuously simulated from F1; a clip boundary is not solver reinitialization. Rear views expose lateral distribution; side views expose fore-aft extension. Match source-frame intervals before comparing cameras. The full sequences remain the reference for starting, speed changes, and stopping as a whole.

Strand following during walking

Rear walk, F1–36, half speed. Observe strand changes relative to the torso at low speed.

Transition from walking to running

Rear walk-to-run, F37–58, half speed. Observe continuous response as speed and body lean change.

Regular running

Rear run, F59–112, half speed, before the later sprint-enhancement interval.

Transition from running to sprinting

Rear run-to-sprint, F113–133, half speed. Enhancement enters smoothly during the transition.

Ponytail extension during sprinting

Rear sprint, F134–179, half speed. Backward/upward acceleration and crosswind enhancement are offline tuning for this demonstration.

Side view of the sprint transition

Side run-to-sprint, F113–179, normal speed, 960×960. Observe strand extension relative to body lean.

Side view of sprinting strands

Side sprint, F134–179, half speed, 960×960; the same action interval as the rear sprint clip.

Side view of input release and early stopping

Side release/stop, F180–216, half speed, 960×960. This is only early stopping; use the F180–280 close-up for the complete continuation.

Defining position differences, coordinate conversions, and cache settings

Position-error space, correspondence, and statistical scope

Before reporting maximum position error, specify the two position sets. Cache readback compares expected and actually read positions for the same render vertex. Recomputation compares corresponding physical particles in two caches. Penetration measures entry into a collision shape. All can use centimeters or meters, but address different questions and cannot be compared merely because units match.

A teaching definition of cache-to-cache particle difference follows. P and Q require identical units, spaces, index correspondence, and display times; otherwise the result is not a controlled difference.

// Per-frame maximum: largest Euclidean distance over corresponding particles.
frameMax[t] = max_i(length(P[t][i] - Q[t][i]))

// Sequence maximum: maximum over the agreed frame interval.
sequenceMax = max_t(frameMax[t])

A maximum absolute component difference instead needs its own definition, max(abs(dx),abs(dy),abs(dz)), rather than being labeled that Euclidean distance. An offset of 1 cm on both X and Y gives Euclidean distance about 1.414 cm but maximum component difference 1 cm. Reusing one metric name for different calculations creates unnecessary ambiguity in reproduction.

Quoted measurements retain the objects and ranges of their handoff records; a teaching formula does not replace the original audit implementation. Externally reproducible tables should provide a metric definition or calculation entry. In particular, the 14.97 cm cloth and 4.68 cm ponytail cache differences cannot be reduced by Blender readback error to derive a remaining physics error. One compares simulations; the other compares writing and reading the same result. They are not additive parts of one total.

Peak time and location matter alongside magnitude. The early comparison ended at frame 216 and missed the ponytail peak. Extending through frame 280 includes both cloth and hair peaks. A short interval selected around visible cloth changes cannot represent the complete hair response. Retain sequence-wide curves and regions before selecting explanatory close-ups, rather than defining the statistical window around a preselected short video.

Geometric checks for normals, tangents, and coordinate reflection

Centimeter-to-meter conversion includes a Y-axis reflection. A reflection matrix has negative determinant and changes handedness. Unlike a proper rotation, reflection also changes the relationship between winding and direction in the new coordinates. Normal and tangent-space checks therefore remain necessary after position conversion.

Let S=diag(1,-1,1) denote reflection without unit scaling. Ordinary direction components can be transformed with S, but a face normal reconstructed by cross product also depends on winding. The identity is:

// Column vectors for explaining reflection, winding, and normals only.
cross(S * a, S * b) = det(S) * S * cross(a, b)
det(S) = -1

Reflecting stored normals and recomputing normals from transformed positions with unchanged winding can therefore differ by a sign. Resolve the actual importer/render conventions for winding, stored normals, and handedness together. A negative sign is not an instruction to flip again unconditionally; double compensation introduces another error.

A small triangle suffices to test this relationship. Save source points and normal, inspect transformed points, winding, and intended visible face, then check tangent directions and normal mapping. Use normal materials whose bump direction is distinguishable. An unlit flat surface can expose positions while hiding tangent-space errors.

These are geometric checks, not a requirement to rewrite the original shader with this formula. Replay retains original direction outputs and handedness. The teaching derivation explains why both position and direction data must be preserved, and why matching positions alone cannot validate surface directions.

Record the inputs and settings that generated a cache

A cache record should identify its body sequence and binding data, collision shapes, input selection, time interval, solver settings, render mapping, and coordinate conversion. The reader uses those conditions to determine scene applicability. Compare them before replacing a file; a shared filename or vertex count does not make caches generated under different configurations interchangeable.

Two stopping files may use original and corrected bodies respectively. Two 60 Hz versions may change body input frequency or internal cloth frequency. Records must separate field responsibilities rather than rely on filenames. The following is a proposed review structure, not a claim that the project already uses this complete layout.

// Suggested review record: body sequence, resources, and parameters for reproduction.
// Illustrative field names, not an existing complete project data structure.
sequence.body_pose_id = selected_body_manifest
sequence.mesh_and_binding_id = selected_resource_identity
sequence.collider_id = selected_physics_configuration

timing.input_lag = selected_lag
timing.submission_dt = selected_dt
solver.configuration_id = selected_solver_configuration
surface.mapping_id = selected_render_mapping
output.position_cache = mdd_file
output.direction_cache = direction_file

If body pose or controls no longer match the cache record, stop using it through the defined fallback. The Blender viewer returns to skinning; a real-time system needs its own invalidation and recovery policy. The proposed fields explain what to retain. What has been validated is Blender's reading/fallback behavior, not a general runtime resource manager.

From offline reconstruction to an engine runtime

Several dependent calculations connect bones to a rendered cloth/hair surface. The body generates targets and colliders; the solver advances particles with history; mapping reconstructs positions, normals, and tangents; Blender reads a cache matching body controls. The stopping case makes that dependency concrete: an old cache preserves earlier contact results after a body edit, whereas recomputing from the start with new colliders produces different subsequent motion.

Engine integration first needs explicit update ownership and timing. Which stage builds targets and colliders after animation? How are current/historical particles retained? Which completed result does rendering read? Who requests reset on teleport or component invalidation? These relationships determine whether the real-time system preserves offline continuity. Cache playback validates reading, not real-time scheduling, state management, or exception handling.

A runtime also encounters teleports, equipment changes, interrupted animation, pause/resume, LOD transitions, and component invalidation that a fixed offline sequence does not cover. Each may change inputs or state lifetime. Define and test supported entry points individually instead of resetting everything on any change. A stable-looking reset can discard the very motion history this reconstruction aims to retain.

The visuals support different checks. Full actions show continuity; ponytail close-ups and gait segments show local response; B/C contact videos compare collision results. Frame 196 retains normal-material, collider, and particle overlays under matching conditions to locate the measured geometry. Depth and pair counts still come from separate geometry calculations, not screen-space distances. The wind diagram separately explains its formula and offline settings.

The current results establish where targets come from, how particles retain history, and how those points map to a visible surface. Collision analysis preserves both particle-to-capsule depth and garment/leg triangle-intersection counts. Future body, collider, or solver changes can be traced through these stages and recomputed from matching input records. This provides a checkable foundation for engine integration; real-time scheduling and untested actions still need subsequent engineering validation.

These images are rendered in Blender from offline caches, primarily to inspect continuous motion, collision response, and surface reconstruction. UE integration will require renewed checks against actual animation transitions, character movement, colliders, and engine update timing, followed by local adjustments to contact, strand amplitude, and stopping transitions. Offline settings provide a starting point; suitability for real-time use will be judged in UE, keeping verified source mechanisms distinct from engineering adaptations.

AI collaboration retrospective

AI assisted in organizing handoff materials, checking terminology and comparison objects, writing annotated flow pseudocode, and illustrating spaces, time selection, and surface mapping. Data, simulation results, and collision statistics come from existing project materials. Generated images have not replaced actual renders, and document preparation has not been counted as another engineering validation run.

Editing focused on distinctions readers could otherwise miss: body pose versus particle state, physics versus render meshes, solver frequency versus video rate, and original-instruction evidence versus offline tuning. Variables are defined before formulas, code comments identify spaces and update order, and captions distinguish diagrams, actual images, and measurements. Native resolutions, crop sizes, playback rates, and experiment versions are stated so additional media clarify comparisons rather than merely increase their count.

The original game's complete cloth schedule, actual solver version, some runtime switches, and real-time integration remain unverified. Per-particle wind has bounded-input instruction comparisons, but scene-query and component wind vectors still require frame-by-frame in-game capture. Gait wind and added sprint acceleration remain offline settings. Further call records and runtime footage are needed to determine which offline conclusions transfer to real-time implementation.

Leave a Comment