Custom Model texture isn't working (pink checkboard)

Custom Model texture isn't working (pink checkboard)

Re: Custom Model texture isn't working (pink checkboard) Posted by reaper47 on Fri Aug 11th 2006 at 6:12pm
reaper47
2827 posts
Posted 2006-08-11 6:12pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
I get the pink checkboard all the time. The smd exports from Blender without any problems. The UV maps work. If I modify them you can even see the pink checkboard texture change on the model.

I've got my qc file, my vmts vtfs. I checked all the filenames. I don't know I must have missed something but I made 3 tutorials step by step and it just doesn't show up.

Does anyone here know about Blender exporting, what texturenames and settings you have to use.
Re: Custom Model texture isn't working (pink checkboard) Posted by French Toast on Fri Aug 11th 2006 at 6:54pm
French Toast
3043 posts
Posted 2006-08-11 6:54pm
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
Fishy said:
your textures should be in;

[mod]materials/models/snarkpacks/p1_lights

and in your qc file, you would have the line;

$cdmaterials "models/snarkpacks/p1_lights"

you don't state the texture name, as that info gets embedded when you export to a .smd file.
That it?
Re: Custom Model texture isn't working (pink checkboard) Posted by reaper47 on Sat Aug 12th 2006 at 9:44am
reaper47
2827 posts
Posted 2006-08-12 9:44am
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
Unfortunately not :sad:
Well, maybe it even is but I checked it so often that I doubt it.

I'd be interested if any of you ever exported a Blender model with textures to work in game and if I could get the .smd, .qc and vmt/vtf files and their folder structure to see what I could have made wrong. For example I read that I have to use Blender's UV texture name for my vmts. I thought I did, but looking at the SMD in the editor I only see template "Material.001" names instead of that of my tga.
Re: Custom Model texture isn't working (pink checkboard) Posted by Pvt.Scythe on Sun Aug 13th 2006 at 1:18pm
Pvt.Scythe
730 posts
Posted 2006-08-13 1:18pm
730 posts 113 snarkmarks Registered: Sep 19th 2004 Occupation: student Location: Finland
It doesn't matter what it says in the .smd, it's just the material name
in the modeling program for the set of verticles(connected pieces of
mesh). I figured this out today as I was having the same problem.

EDIT: WRONG FILE. I MEANT:<br style="font-weight: bold;"><span style="font-weight: bold;">The
.vmt must be that same name as your .mdl and it must have the following
entry:

"$baseTexture"
"snarkpacks/p1_lights/nameofthevtffilewithoutitsending"</span><br style="font-weight: bold;">

I'm not 100% sure if this was the thing I got wrong, but I'm fairly
certain that this was the only thing I changed when my test model
started working. :smile: The Blender exporter is just fine.
''Everyone wades in s**t until they're competent enough to walk on it. Jesus style.''
Dystopia - Empires
Re: Custom Model texture isn't working (pink checkboard) Posted by French Toast on Sun Aug 13th 2006 at 1:47pm
French Toast
3043 posts
Posted 2006-08-13 1:47pm
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
Run model viewer in the background when you compile, I think that works.
Re: Custom Model texture isn't working (pink checkboard) Posted by reaper47 on Sun Aug 13th 2006 at 3:00pm
reaper47
2827 posts
Posted 2006-08-13 3:00pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
I just re-checked and the texture name/model name already were identical but running the modelviewer in background... I don'T know how or why but I think it helped. The modelviewer itself didn't diplay the texture (pink checkboard) but then in hammer it re-appeared!

Thanks everybody!
Re: Custom Model texture isn't working (pink checkboard) Posted by French Toast on Mon Aug 14th 2006 at 3:41am
French Toast
3043 posts
Posted 2006-08-14 3:41am
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
Yeah, I remember reading somewhere that if you just run the program in the background it fixes all kinds of weird errors.

Can't imagine why though... seems strange.