Post Reply
Re: Need help making my texture work
Posted by javierdl on Mon Dec 21st at 7:06pm 2009
Happy Holidays to all! 
I wonder if someone would bother checking my files up and help me find where the problem is?
Here are the files:
custom_props Textures - Put'em in the Materials folder.
This image shows an explanation of what you'll find in the custom props.zip file

modelsrc files All source files - Put'em in the models/modelsrc folder
So, if you can make it work, then I'll know the problem is not with the files I'm using. Any insight on what could I be doing wrong would be super.
Thanks in advance guys 
JDL

javierdl
member
28 posts
0 snarkmarks
Registered: Nov 26th 2004
Location: Canada
Occupation: 3D Modeler
Re: Need help making my texture work
Posted by Le Chief on Tue Dec 22nd at 12:22am 2009
Ok I'm busy today but I'll check this out for you tonight. Have you ever successfully created a model for source?

Le Chief
member
2605 posts
382 snarkmarks
Registered: Jul 28th 2006
Location: Sydney, Australia
Re: Need help making my texture work
Posted by javierdl on Tue Dec 22nd at 1:11am 2009
Thank you so much in advance AdK 
Yes, I have, 3 so far. But it was my first time when I did. And now I am trying again after some time off. Although I'm trying to follow my own notes I must have left something out 

javierdl
member
28 posts
0 snarkmarks
Registered: Nov 26th 2004
Location: Canada
Occupation: 3D Modeler
Re: Need help making my texture work
Posted by javierdl on Tue Dec 22nd at 5:47pm 2009
Btw, I did fix the files links on the original post.
Here are the files anyway:
custom_props Textures - Put'em in the Materials folder.
modelsrc files All source files - Put'em in the models/modelsrc folder

javierdl
member
28 posts
0 snarkmarks
Registered: Nov 26th 2004
Location: Canada
Occupation: 3D Modeler
Re: Need help making my texture work
Posted by javierdl on Tue Dec 22nd at 6:31pm 2009
Ok I figured if I make this more accessible maybe people will help 
This is what I'm getting presently:
The model loads, but without its texture 

Now, this is where GUIStudioMDL places all the files it creates from the modelsrc folder (which is available to you here). Ignore the "burger" files please.

And finally, this is where the textures are located:

I don't suppose there is any point in going through the steps I take to make/export/compile the model as we can see it just fine in Model Viewer. Clearly the only thing missing is the texture. As for how I do it, I make sure its dimensions are by the power of 2 (1024x1024), TGA format. I have used both VTFEdit and Studio Compiler to create it. I have created the VMT from other scripts and have let both previosly mentioned applications create the VMT for me.
This is what my VMT presently looks like:
"LightmappedGeneric"
{
"$baseTexture" "models/custom_models/drpeppercan"
}
I don't know what else to mention for now. Should you have any questions please don't hesitate to ask.
Thanks guys,
JDL

javierdl
member
28 posts
0 snarkmarks
Registered: Nov 26th 2004
Location: Canada
Occupation: 3D Modeler
Re: Need help making my texture work
Posted by javierdl on Wed Dec 23rd at 7:12pm 2009
I found the solution to this prop, thanks to JesterSpawn from the SteamPowered forums:
As I replied to him:
"Both changing to VLG (as opposed to LMG) and correcting my QC file helped already (the folder was called "custom_models", but in the QC file I had entered "custom_props")."
Btw, while creating my test room with Hammer I realized what the VMF file is ; ) So now I have one. I just don't see what this file has to do with my texture...
JDL

javierdl
member
28 posts
0 snarkmarks
Registered: Nov 26th 2004
Location: Canada
Occupation: 3D Modeler
Re: Need help making my texture work
Posted by Riven on Wed Dec 23rd at 11:53pm 2009
VMF? -That's a "Valve Map File" read by Hammer Level Editor. Are you sure you're not talking about "VTF" ?
-First off, if you've got it working, then I suppose you've done something right.
But that text from your VMT file is wrong if it's meant for a model.
Where it says: "lightmappedGeneric" -That's the shader used for textures applied to world brushes in hammer, Models are lit by vertex so, you will want to use the shader: "VertexLitGeneric"
I made models for Source before a lot of those programs were made to make it easier, but when I used them; I found them to be not so reliable. So I always stick to typing out my own QC and VMT files. If something didn't work out, or the texture never showed up in-game, 9 times out of 10, it was because either A) the texture file (vmt and vtf) were located in the wrong folder. B) The wrong folder was referenced in the QC or VMT & C) the VMT didn't match up to it's own folder.
Source is VERY picky about where its files are placed, so normally go double or triple check your file locations and their references in the QC & VMT. Sorry I didn't get to this sooner, I could have helped earlier.

Riven
super admin
1639 posts
802 snarkmarks
Registered: May 2nd 2005
Location: Austin, Texas, USA
Occupation: Architect