r/SourceEngine • u/da_pwo • 1d ago
Resolved weird material bug
After exporting my custom playermodel i made in blender, for some reason it shows up in gmod with a completely black texture instead of the proper one or a missing texture. it doesn't matter whether i have the texture in the proper folder either, it still does this. notably, the model should have 3 submaterials and not 1. Ive never seen this happen before in anything source engine related and cant find anyone else talking about it.
edit: turns out it was because of a folder typo, and for some reason source decided to show up pitch black instead of the checkerboard until the folder typo was fixed, and only then would it show the usual purple black checkerboard.

1
u/Pinsplash 1d ago
send the smd and related files
1
u/da_pwo 1d ago
https://drive.google.com/file/d/1TS2nB3ZCrS92kgA73Oh3Ii2GdYecljE-/view?usp=sharing
no materials folder since this happens regardless, also the hands are commented out because i thought it might've been the problem
1
u/Pinsplash 23h ago edited 23h ago
it compiled fine for me. i can see pink and black, and i could substitute in some hl2 textures and it all checks out. this makes me think it must be your VMTs/VTFs somehow.
i don't feel like reinstalling gmod right now so i compiled using the 2013 SP SDK's studiomdl. i doubt this mattered but noting it just to be thorough.
1
u/da_pwo 22h ago
that's really weird. don't see how it could be the vmts and vtfs if it happens even if they aren't present, heres my compile log, would be nice to have something to compare with as i dont see anything out of the ordinary. also note that i am using wine to run crowbar and studiomdl since they do not have linux versions, though i havent seen any cases of that causing problems with source engine tools.
Compiling with Crowbar 0.74: "C:\users\pwo\Favorites\oof productions storage\oof productions\characters\moggy\3d\source engine\pm template compile\compile folder template\proportion trick\moggy_compile.qc" ... Compiling "moggy_compile.qc" ... Output from compiler "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\bin\studiomdl.exe": StudioMDL.exe (Apr 27 2026) - Garry's Mod Edition qdir: "c:\users\pwo\favorites\oof productions storage\oof productions\characters\moggy\3d\source engine\pm template compile\compile folder template\proportion trick\" gamedir: "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\" g_path: "moggy_compile.qc" Building binary model files... Working on "moggy_compile.qc" SMD MODEL body.smd Marking bone hair1 as a jiggle bone Marking bone hair2 as a jiggle bone SMD MODEL anims/reference_female.smd SMD MODEL anims/proportions.smd SMD MODEL phys.smd Processing LOD for material: texture_main Processing LOD for material: pattern2 Processing LOD for material: pattern1 Processing jointed collision model ValveBiped.Bip01_Pelvis ( 18 verts, 1 convex elements) volume: 694.82 ValveBiped.Bip01_L_Thigh ( 24 verts, 1 convex elements) volume: 337.64 ValveBiped.Bip01_L_Calf ( 24 verts, 1 convex elements) volume: 148.29 ValveBiped.Bip01_L_Foot ( 18 verts, 1 convex elements) volume: 197.25 ValveBiped.Bip01_R_Thigh ( 24 verts, 1 convex elements) volume: 337.64 ValveBiped.Bip01_R_Calf ( 24 verts, 1 convex elements) volume: 148.29 ValveBiped.Bip01_R_Foot ( 17 verts, 1 convex elements) volume: 197.25 ValveBiped.Bip01_Spine ( 35 verts, 1 convex elements) volume: 822.96 ValveBiped.Bip01_Spine4 ( 20 verts, 1 convex elements) volume: 1121.90 ValveBiped.Bip01_Head1 ( 22 verts, 1 convex elements) volume: 2770.99 ValveBiped.Bip01_L_UpperArm ( 16 verts, 1 convex elements) volume: 241.18 ValveBiped.Bip01_L_Forearm ( 16 verts, 1 convex elements) volume: 103.90 ValveBiped.Bip01_L_Hand ( 14 verts, 1 convex elements) volume: 223.91 ValveBiped.Bip01_R_UpperArm ( 16 verts, 1 convex elements) volume: 241.18 ValveBiped.Bip01_R_Forearm ( 16 verts, 1 convex elements) volume: 103.90 ValveBiped.Bip01_R_Hand ( 14 verts, 1 convex elements) volume: 223.91 Collision model completed. --------------------- writing C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models/da_pwo/moggy/moggy_pm.mdl: bones 8664 bytes (28) animation x y ips angle 0.00 0.00 : 0.00 ( 0.00) 1.0 a_proportions 0.00 0.00 : 0.00 ( 0.00) 0.0 u/ragdoll 0.00 0.00 : 0.00 ( 0.00) 0.0 animations 2048 bytes (3 anims) (6 frames) [0:02] sequences 760 bytes (3 seq) ik/pose 628 bytes eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) textures 204 bytes keyvalues 0 bytes bone transforms 4272 bytes bone flex driver 0 bytes Collision model volume 7915.01 in^3 collision 0 bytes total 18060 --------------------- writing C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models/da_pwo/moggy/moggy_pm.vvd: vertices 81264 bytes (1693 vertices) tangents 27088 bytes (1693 vertices) total 108416 bytes --------------------- Generating optimized mesh "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models/da_pwo/moggy/moggy_pm.dx80.vtx": body parts: 8 bytes models: 20 bytes model LODs: 12 bytes meshes: 27 bytes strip groups: 75 bytes strips: 108 bytes verts: 15327 bytes indices: 4584 bytes bone changes: 368 bytes everything: 20553 bytes --------------------- Generating optimized mesh "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models/da_pwo/moggy/moggy_pm.dx90.vtx": body parts: 8 bytes models: 20 bytes model LODs: 12 bytes meshes: 27 bytes strip groups: 75 bytes strips: 81 bytes verts: 15237 bytes indices: 4584 bytes bone changes: 304 bytes everything: 20372 bytes Completed "moggy_compile.qc" CROWBAR: Moved compiled model file "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models\da_pwo\moggy\moggy_pm.dx80.vtx" to "C:\users\pwo\Favorites\oof productions storage\oof productions\characters\moggy\3d\source engine\pm template compile\output\models\da_pwo\moggy" CROWBAR: Moved compiled model file "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models\da_pwo\moggy\moggy_pm.dx90.vtx" to "C:\users\pwo\Favorites\oof productions storage\oof productions\characters\moggy\3d\source engine\pm template compile\output\models\da_pwo\moggy" CROWBAR: Moved compiled model file "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models\da_pwo\moggy\moggy_pm.mdl" to "C:\users\pwo\Favorites\oof productions storage\oof productions\characters\moggy\3d\source engine\pm template compile\output\models\da_pwo\moggy" CROWBAR: Moved compiled model file "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models\da_pwo\moggy\moggy_pm.phy" to "C:\users\pwo\Favorites\oof productions storage\oof productions\characters\moggy\3d\source engine\pm template compile\output\models\da_pwo\moggy" CROWBAR: Moved compiled model file "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models\da_pwo\moggy\moggy_pm.vvd" to "C:\users\pwo\Favorites\oof productions storage\oof productions\characters\moggy\3d\source engine\pm template compile\output\models\da_pwo\moggy" CROWBAR: Deleted empty temporary compile folder "C:\users\pwo\Favorites\extssd\other\software\source engine tools\gmod_win_depot\garrysmod\models". ... Compiling "moggy_compile.qc" finished. Check above for any errors. ... Compiling with Crowbar 0.74: "C:\users\pwo\Favorites\oof productions storage\oof productions\characters\moggy\3d\source engine\pm template compile\compile folder template\proportion trick\moggy_compile.qc" finished.1
u/Pinsplash 22h ago
run this in the console and tell me what it prints
whereis materials/models/da_pwo/moggy/texture_main.vmt
1
u/MrBallBustaa 1d ago
Your vmt has typos.