Skip to content

Export The Witcher 3 3D models

Jean-Louis Boudrand edited this page Nov 19, 2020 · 3 revisions

The process to extract the files of The Witcher 3 is little bit longer and complicated than for The Witcher 2, but with a bit of patience it's not too complicated.

Unpack the textures

The first things that you should do is to extract the textures of the game. There are two ways to do this : With the official Modkit. After the installation :

  • Open the windows command line tool

  • Move to the Modkit folder with the "cd" command, and use this command : wcc_lite uncook -indir="Your game path"\content -outdir="The export path"\Uncooked -imgfmt=png -skiperrors The indir parameter is the folder where you have your game. You can extract the files of the game in the "content" folder or the files of the DLC (including "Hearts of stone" or "Blood and wine") in the "DLC" folder. The outdir parameter is the folder where you want to extract all the files. The "-imgfmt=png" can be changed, I have set png, but you can also use bmp, jpg or tga, in all the cases it will works with this tool.

Check the documentation of the Modkit for more information. The second way to extract the textures is with the the Lua utils for The Witcher 3 (deprecated since the official Modkit has been released)

Unpack the .bundle files

The uncook command of the Modkit has extracted many files, not only the textures, but some useful files havn't been extracted by it. In particular the buffers of the meshes and the rigging files. So in this step we will use the Witcher Converter to get those missing files. They are stored in BUNDLE files, which store most of the files except the textures (they are in the CACHE files), so that's why we have used the Modkit to extract the textures before.

To do this :

  • Download, unzip and start The Witcher 3D models converter
  • Go to "The Witcher tools/The Witcher 3/BUNDLE extractor"
  • Select the destination folder where the files will be unpacked : It should be the folder where you have extracted the textures with the Modkit.
  • Select the .bundle files that you want to unpack (they are in the 'content' folder of the game) You can just select the content folder to export all the bundles, but there are a lot of useless files for us : the "blob" and "buffer" bundles contain the most important files.

When you have done this, you can find the w2mesh files of the game that you can open with the software in the folder where you have extracted the bundles. For each .w2mesh file that you want to open, you should have a corresponding .buffer file (For example when you try to open "t_01__cat.w2mesh", you should have a file named "t_01__cat.w2mesh.1.buffer" in the same folder). If you don't find the buffer file, it's probably because you haven't extracted a bundle with the corresponding buffer file. (the bundles which contain the buffers are in many cases called "buffer.bundle") It's necessary to do this, if you try to open the w2mesh file without the buffer, the tool will simply load nothing.

Next check this step

Use the tool

  • Start The Witcher 3D models converter
  • At the top of the window, set the folder where your bundles are extracted.

  • Go to "Menu/Options/TW3 Settings", and set the path of the folder where you have the unpacked textures of the game. (probably the folder where you have extracted the bundles)
  • If you have extracted your textures with the LUA utils : At the first usage of the software, if you have unpacked the textures, click 'The Witcher 3 tools/clean textures path'. It simply removes the triple extensions of the textures to make a simple .dds extension, it's necessary if you want that the software loads the textures.
  • Load your w2ent or w2mesh file. If you search something but you don't know where the file is and where it's stored, you can use the search tool (Menu/Search).
  • Select an output format, the name of the output file, and click the "Convert ->" button. You can change some export settings in the options menu (Menu/Options)

  • And now you can import this in a 3D modeling software

Export the rigged and animated models

In a previous screen, you can see that the mesh has 0 joint (0 bone). It's because the skeleton is a feature disabled by default because it's still experimental. To enable it, go to Menu/Options/TW3 and enable it.

Now, if you reload the mesh, the bones have been loaded, but the hierarchy of the bones hasn't been created, simply because this information is not stored in the .w2mesh file, but in a separate .w2rig file. So if you export your mesh now, you will have the bones but without the hierarchy. But with the tool, you have the possibility to select the .w2rig file of the mesh to fix this problem and export your mesh with a good hierarchy.

Simply go to "The Witcher tools/Set rig" and select the .w2rig file to use. You can see the skeleton with "Display/Skeleton".

Next you can also load the animations of your model with a similar process. go to "The Witcher tools/The Witcher 3/Load animations" and select the .w2anims file to load.

Like for the mesh with entity files, the rig and animation files can also be loaded from the search tool.

After this step, for the export itself, check the information given in the tutorial for TW2, it's exctacly the same thing. The workflow described is not super user friendly, but I haven't found any better yet.

About the characters, they are often splitted into differents w2mesh files. You can load different files to export them in a single export with "Menu/Add mesh(es)"