# Exporting Models

## Required Software

* 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="../intro/duction/tools" %}
[tools](https://noskill.gitbook.io/titanfall2/intro/duction/tools)
{% endcontent-ref %}

## Getting The Models

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="../intro/duction/vpk-packpack" %}
[vpk-packpack](https://noskill.gitbook.io/titanfall2/intro/duction/vpk-packpack)
{% 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`

![Copy these settings here, with the filepath to your model and click decompile](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-0320916d33e714c06125325b93bd48d956d192d2%2Fcrowbar%20settings.PNG?alt=media)

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

![Go into your preferences panel](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-f96011d10e630ad01eb6c7579ea2b293f3149c0d%2FDesktop%202020.08.10%20-%2014.13.29.22_1.gif?alt=media)

![Click the install button on top of the blender preferences window](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-217748a35ec7202fe246386d99ddc05480f78f98%2Finstall.png?alt=media)

![Locate your add-on and install it as shown.](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-764a6273101090f0ab6e4e9b5801042aa89a9861%2FAdding%20the%20Addon.gif?alt=media)

## Importing The Models

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://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-79e3b66b4e79806e2134d76a4d728e42185bf914%2FImporting%20The%20Model.gif?alt=media)

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

![](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-b63cf00bccc9807fa368d646a19c80652ef9a750%2FCARSMG%20import%20without%20delete.PNG?alt=media)

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

![](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-7f63c1ed6a73e0ba65f374f172707239ff130e75%2FDeleting%20The%20Proscreen.gif?alt=media)

## Texturing The Model

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://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-51700a70f7c42e3936a08bf37eeea15db16a66cd%2FAppending%20the%20nodes.gif?alt=media)

![Change your workspace from layout, to shading.](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-8c2397fbb6cf0423893263223798eec549f055fb%2FShading%20Workspace.PNG?alt=media)

![Press File / Append](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-bc873732af1254889131cf385f2f33936bcd73d4%2FAPPEND%20ME.PNG?alt=media)

![Select your SG\_Shader blend file](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-af3e3a40763bc73d26715ab04326760e524fca77%2Fsg%20shader.PNG?alt=media)

![Select The Nodetree folder, and then the S/G shader](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-0c1907748209e3d80a1ecbff5c7e2d5df9826e39%2Fnodetree.PNG?alt=media)

![Delete / Import the nodes as shown](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-b265535ecb74e490b3adcedacbdd980a9683ebca%2FRemoving%20adding%20nodes.gif?alt=media)

![Set your legion settings to these here](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-3703c68837c161299f428f8f2916181ef237bbbd%2FLegion%20Settings.PNG?alt=media)

![Copy paste the texture name and paste it into the legion extractor search bar.](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-9b1538157c6c4f120f20251ff50da20ef5817c76%2Fcopy%20paste.gif?alt=media)

![The textures are located within the "exported\_files/materials" path for legion.](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-6fab28d3f8fd08843ad5eac223d36b096c72f04e%2Fcar%20smg.PNG?alt=media)

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

![](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-60f7c06dc525e1ba8ad4a7b2de6e0ce0a7da61d0%2FTexture-linking.png?alt=media)

Link them up using the visual guide above

![](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-2cdca8be002257ee5a5456fa8797ee1efa348e17%2Fadding%20the%20nodes.gif?alt=media)

## Congrats!

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

![](https://3680263823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPXG6BIVWwbrvVSOiBw-887967055%2Fuploads%2Fgit-blob-ad2fbfdfa032ebf72fd5933a5b9e245de02180c6%2Fspijny-car.gif?alt=media)
