Adding Custom Textures

Tutorial collection, comprehensive listings on main site.

Postby Nick99 on Wed Mar 22, 2006 2:38 pm

mkdir -shader LightmappedGeneric C:\Valve\Steam\SteamApps\username\sourcesdk_content\cstrike\materialsrc\texturedir\*.tga

Doesn't accept that,please help!
Nick99
Member
Member
 
Joined: Sun Jan 08, 2006 1:45 am

Postby Hemuuuli on Wed Mar 22, 2006 5:08 pm

Nick99 wrote:
mkdir -shader LightmappedGeneric C:\Valve\Steam\SteamApps\username\sourcesdk_content\cstrike\materialsrc\texturedir\*.tga

Doesn't accept that,please help!


Did you made a shortcut and added that after the name of the shortcut?
Hemuuuli
Regular
Regular
 
Joined: Sun Jun 05, 2005 7:57 pm
Location: Finland

Postby doral on Sat Apr 29, 2006 2:23 am

alright... ive made the vmt and vft files... and there in a folder in materials... This is my VMT file...
"LightmappedGeneric"
{
"$basetexture" "bmptexture/bmptexture"
"$decal" 1
"$decalscale" 0.10
"$translucent" 1
}

And it comes out to be pink/black checkerd.... help plz
doral
Dumpling
Dumpling
 
Joined: Sat Apr 29, 2006 2:19 am

Postby slayera on Sat Apr 29, 2006 3:41 am

doral wrote:alright... ive made the vmt and vft files... and there in a folder in materials... This is my VMT file...
"LightmappedGeneric"
{
"$basetexture" "bmptexture/bmptexture"
"$decal" 1
"$decalscale" 0.10
"$translucent" 1
}

And it comes out to be pink/black checkerd.... help plz


Is your texture named bmptexture.vft? Is your folder in materials called bmptexture?
Image


"When one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." -Robert Pirsig
User avatar
slayera
Veteran
Veteran
 
Joined: Wed Dec 08, 2004 3:15 am
Location: Near the world's only super volcano.

Postby doral on Sun Apr 30, 2006 3:03 pm

i saw my mistake... i put bmptexture in the vmt... its bpmtexture... hopefully that works...
doral
Dumpling
Dumpling
 
Joined: Sat Apr 29, 2006 2:19 am

Postby snufflez on Tue Jun 06, 2006 1:25 am

I don't know if this has been posted as I didn't bother to read the whole thing, but steam has to be running for this to work. :P figured you might want to know.
User avatar
snufflez
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Oct 11, 2004 3:08 pm
Location: HoME

Postby Tekspdy on Tue Jan 16, 2007 10:55 am

Having an issue. Made a custom texture, worked fine. However, when you move away from it in Hammer/CS the quality turns to crap. Like it gets fuzzy and black crap appears on it. Does this for every texture I add. Even added in the LOD thing into the text file, still does it... Any ideas? This has nothing too do with my graphics settings BTW in case anyone asks. Other textures look fine. Running a Geforce 7950 so there should not be any issues :P
Tekspdy
Regular
Regular
 
Joined: Sun Jan 14, 2007 2:15 pm

Postby EagleStrike on Sun Mar 25, 2007 2:10 pm

How would I go about converting a .vmt too a .tga. I want too take the cs_office carpet, and make it darker.
As I Walk Through The Valley Of Death, I Will Fear No Evil, Cos I'm The Meanest Fucker In The Valley...
EagleStrike
Pheropod
Pheropod
 
Joined: Sun Dec 03, 2006 7:26 pm
Location: London, England

Postby SlappyBag on Sun Mar 25, 2007 4:43 pm

What I want to know is how to bundle these custom texutres with the .bsp.
User avatar
SlappyBag
Veteran
Veteran
 
Joined: Sun Jun 26, 2005 9:16 am
Location: Brighton, UK

Postby EagleStrike on Mon Mar 26, 2007 5:14 pm

You need too get a bsp2zip compiler, search for it in google, and you should find one easily. I believe there is one within the SDK folders, I remember it being talked about previously in this thread. However, I am now having problems saving as a .tga. I made a texture yesterday, managing too get .tga too come up on the texture list, but now I am trying too create a wall, and I can't see it there!!! Can you think of any reason for this? :cry:
As I Walk Through The Valley Of Death, I Will Fear No Evil, Cos I'm The Meanest Fucker In The Valley...
EagleStrike
Pheropod
Pheropod
 
Joined: Sun Dec 03, 2006 7:26 pm
Location: London, England

Re: Adding Custom Textures

Postby acsam12304 on Fri Apr 25, 2008 5:52 am

I got lost when he got to this part.


"Now comes the hard part although it's not that hard. Go to Valve\Steam\SteamApps\username\sourcesdk\bin\ and you'll find in there a exe called VTEX. Now right click on it and select the "create shortcut" option. This will create a shortcut to that program in which we can add several command options, so open the shortcut properties and in the end of the target field add the following commands:

-mkdir -shader LightmappedGeneric C:\Valve\Steam\SteamApps\username\sourcesdk_content\cstrike\materialsrc\texturedir\*.tga "

can someone give me an exsample with the commands going where it needs to go please. I am so lost,
send me a PM or post it on here please Ill be really grate full.
acsam12304
Member
Member
 
Joined: Wed Apr 23, 2008 10:56 pm

Re: Adding Custom Textures

Postby vcool on Fri Apr 25, 2008 7:41 am

Just ignore that bit, there's an easier way. In your game folder (if it were Episode 2, it would be "steamapps/account/half life 2 episode 2/ep2") create a newfolder called "materialsrc". Place all your TGA files in it. Then open another window, and navigate to "steamapps\account\sourcesdk\bin\orangebox\bin". Make both of the windows small so you can see both. Then select your TGA files, and just move them over and place them onto VTEX. A command prompt will appear. If something doesn't work it will say there. Now your TGA are convereted into VTF, and you can find them in your "steamapps/account/half life 2 episode 2/ep2/materials" folder. Now all that's left to do is a VMT file.

Similarly, if you are doing this for episode 1, then just do the same but instead of using the VTEX in "steamapps\account\sourcesdk\bin\orangebox\bin", use "steamapps\account\sourcesdk\bin\ep1\bin".
User avatar
vcool
Veteran
Veteran
 
Joined: Fri Jun 23, 2006 1:03 am
Location: USSR

Re: Adding Custom Textures

Postby acsam12304 on Fri Apr 25, 2008 2:27 pm

vcool wrote:Just ignore that bit, there's an easier way. In your game folder (if it were Episode 2, it would be "steamapps/account/half life 2 episode 2/ep2") create a newfolder called "materialsrc". Place all your TGA files in it. Then open another window, and navigate to "steamapps\account\sourcesdk\bin\orangebox\bin". Make both of the windows small so you can see both. Then select your TGA files, and just move them over and place them onto VTEX. A command prompt will appear. If something doesn't work it will say there. Now your TGA are convereted into VTF, and you can find them in your "steamapps/account/half life 2 episode 2/ep2/materials" folder. Now all that's left to do is a VMT file.

Similarly, if you are doing this for episode 1, then just do the same but instead of using the VTEX in "steamapps\account\sourcesdk\bin\orangebox\bin", use "steamapps\account\sourcesdk\bin\ep1\bin".


I did all of that but when it ran the VETX, at the end it said my texture is bogus and notthing happen. it made an enpty note pad next to where my texture is at is that normal? adn when I go to Half-Life2\hl2\materials.... notthing is in there about my textrues. ( im doing this for Half-Life 2)

I am running the episode 1 engin.
acsam12304
Member
Member
 
Joined: Wed Apr 23, 2008 10:56 pm

Re: Adding Custom Textures

Postby vcool on Fri Apr 25, 2008 2:33 pm

OK, instead of making a materialsrc folder, go to your "steamapps/account/sourcesdk_content\hl2\materialsrc" and place your TGAs there. Repeat the procedure of dragging the TGAs onto VTEX.

If that still doesn't work, then there is something wrong with the texture.

1) are the sizes powers of 2?
2) Is it a TGA?
3) Have you saved the TGA with RLE compression? If yes, then you must save it without the compression.
User avatar
vcool
Veteran
Veteran
 
Joined: Fri Jun 23, 2006 1:03 am
Location: USSR

Re: Adding Custom Textures

Postby acsam12304 on Fri Apr 25, 2008 2:41 pm

vcool wrote:OK, instead of making a materialsrc folder, go to your "steamapps/account/sourcesdk_content\hl2\materialsrc" and place your TGAs there. Repeat the procedure of dragging the TGAs onto VTEX.

If that still doesn't work, then there is something wrong with the texture.

1) are the sizes powers of 2?
2) Is it a TGA?
3) Have you saved the TGA with RLE compression? If yes, then you must save it without the compression.


ok in photoshop i open up a new file with 512pixs by 512 pixs Re:72
i save it as a TGA. file then it pops a window asking me targa options i save it as 16 bit/pixs and then i save it
acsam12304
Member
Member
 
Joined: Wed Apr 23, 2008 10:56 pm
PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: No registered users