Re: Custom textures for an HL2 Mod
Posted by fishy on
Wed Apr 27th 2005 at 1:47pm
fishy
member
2623 posts
1476 snarkmarks
Registered:
Sep 7th 2003
Location: glasgow
i just drag and drop my .tga images instead of making a big shortcut. but i drop them onto VTEX.exe to do it, not VMEX.exe. so if that isn't a typo, maybe that's where you went wrong.
Re: Custom textures for an HL2 Mod
Posted by Leperous on
Wed Apr 27th 2005 at 1:55pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
VMEX is a map decompiler, VTEX is the program you want. As fishy said, you can just drag and drop your .TGA image onto the VTEX icon (you'll need two explorer windows open to do this). This will create a .VTF for you, and then you'll need to make your own .VMT with notepad or something (to see what to do, just open up the Source materials GCF, and see what values they use).
Re: Custom textures for an HL2 Mod
Posted by ReNo on
Wed Apr 27th 2005 at 2:20pm
ReNo
member
5457 posts
1991 snarkmarks
Registered:
Aug 22nd 2001
Occupation: Level Designer
Location: Scotland
You can create shortcuts to VTEX and change the command line a little
in order to make it automatically generate simple VMT's for you as
well. For example...
For a simple WORLD texture (eg. one you use on brushes in hammer), my shortcut looks like this...
C:\Valve\Steam\SteamApps\reno84\sourcesdk\bin\vtex.exe -shader LightmappedGeneric
For a simple MODEL texture (eg. one you use on props or characters), my shortcut looks like this...
C:\Valve\Steam\SteamApps\reno84\sourcesdk\bin\vtex.exe -shader VertexLitGeneric -vmtparam "$model" "1"
Label these shortcuts appropriately (eg. "vtex.exe (basic world
texture)" and "vtex.exe (basic model texture)") and then just drag your
TGA's onto the appropriate shortcut to have it generate both a VTF and
VMT. You can then tweak the VMT easily to change envmap settings,
normal maps, and what have you.
Re: Custom textures for an HL2 Mod
Posted by Dark Tree on
Wed Apr 27th 2005 at 2:21pm
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
I was all screwed up.
first off....VMEX was a typ-o. I meant to say VTEX.
second....I was shortcutting to vtfexplorer.exe......not VTEX (don't ask).....
third.....Every time a tut reffered to vtex.exe....for some reason I thought they were referring to vtfexplorer.exe, for some reason.
Anyway, Fishy, Lep, (edit: and ReNo) you guys are lifesavers....dunno how to thank you enough. :smile:
double edit:
I only usually post a prob here as last resort when all else searching and googling has failed.....thus my long ranting problem posts contrived of possibly untranslateable problem text. I try to be more helpful than always questionative....maybe someday.