Custom Texture Created 14 years ago2010-07-21 00:30:14 UTC by satchmo satchmo

Created 14 years ago2010-07-21 00:30:14 UTC by satchmo satchmo

Posted 14 years ago2010-07-21 00:30:14 UTC Post #283285
I know this has to be pretty simple, but I have not done it before.

How do I convert a JPG image into texture so I can include it in a map?

Thanks in advance.
satchmo satchmo“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. -- Samuel Beckett”
Posted 14 years ago2010-07-21 01:24:35 UTC Post #283286
1. get vtfedit.
2. resise your native texture. (i always make them square but i don't think you have to?)
3.Check out this thread by habboi.
Captain Terror Captain Terrorwhen a man loves a woman
Posted 14 years ago2010-07-21 02:00:17 UTC Post #283287
You can use VTFEdit, which is pretty handy, but I'm an old skooler, and use the command line programs manually. There are tons of guides on the internet, including the VDC, detailing the process of creating custom materials. Check them out some time; there are some pretty awesome things you can do with all the sexy shaders and effects Source has to offer.

All you need to keep in mind for this task is that for a texture to compile successfully, it needs to be a .TGA image whose dimensions are some power of two. That doesn't mean the texture needs to be square; you can have a texture that's 512 x 512, 512 x 1024, or even 2048 x 2, if you want. When saving the .TGA in, for example, Photoshop, an 8 bits/pixel image is gray-scale, a 24 bits/pixel image is in color, and a 32 bits/pixel image is in color and includes the alpha channel. For your purposes, the 24 bits/pixel variant is what you'd want to pick.

If you have trouble, let us know!
Posted 14 years ago2010-07-21 02:27:03 UTC Post #283290
I use a photoshop plugin for this, but I really wanted to use VTFedit too. It doesn't work for me... Or I don't know how it works! All I can do is open vmt and vtf files with it, and edit vmt files. It doesn't let me import TGAs...
Striker StrikerI forgot to check the oil pressure
Posted 14 years ago2010-07-22 12:11:31 UTC Post #283326
Thanks. It worked beautifully.

VTFEdit is extremely easy to use. I don't even have to convert the image to a TGA file or resize it. I can throw it any JPG or BMP with any dimension, and it will automatically resize it and convert it into a VTF. It even generates the VMT automatically.

It couldn't be simpler.
satchmo satchmo“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. -- Samuel Beckett”
Posted 14 years ago2010-07-22 16:03:56 UTC Post #283330
Wow, that is pretty simple.

For some reason, I just can't bring myself to use VTFEdit on any regular basis. I guess I just like seeing what's going on with all the files I'm compiling. I should probably get over that and avoid future headaches. :D

Glad to know things worked out, in any case. It's really handy to familiarize yourself with how to work custom materials into Source. New textures can bring some real spice to an old game.
You must be logged in to post a response.