Re: model problem
Posted by sgtfly on Mon Dec 5th at 10:04pm 2011
Alright here it is I made some for a map and the textures won't show. they are either completely black or checkered.

I'm sure everything is right but I hope someone can double check it. I'm posting the qc file also.
$modelname "mymodels/polevaultpad.mdl"
$cdmaterials "materials"
$staticprop
$surfaceprop "rubber"
$scale 30.0
$body studio "polevaultpad"
$sequence "idle" "polevaultpad_idle.smd"
$collisionmodel "polevaultpad_physbox.smd"
{
$Mass 15
$concave
}
$modelname "mymodels/goalpost1.mdl"
$cdmaterials "materials"
$staticprop
$surfaceprop "metal"
$scale 8.0
$body studio "goalpost1"
$sequence "idle" "goalpost1_idle.smd"
$collisionmodel "goalpost1_physbox.smd"
Everything points to the correct files but no show. Unless I'm messing up the exported smd's this should be working.

sgtfly
member
273 posts
162 snarkmarks
Registered: Jan 24th 2005
Location: Batavia,IL USA
Occupation: 5 more years of BS and I'm done. WOOHOO!
Light is faster than sound:That is why some people appear bright until you hear them speak.
Your riches in life are family and friends, everything else is just a distraction.
Re: model problem
Posted by Orpheus on Tue Dec 6th at 5:14pm 2011
In spite of me reading slowly I don't understand.
Now, the only way I know of that textures do not show up are..
1) the path to the textures/models/sprites/etc/etc is not correct and the editor cannot locate them.
2) the textures simply do not exist.
As far as I know, there are no other ways.

Orpheus
member
13860 posts
1547 snarkmarks
Registered: Aug 26th 2001
Location: Long Oklahoma - USA
Occupation: Long Haul Trucking
The best things in life, aren't things.
Re: model problem
Posted by sgtfly on Tue Dec 6th at 11:55pm 2011
I hear you, but I did find one obviously.
The textures are there the vmt and vtf the original tga
The path is correct to my knowledge.
The models compiled fine but this is what I get. I don't
know if it's some goofy error in the compile or the
exported smd's or what, but it's driving me nuts.
I'm using guistudiomdl to compile for l4d2.
All the files are going to right place.

sgtfly
member
273 posts
162 snarkmarks
Registered: Jan 24th 2005
Location: Batavia,IL USA
Occupation: 5 more years of BS and I'm done. WOOHOO!
Light is faster than sound:That is why some people appear bright until you hear them speak.
Your riches in life are family and friends, everything else is just a distraction.
Re: model problem
Posted by Orpheus on Wed Dec 7th at 2:42am 2011
Dude, unless there is a wadinclude option (I know its not called that in HL2 editing)
You need to have the path set in the game as well.
I am still unclear why the textures don't show but I am nearly positive it can only be the two options I mentioned.
Path.
Nonexistent.
Since you said the textures exist, then that only leaves path.
Oddly enough, HL1 used to assign a missing texture with a replacement so the game wouldn't bork. I wonder why its not now?!?!

Orpheus
member
13860 posts
1547 snarkmarks
Registered: Aug 26th 2001
Location: Long Oklahoma - USA
Occupation: Long Haul Trucking
The best things in life, aren't things.
Re: model problem
Posted by sgtfly on Wed Dec 7th at 1:08pm 2011
You got me Orph,
I have compiled other custom models for l4d2 and had no problem. All my paths are set correctly, some models I created earlier work just fine.
And I've tried every combination of "path " I can think of, but I can't get these newest models to texture. I even used the qc files from the ones that worked with no luck.
This has become very annoying with the last three or four model attempts.
Nothing changed with my procedures in placing all the files in the folders.
I've come to the conclusion it's got to be the models or textures themselves that are f'd up. Not sure how that could be, textures are proper format.
I'm still gonna check to make sure I'm not screwing up the texture creation.
As far as exporting the model I've done it the same way since I started modeling.
I have gone back to mod tool because I can't get ahold of the Modo exporter from Valve.
Also I've checked to make sure I have only one texture projection and that the materials are assigned properly on the model and they are.
I gotta give this stuff up I guess..to much aggravation.

sgtfly
member
273 posts
162 snarkmarks
Registered: Jan 24th 2005
Location: Batavia,IL USA
Occupation: 5 more years of BS and I'm done. WOOHOO!
Light is faster than sound:That is why some people appear bright until you hear them speak.
Your riches in life are family and friends, everything else is just a distraction.
Re: model problem
Posted by Orpheus on Wed Dec 7th at 1:32pm 2011
Probable cause: If you use an improper texture it won't load. IE, you cannot use a gun texture on a wall if I recall.

Orpheus
member
13860 posts
1547 snarkmarks
Registered: Aug 26th 2001
Location: Long Oklahoma - USA
Occupation: Long Haul Trucking
The best things in life, aren't things.
Re: model problem
Posted by sgtfly on Wed Dec 7th at 7:14pm 2011
These are all custom textures made in photoshop off an ambient occlusion render map. Maybe I'm not doing something right in that regard. 

sgtfly
member
273 posts
162 snarkmarks
Registered: Jan 24th 2005
Location: Batavia,IL USA
Occupation: 5 more years of BS and I'm done. WOOHOO!
Light is faster than sound:That is why some people appear bright until you hear them speak.
Your riches in life are family and friends, everything else is just a distraction.
Re: model problem
Posted by G4MER on Wed Dec 7th at 7:40pm 2011
are they all saved as targa's? did you use vtfedit to convert the whole file into the proper textures for HL games?
my wife does the models... when she gets home from class I'll ask her about it and show her this thread, maybe she can offer you some fixes or advice.

G4MER
member
2458 posts
360 snarkmarks
Registered: Sep 6th 2003
Location: USA
Re: model problem
Posted by sgtfly on Wed Dec 7th at 11:27pm 2011
yep, I saved them as tga converted them to vtf's created the vmt's and put them all in the folders they should be. (I was just checking)
Like I said the earlier models worked these don't.

sgtfly
member
273 posts
162 snarkmarks
Registered: Jan 24th 2005
Location: Batavia,IL USA
Occupation: 5 more years of BS and I'm done. WOOHOO!
Light is faster than sound:That is why some people appear bright until you hear them speak.
Your riches in life are family and friends, everything else is just a distraction.
Re: model problem
Posted by Orpheus on Thu Dec 8th at 3:26am 2011
Welp, you gots my curiosity up. I'ma bettin is somethin real simple. So simple it keeps escapin ya cause its right there plain as day.
Have you tried loading it on another PC?
Mayhap you developed a bug?

Orpheus
member
13860 posts
1547 snarkmarks
Registered: Aug 26th 2001
Location: Long Oklahoma - USA
Occupation: Long Haul Trucking
The best things in life, aren't things.
Re: model problem
Posted by Riven on Thu Dec 8th at 6:31am 2011
Simple is what I'm leaning towards as well....
Are the texture's dimensions a power of 2? -and not too large?
If not, and you're absolutely sure the directories are correct, and the references TO the directories are correct (within the QC AND VMT files, then it might be a bad model, or a bad compile with an incomplete QC (including an unfinished $keyvalue or "quoted" value).
Try this: You've made successful models before with custom textures, yes? -Rename an old working custom model texture you've used to what the b0rked model now references, and place it in the proper directory. -Test and see if model shows it.
Likewise, also test this: Rename the texture in question to a previous custom working model, place it in the proper directory relative to that older working model and see if it shows up on that model (however bad it may look
)
Otherwise, unless the SMD exporter is outdated or messing up, these issues do tend to be rather simple fixes. -At least in my experience.
[UPDATE]: I forgot to look at your posted QC files,
Ok, one thing stands out to me for the "polevaultpad" for the $body studio keyvalue, shouldn't that value, also include the extension? i.e.:
Code
$body studio "polevaultpad.smd"
I see that for the "goalpost1" you didn't include it, and it is working, and for every model I've made, I always am sure to include extensions for the referenced file names. So That may affect it, may not. I'm not sure, but that's too easy to try than not to test it! Good luck.

Riven
super admin
1639 posts
802 snarkmarks
Registered: May 2nd 2005
Location: Austin, Texas, USA
Occupation: Architect
Re: model problem
Posted by Le Chief on Fri Dec 9th at 11:33pm 2011
There's 3 categories of things it could be:
1. Corrupt/incorrect vtf file.
2. Pathing issue.
3. Texture not applied to the model properly.

Le Chief
member
2605 posts
382 snarkmarks
Registered: Jul 28th 2006
Location: Sydney, Australia
Re: model problem
Posted by sgtfly on Sat Dec 10th at 12:13pm 2011
Well I tried Rivens trick and applied another texture and it worked. Thnx buddy.
The only problem still is I tried remaking the texture several times with the same result. So now I need to figure out what I'm doing wrong with the texture. My vtf plugin is either borked or vtfedit is. Once I get that figured out I should be good.

sgtfly
member
273 posts
162 snarkmarks
Registered: Jan 24th 2005
Location: Batavia,IL USA
Occupation: 5 more years of BS and I'm done. WOOHOO!
Light is faster than sound:That is why some people appear bright until you hear them speak.
Your riches in life are family and friends, everything else is just a distraction.
Re: model problem
Posted by Orpheus on Sat Dec 10th at 2:24pm 2011
Quoting Orpheus
Probable cause: If you use an improper texture it won't load. IE, you cannot use a gun texture on a wall if I recall.
*sighs*
Missed it by ---> that much <-----

Orpheus
member
13860 posts
1547 snarkmarks
Registered: Aug 26th 2001
Location: Long Oklahoma - USA
Occupation: Long Haul Trucking
The best things in life, aren't things.
Re: model problem
Posted by sgtfly on Sun Dec 18th at 12:11am 2011
Well I've tried everything and still nothing works. I'll let you know if I figure it out but right now it's s%$t!

sgtfly
member
273 posts
162 snarkmarks
Registered: Jan 24th 2005
Location: Batavia,IL USA
Occupation: 5 more years of BS and I'm done. WOOHOO!
Light is faster than sound:That is why some people appear bright until you hear them speak.
Your riches in life are family and friends, everything else is just a distraction.