material problem

I have a problem with the material of a model. gmod for some reason can not find the material, but in qc path is right! it is possible that the problem is the fact that the model has 3 material?

QC:

$cd “C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\models\orks”
$surfaceprop “flesh”
$modelname “orks/Mekboy.mdl”
$cdmaterials “orks”

// Model uses material “loota_leader_body”
// Model uses material “loota_leader_armour_epic”
// Model uses material “loota_leader”

$ambientboost
$mostlyopaque

$model studio “Mekboyreference.smd”
$sequence ragdoll “Mekboyragdoll.smd” FPS 30 activity ACT_DIERAGDOLL 1
$collisionjoints “Mekboyphymodel.smd” {

$mass 60.0
$inertia 10.00
$damping 0.01
$rotdamping 1.50
$rootbone "pelvis"


$jointconstrain "spine1" x limit -70.00 70.00 0.00
$jointconstrain "spine1" y limit -45.00 45.00 0.00
$jointconstrain "spine1" z limit -30.00 30.00 0.00

$jointconstrain "r upperarm" x limit -60.00 60.00 0.00
$jointconstrain "r upperarm" y limit -130.00 115.00 0.00
$jointconstrain "r upperarm" z limit -120.00 35.00 0.00

$jointconstrain "l upperarm" x limit -60.00 60.00 0.00
$jointconstrain "l upperarm" y limit -115.00 130.00 0.00
$jointconstrain "l upperarm" z limit -30.00 140.00 0.00

$jointconstrain "l forearm" x limit -35.00 35.00 0.00
$jointconstrain "l forearm" y limit -145.00 30.00 0.00
$jointconstrain "l forearm" z limit -25.00 25.00 0.00

$jointconstrain "l hand" x limit -60.00 60.00 0.00
$jointconstrain "l hand" y limit -60.00 60.00 0.00
$jointconstrain "l hand" z limit -60.00 60.00 0.00

$jointconstrain "r forearm" x limit -35.00 35.00 0.00
$jointconstrain "r forearm" y limit -145.00 30.00 0.00
$jointconstrain "r forearm" z limit -25.00 25.00 0.00

$jointconstrain "head" x limit -70.00 70.00 0.00
$jointconstrain "head" y limit -45.00 40.00 0.00
$jointconstrain "head" z limit -35.00 35.00 0.00

$jointconstrain "r hand" x limit -60.00 60.00 0.00
$jointconstrain "r hand" y limit -60.00 60.00 0.00
$jointconstrain "r hand" z limit -60.00 60.00 0.00

$jointconstrain "r thigh" x limit -40.00 40.00 0.00
$jointconstrain "r thigh" y limit -85.00 85.00 0.00
$jointconstrain "r thigh" z limit -45.00 45.00 0.00

$jointconstrain "r calf" x limit -30.00 30.00 0.00
$jointconstrain "r calf" y limit -120.00 15.00 0.00
$jointconstrain "r calf" z limit -30.00 30.00 0.00

$jointconstrain "jaw" x limit 0.00 0.00 0.00
$jointconstrain "jaw" y limit 0.00 0.00 0.00
$jointconstrain "jaw" z limit 0.00 0.00 0.00

$jointconstrain "l thigh" x limit -40.00 40.00 0.00
$jointconstrain "l thigh" y limit -85.00 85.00 0.00
$jointconstrain "l thigh" z limit -45.00 45.00 0.00

$jointconstrain "l calf" x limit -30.00 30.00 0.00
$jointconstrain "l calf" y limit -120.00 15.00 0.00
$jointconstrain "l calf" z limit -30.00 30.00 0.00

$jointconstrain "l foot" x limit -40.00 40.00 0.00
$jointconstrain "l foot" y limit -40.00 40.00 0.00
$jointconstrain "l foot" z limit -45.00 45.00 0.00

$jointconstrain "r foot" x limit -40.00 40.00 0.00
$jointconstrain "r foot" y limit -40.00 40.00 0.00
$jointconstrain "r foot" z limit -45.00 45.00 0.00

}

[quote=“dib91, post:1, topic:191907”]

it is possible that the problem is the fact that the model has 3 material?

[QUOTE]

Ok, no that couldnt be the problem, what modelling software are you using? also, the name has to be the same as in the Software, example, i use 3DS Max,

The Diffuse (Texture) is named, Soldier dude guy_d.tga
The .vtf/.vtm HAS To be the same name as that

Soldier Dude guy_d.tga
>
Soldier Dude guy_d.vtf

[quote=“God of Pro’s!, post:2, topic:191907”]

[quote=“dib91, post:1, topic:191907”]

it is possible that the problem is the fact that the model has 3 material?

no, because I also use 3d studio max, and then the textures are named correctly

Show us your VMT.

make sure that you wrote $cdmaterials on correct folder parts of VTF and VMT on it.
example: $cdmaterials "models[folder parts]"

but post your VMT will explains a lot

“// Model uses material” is unnecessary on your .QC
its will automatically finds a part of materials on folder because of $cdmaterials already on .QC

OK. but I do not think it is wrong and in any case are 3 different material! here they are:
loota_leader

dib91, please use the code tags. It makes it easier for use to read the code.

god, i never ever seen a VMT like this :stuck_out_tongue:

but your model has 3 different materials, try split them to 3 VMT and VTF for each file. you must put them in the same folder.

example .VMT something like this…

…and another .VMT

also, check inside 3ds Max program that materials is not “Multi/Sub-Object” just use “Standard” and add your each VTF material for your model. (if you already have VTF plug-in for 3ds Max)

the materials of the model are all standard, and the textures were converted to vtf editor that works because it used more than once!

maybe can you show a picture?

ok. you want a picture of the material in 3d studio max?

in HLMV (Half-Life Model Viewer) and 3ds Max

ok.here as in the model viewer. but here the program does not work well and does not load the texture. but on gmod so.

here is how I put the textures on 3d studio max:

I think he means to show him how it looks in 3ds Max.

this the model in 3d studio max :http://www.moddb.com/members/dibe91/images/evee

maybe you take out the specular map and bump map then re-export again?

convert those two textures?

convert your specular and bump to VTF (VMT is unnecessary)
keep diffuse maps as VTF and VMT, and set them up on each VMT.

I managed to solve the problem. was the name that was wrong, even though I do not understand since changed the name before doing so in smd version! rigranzio who tried to help me!