• Garry's Mod Compiled Ported Model Texture problem
    5 replies, posted
Hi facepunch, this is my first post so please excuse me if I screw anything up or get banned So basically, I attempted to port a model from a game into Garry's Mod. So far it was going good, I followed the Valve Developer wiki, converted the textures into VTF, turned the model into a .smd, made the VMT, and the QC. So I compiled it all up and uploaded to the Workshop as a private model for testing. However, when I put out the model, I was greeted with missing textures allover the body. Good news is that the model meshes worked however. I'm not sure what I did wrong, I thought I put the directories in my .qc file and my .VMT. I thought you guys could check it out because this is the modelling section. Here's my .qc file and .VMT files QC [code] $modelname "SCPCB/SCPGuard.mdl" $scale 10 $model "studio" "ref.smd" $cdmaterials "materials\model\guard_diffuse.vmt" $hboxset "default" // Model uses material "materials\model\guard_diffuse.vmt" // Model uses material "materials\model\helmet.vmt" $surfaceprop "player" $illumposition 1.976 -1.162 -1.269 $sequence idle "idle" loop ACT_VM_IDLE 1 fps 30.00 $collisionmodel "ref.smd" { $mass 8.00 $inertia 1.00 $damping 0.00 $rotdamping 0.00 } [/code] 1st VMT "guard_diffuse.vmt" [code] "VertexlitGeneric" { "$basetexture" "materials\model\guard_diffuse" }[/code] 2nd VMT "helmet.vmt" [code] "VertexlitGeneric" { "$basetexture" "materials\model\helmet" }[/code] My VMT and VTF files are in my materials\model\ folders. I don't know what to do, is there something wrong with my formatting? Thanks
The simplest mistake it could be is not properly setting the materials up in the modeling program you're using. You can check this easily: open the .smd in a text editor and make sure the materials are referenced there correctly
If your VMTs and VTFs are in ".../GarrysMod/garrysmod/materials/models/HERE" just change line: [I]$cdmaterials "materials\model\guard_diffuse.vmt"[/I] into: [I]$cdmaterials "model\"[/I]
[QUOTE=LunaSkywalker;50677691]The simplest mistake it could be is not properly setting the materials up in the modeling program you're using. You can check this easily: open the .smd in a text editor and make sure the materials are referenced there correctly[/QUOTE] Should the materials in the smd itself have directories? They use both guard_diffuse.vtf and helmet.vtf which I put both in Garry's Mod/garry's mod/materials/model
[QUOTE=SkullManPL;50678174]If your VMTs and VTFs are in ".../GarrysMod/garrysmod/materials/models/HERE" just change line: [I]$cdmaterials "materials\model\guard_diffuse.vmt"[/I] into: [I]$cdmaterials "model\"[/I][/QUOTE] But what if my materials aren't in in Garrysmod/garrysmod/materials/? I like them to be in my own seperate own folder for uploading, not for my own personal use. Is their anyway to do that?
Then you got to change the path in "$cdmaterials" and then change the vmt files and put them on the designated path from above. e.g. $cdmaterials "models/player/legion/fallout/" Put the files in materials/models/player/legion/fallout/ Change the .vmt files their code to "$basetexture" "models/player/legion/fallout/helmet"
Sorry, you need to Log In to post a reply to this thread.