The Architecture of Authenticity: Inside Kingdom Come: Deliverance’s Adaptive Clothing System

Introduction: Beyond the Engine License

In the modern landscape of Triple-A game development, the acquisition of a powerful engine license—be it Unreal, Unity, or CryEngine—is often viewed as the finish line for technical infrastructure. However, for Warhorse Studios, the creators of the critically acclaimed historical RPG Kingdom Come: Deliverance (KCD), a base engine was merely the foundation upon which a massive, custom-built skyscraper of technology had to be erected.

At a landmark session during the Game Developers Conference (GDC), Tomas Blaho, Lead Graphics Programmer at Warhorse Studios, pulled back the curtain on one of the most sophisticated pieces of character technology in the industry: the Adaptive Clothing System. This system was not merely a cosmetic feature but a fundamental necessity for a game that promised a level of historical immersion never before seen in the medium. To achieve the "time machine" effect of 15th-century Bohemia, the developers had to solve one of the oldest problems in computer graphics: the complex, multi-layered interaction of cloth, leather, and steel.


Main Facts: The 16-Slot Layering Revolution

The core of the Kingdom Come: Deliverance clothing system is built on the principle of procedural adaptation. Unlike traditional RPGs, where a character might have a single "chest" slot that swaps out the entire torso model, KCD utilizes a staggering 16-slot system. This allows players to layer garments exactly as a medieval knight would: a linen shirt against the skin, followed by a padded gambeson, a chainmail hauberk, and finally, steel plate armor topped with a fabric surcoat or jupon.

The Problem of "Clipping"

In standard game development, layering multiple 3D meshes on top of one another inevitably leads to "clipping"—a visual glitch where the inner layer of clothing pokes through the outer layer during movement. Traditionally, developers avoid this by "body-part swapping," where the limb underneath a boot or glove is simply deleted. However, this approach is impossible when players can mix and match thousands of combinations of clothing with varying thicknesses.

The Procedural Solution

Warhorse Studios’ solution was the development of an automated system that procedurally deforms and "shrinks" underlying layers to fit beneath outer layers. This ensures that:

  1. Zero Overlap: The system dynamically calculates the volume of each layer, pushing the outer mesh outward while tucking the inner mesh inward.
  2. Handmade Quality: Despite being procedural, the final visual output maintains the fidelity of assets sculpted by hand, preserving folds, wrinkles, and material textures.
  3. Dynamic Weight: The system accounts for the bulk of different materials, meaning a character wearing heavy winter furs looks physically broader than one in a simple tunic.

Chronology: From Kickstarter Vision to Technical Reality

The journey of the Adaptive Clothing System follows the turbulent and triumphant development cycle of Kingdom Come: Deliverance itself.

2012–2014: The Concept and the Engine Struggle

When Daniel Vávra founded Warhorse Studios, the vision was clear: a "hardcore" RPG with no magic and total historical accuracy. The team chose CryEngine for its superior lighting and foliage rendering. However, they quickly realized that CryEngine’s default character system was designed for first-person shooters with static outfits, not complex, modular medieval wardrobes.

2015–2016: The Prototyping Phase

As the Kickstarter backers’ expectations grew, the technical team, led by Tomas Blaho, began experimenting with "shrink-wrap" algorithms. The goal was to create a system where the armor didn’t just sit on the character but interacted with the layers beneath it. During this phase, the team faced significant hurdles regarding "vertex explosions," where the procedural math would fail, causing character models to distort into unplayable geometric messes.

2017: Optimization and Polish

In the year leading up to the 2018 release, the focus shifted to performance. Processing 16 layers of clothing for every NPC in a crowded town like Rattay would have crippled even high-end PCs. The team developed a "baking" process where, once a combination of clothing was set, the engine would simplify the invisible inner layers to save on draw calls without sacrificing the visual complexity of the visible outer layers.

2018–Present: Post-Mortem and Legacy

Following the game’s successful launch, the system was hailed as a benchmark for the genre. Tomas Blaho’s GDC presentation served as a "post-mortem" for the industry, detailing how a mid-sized studio managed to out-engineer industry giants by focusing on a specific, niche technical challenge.


Supporting Data: The Mechanics of 15th-Century Fashion

To understand the scale of the Adaptive Clothing System, one must look at the data points that define its operation.

The Layering Hierarchy

The system categorizes items into four primary layers, which are then subdivided into the 16 slots:

Adaptive Clothing System in Kingdom Come: Deliverance
  • Layer 0 (Base): Undergarments and skin.
  • Layer 1 (Soft): Padded gambesons, hose, and shirts.
  • Layer 2 (Mail): Chainmail shirts, coifs, and leggings.
  • Layer 3 (Plate/Outer): Cuirasses, pauldrons, and heavy overcoats.

Technical Specifications

  • Vertex Culling: The system automatically removes up to 90% of the geometry of inner layers that are completely obscured by outer armor. This optimization is critical for maintaining a stable 30-60 FPS on consoles and mid-range PCs.
  • Morph Targets: Each piece of clothing contains "morph targets"—pre-defined shapes that the engine can trigger to prevent clipping at high-stress joints like the armpits and knees.
  • Material Diversity: The system handles over 20 different material types (leather, wool, silk, polished steel, rusted iron), each with unique physical properties that dictate how they "bend" when layered.

Official Responses: Insights from Warhorse Studios

During the GDC session, the discourse focused on the philosophy of "In-House Innovation." Tomas Blaho emphasized that while third-party tools are helpful, they often lack the specificity required for high-concept projects.

"You just bought yourself a license to an engine and you think you are almost done? For those who want to create a realistic open world RPG, the answer is far from it," Blaho noted during his presentation. This sentiment reflects the studio’s "DIY" ethos.

Warhorse Studios’ representatives have frequently pointed out that the clothing system was more than a visual flourish—it was a gameplay mechanic. In Kingdom Come: Deliverance, your clothing dictates your social standing (Charisma), your ability to sneak (Conspicuousness and Noise), and your survival in combat (Damage Thresholds).

"We couldn’t just ‘fake’ the armor," Daniel Vávra stated in a developer diary. "If a player puts a surcoat over a breastplate, the game needs to know that both are there, both are providing protection, and both are affecting how NPCs perceive the player. The technology had to support the design."


Implications: A New Standard for the RPG Genre

The impact of the Adaptive Clothing System extends far beyond the borders of 15th-century Bohemia. It represents a paradigm shift in how developers approach character customization and environmental interaction.

1. The Death of "Set-Based" Armor

Before KCD, most RPGs relied on "armor sets" to avoid technical headaches. Players would wear the "Daedric Set" or the "Griffin Set." KCD proved that players crave "individualized" fashion. This has influenced subsequent titles to move toward more granular customization, allowing for a "mix-and-match" philosophy that enhances player agency and immersion.

2. Paving the Way for Kingdom Come: Deliverance II

With the recent announcement of the sequel, the foundation laid by Blaho and his team is being expanded. The "Adaptive Clothing 2.0" expected in the sequel aims to include even more fluid simulations, allowing for realistic capes and flowing robes that interact with the layered armor beneath them without the clipping issues that plague even modern Triple-A titles.

3. Modding and Community Longevity

The robustness of the clothing system has allowed the modding community to flourish. Because the system is procedural, modders can introduce new historical garments without having to manually code the physics for every possible combination. The engine handles the heavy lifting of "fitting" the new items into the existing hierarchy.

4. Educational and Historical Value

Beyond gaming, the technology has been noted by historians and costume designers. The way the system accurately depicts the "bulk" of a fully armored knight provides a visual education on the realities of medieval warfare—showing that a knight was not a clanking tin man, but a sophisticatedly layered machine of fabric and steel.


Conclusion: The Invisible Labor of Realism

The Adaptive Clothing System in Kingdom Come: Deliverance stands as a testament to the "invisible labor" of game development. While players may simply see a beautifully rendered knight, the reality is a complex web of procedural algorithms, vertex culling, and layer hierarchies working in millisecond intervals.

As Tomas Blaho concluded in his GDC session, the goal was never to show off the technology, but to make it so seamless that the player forgets it exists. In the pursuit of true realism, the greatest achievement of a technical system is its own invisibility. By solving the "clipping" crisis through procedural innovation, Warhorse Studios didn’t just build a better character creator; they built a more believable world.