Need help making my texture work

Need help making my texture work

Re: Need help making my texture work Posted by javierdl on Mon Dec 21st 2009 at 7:06pm
javierdl
28 posts
Posted 2009-12-21 7:06pm
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
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
User posted image
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
Re: Need help making my texture work Posted by Le Chief on Tue Dec 22nd 2009 at 12:22am
Le Chief
2605 posts
Posted 2009-12-22 12:22am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
Ok I'm busy today but I'll check this out for you tonight. Have you ever successfully created a model for source?
Aaron's Stuff
Re: Need help making my texture work Posted by javierdl on Tue Dec 22nd 2009 at 1:11am
javierdl
28 posts
Posted 2009-12-22 1:11am
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
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 :(
Re: Need help making my texture work Posted by javierdl on Tue Dec 22nd 2009 at 5:47pm
javierdl
28 posts
Posted 2009-12-22 5:47pm
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
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
Re: Need help making my texture work Posted by javierdl on Tue Dec 22nd 2009 at 6:31pm
javierdl
28 posts
Posted 2009-12-22 6:31pm
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
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 :(
User posted image
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.
User posted image
And finally, this is where the textures are located:
User posted image
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
Re: Need help making my texture work Posted by javierdl on Wed Dec 23rd 2009 at 7:12pm
javierdl
28 posts
Posted 2009-12-23 7:12pm
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
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
Re: Need help making my texture work Posted by Riven on Wed Dec 23rd 2009 at 11:53pm
Riven
1640 posts
Posted 2009-12-23 11:53pm
Riven
Wuch ya look'n at?
super admin
1640 posts 1266 snarkmarks Registered: May 2nd 2005 Occupation: Architect Location: Austin, Texas, USA
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. :p

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.
Blog: www.playingarchitecture.net
LinkedIn: Eric Lancon
Twitter:@Riven202