Mesh Physics (YLD)
Learn about the file format responsible for physics on clothing
Introduction
Most clothing only needs normal skeleton weights. Components with loose sections, such as long coats, skirts or suitable hair, can use a separate Mesh Physics (YLD) file when those sections should continue moving dynamically.
What are YLD Files?
YLD files contain character-cloth simulation data associated with a component YDD. The visible model remains in the YDD, while the matching YLD provides the low-density simulation mesh and related physics data used by that component.
Purpose of YLD Files
The Mesh Physics (YLD) file can provide:
Dynamic Cloth Simulation: Loose areas can react to character movement instead of following skeleton weights rigidly.
Simulation Binding and Collision: The YLD works with the visible cloth region, pinned attachment area and configured collision bounds.
Durty Cloth Tool currently builds character YLD companions for component drawables. Do not treat this as the workflow for fragment/prop cloth stored in a YFT.
Components of a YLD File
A YLD file contains the data needed by the character-cloth simulation. Durty Cloth Tool can attach, import, export, preview and build a matching YLD with a component, but it does not provide controls for editing individual physics fields. Author or edit those files with a current Sollumz release.
How Mesh Physics (YLD) Files Work
The YLD is tied directly to the YDD that provides the visible component geometry, materials, LODs and normal rig. The YLD does not replace correct skeleton weights, materials or the visible model.
Example: A long coat may use a YDD for its visible shape and a matching YLD for the simulated lower section. Exact binding, collision and movement depend on both files and must be tested together.
Without a matching YLD, DCT does not generate character-cloth simulation automatically. The item continues to use its normal visible mesh and skeleton weights.
Related File Naming and Structure
For automatic DCT resolution, a binary YLD should sit beside the corresponding YDD, share the same base name and end with .yld. See Auto Cloth Data Resolving.
Example file structure:
In this example, jbib_000_u.ydd and jbib_000_u.yld form the model/physics pair. Matching names alone do not prove that their meshes and simulation data are compatible.
Durty Cloth Tool Workflow
Once a YLD is attached to a component, DCT:
Keeps it with the drawable in the project and item packages.
Generates the final component filename and cloth metadata during the build.
Includes the matching YLD in supported component resource output.
Makes the attached physics available to the clothing preview.
Use the Cloth Analysis Report to catch a missing linked file and the 3D Preview with animations to catch obvious motion problems.
Common Use Cases for YLD Files
1. Capes, Skirts and Long Coats The loose lower section can move independently while the fixed section remains normally rigged.
2. Hair Suitable long hair components can use a YLD for selected loose sections.
3. Loose Sections Within Components Tails, tassels or scarf-like areas that are part of a supported component can use the same character-cloth approach when the visible mesh, material and proxy are prepared correctly.
Previewing cloth physics
Drawables with a linked YLD are simulated in the 3D preview: pinned vertices follow the skin and the animation, free vertices hang and are held by the edges of the cloth, and they collide with the capsules of the body. An adjustable preview wind with strength, direction and gusts moves them.
Items carrying a YLD are marked with a Cloth badge in the outfit, and the focused drawable lists findings such as missing pins, missing edges, missing capsules, vertex count problems and model vertices that are not bound to the cloth.
See 3D Previewing Clothes for the controls.
YLD XML
Component mesh physics exported as .yld.xml can be attached directly. DCT converts it to the target binary format, preserves it in item packages, and builds it with the generated component cloth metadata.
Summary
Mesh Physics (YLD) files are an optional companion for component areas that need simulated movement. Durty Cloth Tool handles the project association, generated naming, metadata and resource output, while Sollumz handles the simulation authoring and diagnostics. Build with Build Options, then follow Testing Addon Clothes for final verification.
Last updated