Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Latest commit

 

History

History
19 lines (14 loc) · 2.14 KB

README.md

File metadata and controls

19 lines (14 loc) · 2.14 KB

XBC2ModelDecomp

A reformatted fork of a project created by daemon1 on the XeNTaX forums. All credit to them and to PredatorCZ/Lukas Cone for publicizing tools to reverse the game's various model formats. Special thanks to Turk645 as well for working on the map formats and for bouncing ideas back and forth with.

Features

  • Dump models (including bones and flexes) to XNALara ascii or glTF
  • Dump maps (including props) to XNALara ascii or glTF
  • Save specified LOD values for both props and maps
  • Dump all textures from files (including mesh textures/main chunk textures)
  • Dumps raw files and animations for research

Running

Simply run the executable, and pick an input file. An output folder will be created in the path you choose your file(s) in, but you can override this by picking a output folder manually. Each file will have its own folder in the output folder. Then, configure your output settings at the bottom and hit Extract. The file should export to the output path in the format you chose.

If you are using Blender, it does not natively support the XNALara format; I recommend johnzero7's plugin, however many other plugins exist for other modeling programs. The glTF format is also open source and used by many modeling tools and game engines. However, the current version of Blender does not support bones or facial flexes, so I have not yet implemented them into the tool.

Compiling

Every NuGet package should be included in the solution, but if for whatever reason they are missing, download the latest zlib (model decompression), GitInfo (commit hash in title), SharpGLTF (glTF export), and WindowsAPICodePack-Shell (non-infuriating folder selection.)

I've personally used Visual Studio 2017 to write the majority of this, but Visual Studio 2019 works as well.