Skip to content

About

Clean-room reverse-engineered runtime for Dying Light 1 (Chrome Engine 6). Bring your own assets.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openchrome

Independent, from-scratch runtime for Dying Light (1) (Chrome Engine 6), written in C++ with Vulkan and SDL2.

Goal: load and eventually play the original game from your own legitimately owned copy. Formats are reverse engineered from the data files; no game code or assets are included or distributed here.

Old Town rooftops, daytime

Old Town street Old Town at night with lamps and lit windows

Alpha-tested foliage and blended terrain The Slums Walk mode on a rooftop

Screenshots are rendered by oc_viewer straight from the game files (Old Town map): materials and textures from the material database, sun and moon lighting, shadow map, point lights and lit windows at night.

What works

Area State
.rpack containers, resource names, streams done, spec
Textures (BC1/BC3/RGBA8/R8/RGBA32F, mips) done, spec
Static meshes (vertex layouts, LODs, submeshes) done, spec
Materials: templates, sampler to texture binding done, spec
Map placement (.sobj), terrain and horizon meshes done, spec
Lights from .exp (lamps, window lights), night mode done, spec
Vulkan viewer: shadows, tone mapping, time of day, streaming textures done
Skeletons, skin weights, static poses, CPU skinning working, spec
Animation tracks (bit-packed ANM2 streams) in progress
Procedural sky (gradient, sun, night stars) done (not the game's own sky)
Terrain layer blending (vertex weights, world-space tiling), alpha-tested foliage working
Sound banks (FSB5): listing, IMA ADPCM music playback working, spec
Walk mode with gravity and collision against the meshes working (stand-in for PhysX)
FMOD Vorbis effects, vegetation .to, navmesh, gameplay open

Textured character in bind pose and in a clip pose

Characters

Character meshes are skinned kits (head, torso, legs, hair and their LODs as separate groups). The viewer reads the skeleton stored in the mesh, the per-submesh bone palettes and the vertex weights, then applies a pose from a static animation clip (here: bind pose and an NPC reset pose). Skin, clothes and faces use the textures bound by their materials; clothes are dyed from the s_idx mask and the s_grd colour palette (palette row 0 for now). Normal maps (DXT5nm, tangent frame from derivatives) and specular maps (s_spc_0: colour + gloss in alpha) are applied to characters; the map itself still uses albedo only.

oc_viewer "<DW dir>" old_town --nomap ^
  --spawn survivor_woman_a m_npc_reset_anim 0 0 0 0 ^
  --parts 53=survivor_woman_head_b.mat,116=survivor_woman_torso_b.mat,88=survivor_woman_legs_b.mat

Build and run (Windows, MSVC + Vulkan SDK)

build.bat
build\oc_viewer.exe "F:\SteamLibrary\steamapps\common\Dying Light\DW" old_town

Controls: WASD fly, mouse look, Q/E down/up, Shift/Ctrl speed, wheel changes speed, [ ] shift the time of day, N toggles day/night, Esc quits. Options: --time H hour of day, --radius R draw distance, --shot out.ppm --cam x y z yaw pitch write a screenshot and exit, --spawn mesh clip x y z yaw and --parts, --item id x y z yaw (inventory item by script id, mesh resolved through the item scripts), --nomap for character and item tests, --music <name> plays a track from Data/music_*.csb (looped), --walk starts in walk mode (with --shot it settles for 300 frames and prints the camera). oc_probe decodes all meshes of a map as a smoke test.

Research tools live in tools/ (Python, numpy/Pillow): unpack containers, export textures and models, inspect clips and skeletons. Format notes are in docs/formats/.


Unofficial fan project, not affiliated with Techland. Dying Light is a trademark of its owners.

About

Clean-room reverse-engineered runtime for Dying Light 1 (Chrome Engine 6). Bring your own assets.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages