• Model materials not loading in.
    5 replies, posted
(No idea where the fuck this is ment to be so just putting it here) To summerise my situation: I made an ATM model, fair enough, once ported from Blender into gmod, works fine. Added the materials, they don't work. Everything from what I can see looks correct, no idea what the issue is. (Spam warning) Models QC: $modelname "livaco/gatm/livaco_gatm_frame.mdl" $scale 25 $body 1 "gatm_atm_frame.smd" $cdmaterials "livaco/gatm/" $surfaceprop "metal" $contents "solid" $sequence "idle" "anims/gatm_atm_frame_idle.smd" { fps 1 } $collisionmodel "gatm_atm_frame_phys.smd" { $automass $inertia 1 $damping 0 $rotdamping 0 $concave } Material's VMT: "VertexLitGeneric" { "$basetexture" "livaco/gatm/livaco_atm_frame" "$surfaceprop" "concrete" } Addon file structure: https://files.facepunch.com/forum/upload/112953/632022e0-5716-4d07-a605-cf4c2912ae78/image.png Look in blender: https://files.facepunch.com/forum/upload/112953/a6528c78-8632-4667-bdb4-06d4bd7a6ffe/image.png Look in game: https://files.facepunch.com/forum/upload/112953/e564ccce-5f9f-44d1-a4e4-d8f5fb1cb28a/image.png If you need anything else just ask. Thanks!
If I'm not mistaken you put model materials under materials/models/<your path> Either thats a requirement or just something everyone does because it's better to keep things sorted I don't know. I just make sure all my model materials are under materials/models but that is my best guess.
Are you sure the texture name in blender is livaco_atm_frame?
Tryed it, didn't make any diffrence it seems. https://files.facepunch.com/forum/upload/112953/b803f54e-1994-49e7-9732-47ce9041059c/image.png Triple positive.
Make sure your vtf is in the proper place next to the .vmt, make sure the .vtf is working properly. Make sure that .vmt/.vtf is not in any other addon/base game/mounted game. Check the console for any errors regarding your material. You can try opening the .smd and see if the texture there is correct.
Did a little bit of mucking about with the files and got it working. Turns out the plugin im using renames all the materials in blender to just "Material". I'l have to see if i can fix that, but thank you anyways!
Sorry, you need to Log In to post a reply to this thread.