how to import textures to sdk? Created 17 years ago2007-07-05 17:38:38 UTC by Snusmumrikken Snusmumrikken

Created 17 years ago2007-07-05 17:38:38 UTC by Snusmumrikken Snusmumrikken

Posted 17 years ago2007-07-05 17:38:38 UTC Post #227511
if i got a image of some piece of wood ( http://www.noctua-graphics.de/images/download/tex/wood/planks01.jpg )
and i saved it in "my pics" then how can i get them on brushes in sdk?

btw, didnt understand anything of that import texture tutorial...

:D
Posted 17 years ago2007-07-05 18:49:29 UTC Post #227515
Well here is my tutorial which has helped a few people:
YAY I got custom textures to finally work in HL2 etc:

I misread the guide at the end where it said convert to .vmt so thats why it didn't work :S

I explained this to another guy and I wrote this as to how to do it!

Get your .jpg, use Irfanview to convert it to .tga, make a folder called mytexes in this place

C:Program FilesValveSteamSteamAppshabboicounte
r-strike sourcecstrikematerialsmytexes

and here as well:

C:Program FilesValveSteamSteamAppshabboisource
sdk_contentcstrikematerialsrcmytexes

ok now you have the .tga so right click vtex.exe and send it to desktop, now open up the place where the .tga is and drag it onto the desktop as well.

then again drag it onto vtex.exe and a black box should appear, if successful it will say something like:

input, output directory blah blah and then press any key to continue

you should end up with a .vtf in the folder called mytexes and also an empty .txt

open up the .txt and write:

"LightmappedGeneric"

{ "$basetexture" "yourfoldername/yourtexname" }

(exactly as I have written it but in place of folder name put mytexes and your texname put fence1.

ok nearly done, save as and rename it

to fence1.vmt and copy this new .vmt to the two folder called mytexes in the css materials folder and the sdk one as well!

Ok thats basically it so start hammer, go to browser and type the name of the texture and if it comes up then you are successful!

Make a quick map and it should hopefully work!

Thats it and I found it very useful
Habboi HabboiSticky White Love Glue
Posted 17 years ago2007-07-06 14:17:23 UTC Post #227606
tnx, but where do i find "vtex.exe"?

i used the stuff in "C:Program FilesSteamSteamAppsjoka91sourcesdkbin"

and when i got it on the deskop i dragged the tga file in it and got the black box and pressed a key to continue, but i didnt get up a txt file...

?
Posted 17 years ago2007-07-06 14:31:15 UTC Post #227609
vtex.exe is in the bin folder of sourcesdk along with all the other compiling exes. The txt file should be placed along with the vtf file in the materials folder of your mod.
Posted 17 years ago2007-07-06 19:20:49 UTC Post #227642
ive converted all images to .tga now and put them in both "mytexes" folders, but there im stuck.
i cant get the vtex to work, and btw i only find "vtex" and not "vtex.exe"
Posted 17 years ago2007-07-07 07:58:20 UTC Post #227695
VTEX is .exe...Surely you know that exe just means executable program.

Anyway ok I can help you out a little. So with mytexes in both places depending on the game you want. Shall we do it for Half Life 2 for now.

So you should have a mytextes here:

C:program filesvalvesteamsteamappshabboihalf-life 2hl2materialsmytexes

and

C:program filesvalvesteamsteamappshabboisourcesdk_contenthl2materialsrcmytexes

Just so you know the HL2 one is for the game to find your texture and the SDK one is for Hammer to find it.

Ok so with an empty mytexes folder in those two places you must place the .TGA in the SDK mytexes folder. Then if you want you can drag the .TGA onto VTEX and if it went ok (the black box will say positive comments) then press any key and check both mytexes folders. Just so you know it helps if the SDK is set to the game you want or these files will be made in the game selected in the SDK list aka CSS, DM etc...So if the files don't appear you can look in the other game folders.

You should see .vtf in one and .txt in another. With the .txt you must put this inside it:

"LightmappedGeneric"

{ "$basetexture" "yourfoldername/yourtexname" }

So say the texture was called habboi I would put:

"LightmappedGeneric"

{ "$basetexture" "mytexes/habboi" }

Exactly like that.

Ok now if you have your Windows set to allowing renaming files then you must rename the .txt to .vmt - If you don't have the rights it wont change and instead will show .txt.vmt

Ok so now copy all the files, .TGA, VMT, VTF and paste in both folders. You don't need the TGA after that but I keep them in there in case I need to replace the texture later on.

If you need help then you can add me on MSN.
Habboi HabboiSticky White Love Glue
Posted 17 years ago2007-07-07 12:18:23 UTC Post #227774
when i drag the .Tga image over the vtex i get the black box and i get a vtf file in the other folder, but i only get a wordpad file, and its named "mytexes" only, and when i put in the text and name it "mytexes.vmt" nothing happens...
so how do i change the wordpad file to .vmt?
Posted 17 years ago2007-07-07 14:07:47 UTC Post #227799
You must enable altering of file extensions. To do this, open any file folder and in the top bar menu, go to Tools > Folder Options. In the window that appears, swap over to the "View" tab, and uncheck the "Hide extensions for known file types." Then apply that and close out. When you rename a file, now, you should be able to rewrite the extension from .TXT to .VMT.
Posted 17 years ago2007-07-07 14:35:44 UTC Post #227800
tnx, but i cant change it properly, it only says .vmt.txt....
Posted 17 years ago2007-07-07 15:47:48 UTC Post #227805
You actually have to change a setting in your Windows thing...Damnit I always forget how and ask Seventh Monkey but he is never around.

Google saved me:
* Double-click My Computer
* Choose Tools, Folder Options from the menu bar of the "My Computer"          window.
* Click the View tab
* Scroll down a bit and remove the check mark next to "Hide extensions for known file types" as shown below.
* Under "HIdden files and folders" click "Show hidden files and folders"
* Make sure the other options are set the way you want them for all folders on you computer
* Click OK
Habboi HabboiSticky White Love Glue
Posted 17 years ago2007-07-07 16:50:35 UTC Post #227815
Yay it worked!!! thank you:D
You must be logged in to post a response.