[Solved] Texture Location

Avatar
iSpectra
49 Posts
Posted Dec 31, 2012
Hi,

I'm searching the save location for textures to paste my custom textures in. I'm using Hammer included in the Portal 2 Authoring Tools.

I saw a lot of tutorials regarding custom textures, but none of these, not even one takes the time to show people where these textures are being saved.

Best Regards,
iSpectra

Advertisement
Registered users don’t see ads! Register now!
Avatar
Sprowl
97 Posts
Posted Dec 31, 2012
Replied 32 minutes later
You have to copy new textures into your materials folder (steam/steamapps/common/portal 2/portal2/materials/). In there you can create your own folders or use existing ones.

Remember that, if you want to publish a map with custsm textures, you have to send them too. For that you can just copy the textures in a zip archive or you can pack it into the mapfile using packrat or fudgepacker.Both porgramms are be a great option if you plan to release your map in the workshop.

Avatar
iSpectra
49 Posts
Posted Dec 31, 2012
Replied 40 minutes later
What file format should it be? And is there a preferred size (I'm currently using 512x512)?
Avatar
Mevious
205 Posts
Posted Dec 31, 2012
Replied 40 minutes later

This tutorial answers every question you've asked so far in this thread.

https://developer.valvesoftware.com/wik ... a_Material

Avatar
Sprowl
97 Posts
Posted Dec 31, 2012
Replied 1 minutes later
The Source Engine uses a combination of two files to create a texture: .vtf and .vtm. Both files together create the material.
A VTF-File is the image itself. It's recommend to have a size that's a power of 2, like 64, 512 or 1024.
VTM-Files are textfiles which include information about the material. The engine reads this files and knows the behaviours of the texture. Like, if it's wooden or is it glass, or if the texture scrolls. There are endless parameters that can be included in this file to create nearly every effect and behaviour you can think of.

To get your image in the desired format, save it first as an targa-file (*.tga). Then import it into VTFEdit and simply save it there. VTFEdit can also create an basic VMT-File for you so you can use it in the game and Hammer, but it doesn't include any special information about the material. Only that much that it works in the game.

There are enough tutorials you can find through Google that show you which steps you need to do. You can find the fastest I've found here.

Avatar
kyubiie
2 Posts
Posted Jan 01, 2013
Replied 12 hours later
Thanks for the tips sir, i'm also having this big question lately...
So i will just follow the steps above...


I am proud of the fact that I the one who invented weapons like combat knife.

Advertisement
Registered users don’t see ads! Register now!
Avatar
iSpectra
49 Posts
Posted Jan 01, 2013
Replied 10 hours later
Thank you Sprowl for your concrete answer. I really appreciate it.