#What could possibly be the issue of VMTs not being found?

1 messages · Page 1 of 1 (latest)

jagged sparrow
#

I have made sure that the VMTs and VTFs of a model I made have the same name as the materials I used in Blender.

QC File

$modelname "scythe.mdl"
$body scythe "scythe.smd"
$cdmaterials "materials/"
$sequence idle "scythe.smd" 

The qc file is located in the scythe directory.

SMD is below

#

I'm using Crowbar to compile the mdl from smd I exported from Blender to ultimately make a SWEP

magic goblet
#

make sure the materials in blender have the same name as the materials in the files

celest ermine
#

your $cdmaterials path is currently pointing to <youraddon>\materials\materials\Handle.vmt

jagged sparrow
#

i haven't put it in an addon folder yet

celest ermine
#

so GarrysMod\garrysmod\materials\materials\Handle.vmt

#

$cdmaterials begins relative to the materials folder

jagged sparrow
#

this is there qc is

celest ermine
#

...

#

materials... don't get compiled onto the model

#

the model only has paths telling the game where to look for the materials

#

i mean, technically so does the .mdl file with its vertex/sequence files, etc, but whatever.

#

you'll need to put your vmt/vtf files in the game folder (or a folder you have mounted with mount.cfg)

jagged sparrow
# celest ermine you'll need to put your vmt/vtf files in the game folder (or a folder you have m...

alright so i actually haven't gotten around to making the addon just yet, I just want to get the model working. I was following this tutorial here https://www.youtube.com/watch?v=MGirKYjgaF8

#sfm #steam #tutorial

How to get 3d character models from blender into your source SDK game or project.

BLENDER SOURCE TOOLS PLUGIN:
http://steamreview.org/BlenderSourceTools/

tutorialMan.qc
// Generated by me
$modelname "myName\tutorialMan\tutorialMan.mdl"
$body tutorialMan "tutorialMan.smd"
$cdmaterials "models\myName\tutorialMan"
$sequen...

▶ Play video
celest ermine
#

yeah, the tutorial tells you to copy the vmt/vtf files to the game folder

#

or, actually it doesn't

#

it just says "now that we have the folders setup lets add materials/textures"

#

and then skips over actually copying the files over

jagged sparrow
#

it is partially textured wtf?

#

what it is supposed to look like

jagged sparrow
#

still having issues

celest ermine
#

can you verify that you’ve either moved the files there, or changed your cdmaterials path?

#

also, paste your vmt’s contents in the chat

jagged sparrow
#

i've changed the model a by baking all the materials into one image so it now uses one material instead of 3 and the directory to the addons folder

scythe.vmt

"VertexLitGeneric"
{
 "$basetexture" "scythe"
}

scythe.qc

$modelname "scythe.mdl"
$cdmaterials "textures\"
$body scythe "scythe.smd"
$sequence idle "scythe.smd"
celest ermine
#

So looking at your $cdmaterials, you are telling the game to look for scythe.vmt in garrysmod/materials/textures/

#

And the vmt is referring to garrysmod/materials/scythe.vtf

jagged sparrow
#

so it should be addons/morose/textures/

celest ermine
#

No.

#

Textures is not a valid source engine content folder

#

Cdmaterials and vmt Base textures are relative to /game/materials

jagged sparrow
#

so it is relative to the garrysmod directory?

celest ermine
#

Either garrysmod or your addon name, yes. It is mounted the same way in the virtual file system.