Garry's Mod

Garry's Mod

.357 revolver loaded with batteries [FINALLY FIXED!]
 此主题已被置顶,因此可能具有重要性
Endy  [开发者] 2022 年 2 月 27 日 下午 10:18
How to fix the reflection bug of the skin? [OUTDATED CUZ THE PROBLEM GOT FIXED]
So, people, who have used my addon noticed that model sometimes can be way too shiny, which makes seeing the batteries and the model itself very hard and doesn't look good at all. If someone knows how to fix that bug please tell me. I'm new to creating material replacements for Garry's Mod, so I don't know much
最后由 Endy 编辑于; 2022 年 9 月 13 日 上午 2:21
< >
正在显示第 1 - 7 条,共 7 条留言
JeloJam 2022 年 3 月 1 日 下午 11:29 
Took a peek into your texture and compared it to the default one. From the looks of it, the texture lacks an alpha channel, which just so happens to be the specular map (judging from the use of $basealphaenvmapmask in the .357 revolver's .vmt file)...
Endy  [开发者] 2022 年 3 月 1 日 下午 11:49 
引用自 JeloJam
Took a peek into your texture and compared it to the default one. From the looks of it, the texture lacks an alpha channel, which just so happens to be the specular map (judging from the use of $basealphaenvmapmask in the .357 revolver's .vmt file)...
So, how do I fix this?
JeloJam 2022 年 3 月 2 日 下午 10:48 
You're gonna have to copy the default texture's alpha channel and paste it into your modified texture as a transparency mask. Well, you're probably gonna have to modify said alpha channel a bit because of the shells, but still.

The instructions on how to do so differ depending on what program you're using. Though do make sure your program has an option to save color values in transparent pixels; otherwise, you'll be getting some black splotches from unsaved color data...

I hope you're using GIMP is what I'm saying. (If only 'coz I'm a bit more familiar with that program than say, Photoshop...)
最后由 JeloJam 编辑于; 2022 年 3 月 2 日 下午 10:51
Endy  [开发者] 2022 年 3 月 3 日 上午 2:43 
引用自 JeloJam
You're gonna have to copy the default texture's alpha channel and paste it into your modified texture as a transparency mask. Well, you're probably gonna have to modify said alpha channel a bit because of the shells, but still.

The instructions on how to do so differ depending on what program you're using. Though do make sure your program has an option to save color values in transparent pixels; otherwise, you'll be getting some black splotches from unsaved color data...

I hope you're using GIMP is what I'm saying. (If only 'coz I'm a bit more familiar with that program than say, Photoshop...)
I'm using Photoshop
JeloJam 2022 年 3 月 3 日 上午 3:34 
I don't have Photoshop, so unfortunately I can't directly help you out; this is something I think you'll have to look up about. Though I hope the little tip I gave you (about alpha channels and transparency masks) still helps. Apologies!
Endy  [开发者] 2022 年 3 月 3 日 上午 6:24 
引用自 JeloJam
I don't have Photoshop, so unfortunately I can't directly help you out; this is something I think you'll have to look up about. Though I hope the little tip I gave you (about alpha channels and transparency masks) still helps. Apologies!
Thanks anyways, man
Snarky 2022 年 4 月 20 日 下午 12:17 
um mat_specular 0?
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50