• Having some serious trouble getting a custom model to texture
    10 replies, posted
I am trying to make my first custom model and actually implement into a project that my friend and I are attempting. However, I am unable to have the VTF apply to the model. It just refuses to. I've changed everything around with the VMF that I could possibly find in old FP posts, old Steam forums posts, and a bunch of other places and I cannot find the answer to this problem. So I have a .qc file on my desktop in a folder with the SMD file and the original files for my model, it's PNG version of the texture, and the original VMT and VTF files. When I run the .qc file... [code] $modelname "custom/testmodel/testmodel.mdl" $cdmaterials "custom/testmodel/testmodel" $surfaceprop wood $staticprop $body mybody "testmodel.smd" $collisionmodel "testmodel.smd" $sequence idle "testmodel" fps 1 [/code] the model extracts to the models/custom/testmodel/ directory as it should. In the tf/materials folder, I have put the VTF and VMT in the custom/testmodel directory. VMT: [code] "LightmappedGeneric" { $basetexture "custom\testmodel\testmodel" } [/code] When I view the model in Model Viewer, I get this purdy thing: [img]http://www.cubeupload.com/files/652400purdy.jpg[/img] I really don't want to ask for help because I like to figure these kinds of things out for myself, but I have tried everything I can possibly think of and it just isn't working. Any help would be greatly appreciated by myself and my friend.
Change "LightmappedGeneric" to "VertexlitGeneric" in the VMT. Then make sure your VMT is called the same as what your original texture was called that you applied to the model.
Sorry, still no dice. I think I'll just give up :frown:
When you have your model in 3DS Max or XSI or whatever you made it in, did you apply the texture to the model in there?
[QUOTE=ssa gib A;18157411]When you have your model in 3DS Max or XSI or whatever you made it in, did you apply the texture to the model in there?[/QUOTE] Yes, I did (Blender, because I'm poor.) [img]http://www.cubeupload.com/files/843200it.jpg[/img]
Ooh I found it. Bloocobalt helped me with the same problem. Add "models" to the cdmaterials line. [code] $modelname "custom/testmodel/testmodel.mdl" $cdmaterials "[b]models/[/b]custom/testmodel/testmodel" $surfaceprop wood $staticprop $body mybody "testmodel.smd" $collisionmodel "testmodel.smd" $sequence idle "testmodel" fps 1[/code]
He'll need to change the VMT path aswell then, put the textures in the models folder (that being a folder called models in the materials folder) and check what I said to before ¬.¬
Thank you so much, Silver Spirit! You are the coolest '09er I've ever known and you are now my new favorite person! [img]http://www.cubeupload.com/files/ee0400sign.png[/img] The problem ended up being, after all, that I hadn't named the model in Blender the same as the texture, or something to that effect. I figured it out when I was look at the SMD file and realized that what I had called "mrsign" in Blender was probably messing up what was in the testmodel folder as "testmodel.mdl". Problem solved! Thanks for your help!
[QUOTE=kidwithsword;18162170]Thank you so much, Silver Spirit! You are the coolest '09er I've ever known and you are now my new favorite person![/QUOTE] np :) Happy to help :P
This has been driving me nuts since I started stalki- err...reading some of your posts Silver. What is your avatar?? lol.
[QUOTE=Magnificor;18174859]This has been driving me nuts since I started stalki- err...reading some of your posts Silver. What is your avatar?? lol.[/QUOTE] It's my CoH (City of Heroes) character [url=http://silverspirituk.deviantart.com/art/CoH-Silver-Spirit-124809226]Silver Spirit[/url] (where I used the name originally) as drawn by [url=http://drdestiny.deviantart.com]DrDestiny[/url] ^^ (a friend from said game), he's a really good artist :P And i'm proud to show off his work (especially since it's my character).
Sorry, you need to Log In to post a reply to this thread.