# 导出模型

## 所需软件

* Blender
  * Blender Source Tool - For importing models into blender
  * S/G Shader - For linking textures
* Legion - RPAK ripping tool
* Crowbar - Source Engine model tool
* Titanfall VPK Tool - Titanfall VPK tool

{% hint style="info" %}
Check down bellow for the tools page where all the link are provided
{% endhint %}

{% content-ref url="../how-to-start-modding/modding-introduction/modding-tools" %}
[modding-tools](https://noskill.gitbook.io/titanfall2/chinese/how-to-start-modding/modding-introduction/modding-tools)
{% endcontent-ref %}

## 找到模型文件

First, we need to actually obtain the models. You can do this by extracting this VPK file you can learn how to extract VPKs

{% content-ref url="../how-to-start-modding/modding-introduction/how-to-backup-extract-and-repack" %}
[how-to-backup-extract-and-repack](https://noskill.gitbook.io/titanfall2/chinese/how-to-start-modding/modding-introduction/how-to-backup-extract-and-repack)
{% endcontent-ref %}

For the most part, models can be found in the common vpk. But you will find other models in the other vpk from Titanfall 2.

```
"Titanfall2\vpk\englishclient_mp_common.bsp.pak000_dir.vpk"
```

Next, you need to find the model you want. In this guide, as an example, the CAR SMG will be chosen. Which is located here

```
ExtractedVPK\models\weapons\car101
```

However, we can't just straight import this into blender, we will need to decompile the model using crowbar. So first, extract crowbar using your archive software of choice, and load up `crowbar.exe`&#x20;

![Copy these settings here, with the filepath to your model and click decompile](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENRpB9PIof5dm0-TWX%2F-MENUuOhOOJeHEcnOS8U%2Fcrowbar%20settings.PNG?alt=media\&token=844cd719-ce5e-4c58-9a7d-1cbbbc75ad5a)

Once you've decompiled the model into the folder of your choice, we need to open up blender and install blender source tools.&#x20;

![Go into your preferences panel](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENYqGy5knaSuOcUzpm%2FDesktop%202020.08.10%20-%2014.13.29.22_1.gif?alt=media\&token=567f8307-c668-4917-aecf-261dade2ff47)

![Click the install button on top of the blender preferences window](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MEN_Oe_B_8gFxaHtAha%2Finstall.png?alt=media\&token=b16e407e-b40e-4ebc-b003-36ee9d36cc33)

![Locate your add-on and install it as shown.](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENa9S_aj6wgyFyUjdh%2FAdding%20the%20Addon.gif?alt=media\&token=3bb95e2d-63ef-47da-aba8-3d182def1a6f)

## 导入模型

Next, we need to import the models using blender source tools. This can easily be done by clicking on `File > import`, and importing the `.qc` file as shown

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENbOu1aIPvCv1SSbI-%2FImporting%20The%20Model.gif?alt=media\&token=4b1fd5af-0274-4384-af2c-828c81a77b17)

After the model is imported, if you zoom out it should look like this

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENbjt2wd424eOBkdgf%2FCARSMG%20import%20without%20delete.PNG?alt=media\&token=e3239e15-bb74-41f5-bd91-ef0d9e3b9d13)

As you can see, it has addons equipped, such as the proscreen. We can delete this as shown below

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENcdWqK4qD9lloywYd%2FDeleting%20The%20Proscreen.gif?alt=media\&token=7e44bf21-c136-4e96-a095-25666cd7da26)

## 编辑模型纹理

Finally, we can begin to texture our model, this is perhaps the most tedious step, so buckle up

![We can begin to import the nodetree which helps with texturing the model](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENdW9lfqwQjun9xNBg%2FAppending%20the%20nodes.gif?alt=media\&token=fa5d9ea1-2737-4ba0-8eed-b14740281faf)

![Change your workspace from layout, to shading. ](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENdqKzmFx2DFLkhD3p%2FShading%20Workspace.PNG?alt=media\&token=261df820-4940-40a7-ae91-bdee92deff45)

![Press File / Append](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MFM6ZIgR8rY215H2c0V%2F-MFM6m-OBqU_JPhmnbaL%2FAPPEND%20ME.PNG?alt=media\&token=72fb4b58-3159-412f-9c2d-aa5b2a306455)

![Select your SG\_Shader blend file](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MFM6ZIgR8rY215H2c0V%2F-MFM70cjG6Ws15XrJg4L%2Fsg%20shader.PNG?alt=media\&token=155e634f-93cd-4a50-956d-478e1f816f25)

![Select The Nodetree folder, and then the S/G shader](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MFM6ZIgR8rY215H2c0V%2F-MFM7BomeYrAm9KrI7wY%2Fnodetree.PNG?alt=media\&token=76463f1f-04b7-4307-9005-9359aba65551)

![Delete / Import the nodes as shown](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENeyJk3NCnHomQ3QLO%2FRemoving%20adding%20nodes.gif?alt=media\&token=87aa57bc-f1fa-43a7-b396-29f5b30e43aa)

![Set your legion settings to these here](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENgAnVebt_WoCxwNAY%2FLegion%20Settings.PNG?alt=media\&token=0d45e985-c47c-4ce2-8552-a38148e48709)

![Copy paste the texture name and paste it into the legion extractor search bar. ](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENfkhsaCRmrzhC7kEg%2Fcopy%20paste.gif?alt=media\&token=e1066504-4874-4b86-ac2b-46970f7d266b)

![The textures are located within the "exported\_files/materials" path for legion.](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENgSJxyaNxXWMe6jdH%2Fcar%20smg.PNG?alt=media\&token=8166547b-dd17-4c97-9a8b-3da36406da77)

Now, we need to link up the textures to the blender node, however. we need to figure out which texture is which type. I've created a handy little image to help you identify them&#x20;

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENmQnjhqnPQzGkBcd_%2FTexture-linking.png?alt=media\&token=3be23c76-b57b-4dac-9f9a-ef425e8f324e)

Link them up using the visual guide above

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENnw4mhvSA73ng23Zo%2Fadding%20the%20nodes.gif?alt=media\&token=6567b147-af4e-4563-883c-c6f78ee49e4c)

## 祝贺！

Once its all textured up, your model should look like this, congrats!

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MENY3jTkkMuOHfbXj7a%2F-MENoGc3_mUIk0CNl8WX%2Fspijny-car.gif?alt=media\&token=80a71a1b-9919-4d83-96b2-528b0880eecd)
