Black/transparent Hammer model browser background fix

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
I see this come up every once in a while and I realised that not everyone knows that this is fixable.

Before:

0lerqfw.png


After:

p5PDNjM.png


All you have to do is open Team Fortress 2/platform/resource/sourceschemebase.res in the text editor of your choice, find Panel.BgColor (should be around line 124), and change the Blank to something else defined in the ///////COLORS/////// section at the top of the file (you can also add your own color; the numbers are RGBA). I use AchievementsDarkGray, as seen in the above image.

Note: Panel.BgColor also defines the color of a game's console, so setting it to 255 0 0 255 will also make your console red. As far as I know there is no way to change the model browser color without changing the console color.

EDIT 2017-08-08: Apparently Valve moved a bunch of files from /platform/resource to a .vpk, and since this isn't in /tf you can't just place the new file in tf/custom and have it work; I'm looking for a workaround but there may not be one ¯\_(ツ)_/¯
 
Last edited:

iiboharz

eternally tired
aa
Nov 5, 2014
857
1,291
holy mother of god

thank you.

edit: wait a sec, I just did exactly this, no result.

is there some other step? i'm 100% sure i did it completely right.
 
Last edited:

henke37

aa
Sep 23, 2011
2,075
515
This is going to get wiped the next time you validate the cache right?
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
holy mother of god

thank you.

edit: wait a sec, I just did exactly this, no result.

is there some other step? i'm 100% sure i did it completely right.

This doesn't seem to work for some people; I know stega couldn't fix it either, even after I sent him my sourcescheme.res. I have no idea what could cause this, however :C

This is going to get wiped the next time you validate the cache right?

I think so
 

iiboharz

eternally tired
aa
Nov 5, 2014
857
1,291
This doesn't seem to work for some people; I know stega couldn't fix it either, even after I sent him my sourcescheme.res. I have no idea what could cause this, however :C



I think so

Oh well :C - it'll be helpful for someone.
 
Apr 14, 2013
663
343
Thanks a lot man! I have no idea how you discovered this but it's a great temporary solution!
Any chance Valve'll fix it if we nag them enough?

And after checking it out, apparently you can select your OWN color!
Here's how I did this:

1) Open hammer, make a light entity and select the color field, select the wanted color, and copy it's rgb properties (first 3 numbers) (for example: mine is dark green, being "0 20 0"

2) In the ///////colors/////// section of the sourceschemebase.res file, paste your 3 numbers and add 255 after them, to select it being 100% opaque (I think?), all in quotations. In front of it, put your color's name (What ever name you can come up with, it really doesn't matter) in quotations.
"YourColorName" "r g b 255"
Mine is, for example,
"TakaGreen" "0 20 0 255"

3) Open hammer's model browser to check out if it's good
4) Repeat stages 1-3 until satisfied.
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
Panel.BgColor isn't used only in the modelviewer, it sets the color for several Source app elements, including console color. Thanks for reminding me, I'll put that in the OP.
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
540
I put this issue forward, hopefully they will fix it soon enough. I cannot get the fix to work either no matter what i change the values for.
 

Shogun

L6: Sharp Member
Jan 31, 2014
260
220
Just out of curiosity, Does anyone know if this would this work for the CSGO SDK too? A lot of the models in the model browser have this same issue.
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
I can't get csgo sdk to launch because valve, but it should (as long as you edit csgo's file).
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
Anybody knows the file that does the same in the SFM model browser? It's fixed in Hammer, but not in SFM, and the sourceschemebase.res file isn't present anywhere in the SFM folder.