Hi, I finished making a model in maya and exported as .smd and converted it to .mdl.
I also have made a uv map and did a UV snapshot so I can edit my uv texture to my liking.
I made my addons folder and put my v and w models in the models folder.
Also I put my .vtf(which has my uv mapping textured in it) and .vmt in materials/leek.
MY models works fine in-game, but the texture just wont go onto it for some reason.
Heres my qc. file, any help would be appreciated:
Also I have 2 qc. files, one for the world model and one for the view model.
$modelname "w_leek4.mdl"
$model "studio" "w_leek4.smd"
$cdmaterials "models\leek\"
$hboxset "default"
$scale 1
$surfaceprop "weapon"
$sequence idle "w_leek4" fps 30.00
$collisionmodel "leek_phys2.smd" {
$mass 5.0
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}
It's got nothing to do with the QC, do you have a VMT file for the texture in the garrysmod/garrysmod/materials/models/leek folder, which references the texture correctly?
Also a screenshot may be useful as "isnt working" could mean anything really :/ (like do you mean pink and black checks, invisible, ranbow disco, any other kind of crazyness?)
Well heres my VMT file, my VMT and VTF both are named leek.vmt and leek.vtf
"LightmappedGeneric"
{
"$basetexture" "models\leek\leek"
}
Also, I get pink and black textures.
ok should be "VertexLitGeneric" not "LightmappedGeneric" and also you want that to say "models/leek" not models/leek/leek"
okay,ill try that but dont i need to use the name of the folder and name of the files? folder=leek, VTF=leek as well.
[QUOTE=pout400;19581089]okay,ill try that but dont i need to use the name of the folder and name of the files? folder=leek, VTF=leek as well.[/QUOTE]
Good point, forgot that... (been away too long Y.Y). Yes if the texture is called leek, it's right being leek/leek. Is the texture VTF called leek in the leek folder? And was the original texture applied to the model called leek?
Yes I have leek.vtf and leek.vmt in the leek folder.
And, im not sure what you mean by my "original texture applied to the model called leek." Sorry.
Also changing it to "VertexLitGeneric" didnt work
[QUOTE=pout400;19581308]Yes I have leek.vtf and leek.vmt in the leek folder.
And, im not sure what you mean by my "original texture applied to the model called leek." Sorry.
Also changing it to "VertexLitGeneric" didnt work[/QUOTE]
When you made the model (if you made it) was the texture that was used on it, that is now a VTF file, called leek.bmp (for example, could be tga, png, ect). As thats the only thing I can think of for what you've described, is if it's not named correctly.
Have you tried checking the texture path in the model with a model viewer or hex editor?
I saved it as leek.tga from maya so thats not the problem.
Also, the the texture works fine when I apply it to the model in maya.
This is so confusing.
Am I supposed to link the texture to the model before I export the mode. Or do something in maya(or any other program) to the texture that I havnt stated earlier?
Assigning the texture to the model is a must before exporting, otherwise the SMD can't know what texture to point the model to.
Okay, so what I have to do is : UVsnapshot, then set that texture to my model, then export my model? Does the texture have to be in any special format when applied to my model in maya?
Thanks for your help guys, its working now. It seems like it was because I didnt have the material set to the model before exporting. Its nice knowing that there are people that take there time to help people like me out. :P
Sorry, you need to Log In to post a reply to this thread.