Journal #7001

Posted 13 years ago2011-01-27 02:13:54 UTC
Tetsu0 Tetsu0Positive Chaos
Custom models are a pain in the ass.
I spent 2 hours tonight going through DonPunch's XSI modeling tutorial and everything worked, save for the textures.

Come to find out .png's don't work. (yeah im an idiot) So i booted up vtf edit and all those and i tried making a texture from a targa and putting it in my proper folder and making the .qc file and making the vtf, vmf, all those.. included $vertexlitgeneric, blah blah blah.

well I went through about 40+ iterations of different combinations/ file locations across the span of 4 hours... Then I gave up. Model materials have defeated me. [HELP!]

BUT

In the process, i learned how to make custom textures for use in source, NOT ON A MODEL, and i also scored a free plugin for paint.net that makes it SUPER easy to create bumpmaps from any picture..

I made a nice grungy rusted metal texture and bumpmapped it myself:
User posted image
I'm so proud of myself.

But i still cant get the freaking model texture to show up. The model is there, but its all checkered and junk. :(
User posted image
Also that texture is just a random picture my g/f took and left on my desktop. It was just pure laziness that it was right next to the VTF edit shortcut so i could just click+drag over and it automatically trimmed/re sized it.

Yeah. so anyone know how to make model textures? I'm baffled.

6 Comments

Commented 13 years ago2011-01-27 04:50:52 UTC Comment #49243
Is the vmt. using the vertexlitgeneric shader?

[EDIT] Nevermind, I see you said it does.
Hey, congrats for learning how to make source materials :D.
Commented 13 years ago2011-01-27 06:26:47 UTC Comment #49240
biggest pain in the ass. i managed to get it working a couple months ago, it's all about getting studiomdl to run for the right game and such. i had to make a simple batch script or whatever. this is what i had for l4d2:

"C:\Program Files (x86)\Steam\steamapps\common\left 4 dead 2\bin\studiomdl" -game "C:\Program Files (x86)\Steam\steamapps\common\left 4 dead 2\left4dead2" %1
pause

then you just look at the attempted compile and fix any potential errors... idk this'll help lol.

but seriously, my deepest sympathies.
Commented 13 years ago2011-01-27 06:37:17 UTC Comment #49239
Ah yes. I've only done this once or twice and it is, indeed, the biggest pain the ass. Enough to drive a man insane.

Guess I don't have any advice, I can't remember how I got mine working, sorry. :P
Commented 13 years ago2011-01-27 13:37:24 UTC Comment #49244
Obviously, the model can't find the texture correctly or you have renamed it something that it shouldn't be. Not exactly sure where you are having the problem but it is super simple. Don't give up!

I do models all the time and the only problem I have really is mixing up the vertex and the standard lighting.
Commented 13 years ago2011-01-27 14:40:19 UTC Comment #49241
Model texture isn't appearing because it's looking for the wrong material, or in the wrong path. You need to use $cdmaterials in your .qc to define the right FOLDER where the materials are, but when you export your mesh, make sure the correct material is applied - the game will derive the material's filename from the material applied to your model. So if you apply texture1.tga to your model, but rename your file to texture0001 when you place it in the game's materials directory, you'll get pink checkerboards!

If you are still having trouble with materials not showing up, get MdlTextureInfo (http://www.wunderboy.org/sourceapps.php) and drag your .mdl file on top of it - it will tell you the exact path of the material the model is trying to use so you can debug missing textures easily.

Source has to have the worst pipeline for implementing models, though, seriously...
Commented 13 years ago2011-01-27 16:36:42 UTC Comment #49242
haha thanks rabid. yeah I found that at work today. I'm still at work so I can't look into it for another 3 hours

You must log in to post a comment. You can login or register a new account.