Custom Model texture isn't working (pink checkboard)
Post Reply
Quote
Re: Custom Model texture isn't working (pink checkboard)
Posted by reaper47 on Fri Aug 11th at 6:12pm 2006


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.




Quote
Re: Custom Model texture isn't working (pink checkboard)
Posted by French Toast on Fri Aug 11th at 6:54pm 2006


? quoting Fishy
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?




Quote
Re: Custom Model texture isn't working (pink checkboard)
Posted by reaper47 on Sat Aug 12th at 9:44am 2006


Unfortunately not image
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.




Quote
Re: Custom Model texture isn't working (pink checkboard)
Posted by Pvt.Scythe on Sun Aug 13th at 1:18pm 2006


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:
The .vmt must be that same name as your .mdl and it must have the following entry:
"$baseTexture" "snarkpacks/p1_lights/nameofthevtffilewithoutitsending"


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. The Blender exporter is just fine.



''Everyone wades in s**t until they're competent enough to walk on it. Jesus style.''
Dystopia - Empires



Quote
Re: Custom Model texture isn't working (pink checkboard)
Posted by French Toast on Sun Aug 13th at 1:47pm 2006


Run model viewer in the background when you compile, I think that works.



Quote
Re: Custom Model texture isn't working (pink checkboard)
Posted by reaper47 on Sun Aug 13th at 3:00pm 2006


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!




Quote
Re: Custom Model texture isn't working (pink checkboard)
Posted by French Toast on Mon Aug 14th at 3:41am 2006


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.





Post Reply