I'm desperatly trying to figure out on how to export a 3D Model with it's texture into the Hammer Map Editor (Source SDK) for Garry's Mod. So far I managed to make models and to have them in there but I am struggling a lot to figure out on how to actually put on the texture. I followed the instructions of this video

Sadly I only get the model out since he does not explain anything on how to get that texture over. Even if I follow all his steps step-by-step, I just cannot get the texture over. Then I tried this. I saved the texture file as png, used VTF-Editor or viewer and turned the png into a vtf file. Put it in a folder and then all I have is a texture I can apply to my blocks, but it's not attached to the model like it is with all the other things.

Next I also tried using the hlmv tool to check on the model but all I guess is the pink and black checker texture and the message that the texture cannot be found.

I'm slowly losing my mind over this since I have tried so many things. Apparently when some things have a _ in their name the texture also just stays blank and when I remove it it starts working again for the texture alone.

Do we have anyone here who could please please show me how this works or tell me what the steps are.

Here are the steps I took.

  • Create a simple model in Blender
  • Giving it a UV model/texture
  • Exporting it via the Source Tool plugin
  • creating the QC-File and moving both onto the Studiomdl.BAT-file to create the model for Blender
  • Save the UV-thing as png
  • Open the png in VTF-Editor and save as VTF
  • Create a VMT File refering to the VTF file and put them inside a subfolder in the materials folder
  • Opening hammer or hlmv tool and check if the texture is applied
  • Losing my mind since yet another attempt did not work out. :C


"C:\Program Files (x86)\Steam\SteamApps\common\Garrys Mod\bin\studiomdl" -nop4 -game "C:\Program Files (x86)\Steam\SteamApps\common\Garrys Mod\Gmod" %1

QC file:

$modelname Varmints_Models/pumpkin1.mdl
$model "Body" "pumpkin1.smd"

$cdmaterials "models/Varmints_Models/"
$surfaceprop "pumpkin1"

$sequence "idle" "pumpkin1.smd"
$collisionmodel "pumpkin1.smd" { $concave }

VMT File Code:

  $basetexture "Varmints_Models/Pumpkin1"
  • 1
    $\begingroup$ Looks like this is more of a question for a hammer forum than a blender one since you seem to be able to export your texture just fine. There should be a way in hammer to assign the texture to your object and set the projection to UV. $\endgroup$
    – globglob
    Nov 25, 2019 at 16:00
  • $\begingroup$ @ArthurBlaquart yeah I know it's more for a hammer forum but I also must admit that the Stackexchange community also usually found a solution or at least know something helpful :) But thank you for trying. If I find the solution I will try to remember to put it in here $\endgroup$
    – VarmintLP
    Nov 25, 2019 at 21:00
  • $\begingroup$ @VarmintLP Did you find a solution? Thanks $\endgroup$ May 23, 2020 at 7:39
  • $\begingroup$ @MikedeKlerkyes I actually did. $\endgroup$
    – VarmintLP
    May 24, 2020 at 8:11

1 Answer 1


Solved the problem. It was a basic issue related to the texture being in the wrong path.

Here a video / Highlight I made from a past stream. So feel free to watch.

Youtube Link

It was mostly on the fly and serves as a reminder for me and others in case someone needs help with this. I might do a more detailed video on this.

  • 1
    $\begingroup$ It's very good that you remembered your old question and came back to add an answer yourself, to help others, but just linking a youtube video... is not a good answer for this site's rules. Try describing at least a bit your solution in words, add some image to better help others to learn from your effort, they will thank you later, and you will be proud to have shared your findings! $\endgroup$
    – m.ardito
    May 24, 2020 at 9:25
  • 1
    $\begingroup$ Well someone commented on the initial post and reminded me of this thread. However I must admit I did that rough video in the past when I found out as it was me who recorded it. Also right now I don't actually remember all the steps. And it also was easier for me this was as I am currently busy with work and can't find the time nor motivation to do a more detailed version. I might update this in the futur with a better video. $\endgroup$
    – VarmintLP
    May 25, 2020 at 10:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .