Installer Steam
Logg inn
|
språk
简体中文 (forenklet kinesisk)
繁體中文 (tradisjonell kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tsjekkisk)
Dansk (dansk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spania)
Español – Latinoamérica (spansk – Latin-Amerika)
Ελληνικά (gresk)
Français (fransk)
Italiano (italiensk)
Bahasa Indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (nederlandsk)
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasil)
Română (rumensk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (vietnamesisk)
Українська (ukrainsk)
Rapporter et problem med oversettelse
As the name implies, alpha channels are almost always used to control the transparency of a texture (hence "Alpha"). However, the source engine can use the alpha channel as a grayscale map for various things other than transparency (such as a phongmask, a selfillum mask, etc.). I'm assuming the transparency you are seeing is in Blender, right? If so, you can just ignore it-- this won't affect your model when you compile it in-game (btw, making weapons isn't exactly the best thing to do. Valve hardly ever adds weapons. We just got new ones, but that was the first time in a year they added weapons).
I can't recall how to disable blender from using the alpha channel as a transparency value because I never use that feature (I know that it does, but I've never seen this happen without actually activating transparency).
Weapon textures can have alpha channels. You can specify what the alpha channel will do in the .vmt file (for weapons you'll have to create the vmt manually since the in-game importer doesn't allow for weapons).
You said you wanted to use the alpha channel as a phong mask, so in your .vmt file, you should have the following lines:
You can further control this with other lines in the vmt file such as the following:
Anything black in the alpha channel will make that part of the model look dull, and anything white will appear shiny (with intermediate shininess being gray).
I understand that valve doesn't add weapons very often. Which is kind of sad since I usually see a few great weapon ideas in the workshop that dont get added. Anyway I was just making this weapon more for the experience and for getting through the learning curve of actually creating an item for the game. The next project I plan to do is a hat. So hopefully I will have better luck getting that accepted in game.
I also just want to say thanks for your tutorials. They have been an enormous help. I knew nothimg about 3D modeling and texturing before I watched your videos. For some reseason they sparked an interest in me to learn more about 3D modeling. Now I feel very comfortable modeling in blender and somewhat comfortable in photoshop. I learn more everyday and I just want to say thanks for getting me started. It has turned into a fun hobby, maybe even more some day.