DigitalEro Offline

Blender texturing

Mon, 23 Dec 2013 18:13:24

Nins

Once again throwing my hand to modeling without milkshape now, if it is no possible my apologies for my ignorance. I have a model all set up, has a texture when I view it in blender, all set up the way I wish it to look. I have the VTF and VMT in the correct file path and I also have the QC set up the way I believe is correct.
$modelname "Nins\VigorBottle\VigorBottle.mdl"
$scale 1
$Root "Bone"
$cdmaterials "models\Nins\VigorBottle"

$body "Body" "VigorBottle.smd"

$sequence seq-name "VigorBottle.smd" loop fps 30 ACT_IDLE 1

$surfaceprop "metal"

$collisionmodel "VigorBottle.smd" {
	$concave
	$mass 100.000
Now when I compile, the model exists, but I get black and purple squares. I am obviously missing a step and am kindly asking if anyone has a simple answer, most of the tutorials on youtube I have found involve the use of milkshape or are not very clear. Thank you for your time.
Mon, 23 Dec 2013 18:21:44

Ganonmaster

Trust me, Milkshape users are in the minority. Most people use Blender, 3ds Max or Maya. I hope you are aware though, that the QC file you posted above is missing a } at the end? Anyway, if you open your model in the Model Viewer (in the Model tab I think) or look at the Console in SFM, you can see a list of materials and textures it is trying to load and where it fails. Compare the paths it outputs there, with the paths you have in your sfm folders.
Mon, 23 Dec 2013 19:37:54

Nins

"Ganonmaster" said ...
Trust me, Milkshape users are in the minority. Most people use Blender, 3ds Max or Maya. I hope you are aware though, that the QC file you posted above is missing a } at the end? Anyway, if you open your model in the Model Viewer (in the Model tab I think) or look at the Console in SFM, you can see a list of materials and textures it is trying to load and where it fails. Compare the paths it outputs there, with the paths you have in your sfm folders.
Had to check, I had just missed the } in the copy. I had completely forgotten the model viewer has teh texture list. I will give that a look. thank you Ganon EDIT Well, it's just telling me it can't find the VMT either, gunna have to go through the files and see what's what I guess. :(
Mon, 23 Dec 2013 21:13:32

Vitezislav

What you do is open VigorBottle.smd with Notepad++ and see if you are actually using the correct textures and just change it there.
Mon, 23 Dec 2013 21:19:27

Ganonmaster

"Vitezislav" said ...
What you do is open VigorBottle.smd with Notepad++ and see if you are actually using the correct textures and just change it there.
That doesn't work if your cdmaterials variable doesn't match the folders you created for the vmt files. You're better off checking the model viewer to see the full path plus filename and comparing it with and renaming the material folders and vmt files to match that.
Mon, 23 Dec 2013 21:44:19

Vitezislav

If the cdmaterial path is wrong it's also easy to check by going to the folder.
Mon, 23 Dec 2013 23:06:27

Nins

After a bit more research on youtube, I am starting to think I may have renamed something when I really shouldn't have. From what I gather, the texture map you make in blender has to have exactly the same name as the VMT when you save and therefore assign to the model, it cannot be renamed after?
Tue, 24 Dec 2013 10:35:57

Ganonmaster

"Nins" said ...
After a bit more research on youtube, I am starting to think I may have renamed something when I really shouldn't have. From what I gather, the texture map you make in blender has to have exactly the same name as the VMT when you save and therefore assign to the model, it cannot be renamed after?
That sounds like a bunch of bullshit.
Tue, 24 Dec 2013 14:01:57

Nins

"Ganonmaster" said ...
"Nins" said ...
After a bit more research on youtube, I am starting to think I may have renamed something when I really shouldn't have. From what I gather, the texture map you make in blender has to have exactly the same name as the VMT when you save and therefore assign to the model, it cannot be renamed after?
That sounds like a bunch of bullshit.
Hmm, well if that is the case I have no idea what I did wrong, gunna have to start over I think to see exactly where I went wrong. Thanks all for the help though.
Tue, 24 Dec 2013 15:26:11

Vitezislav

"Nins" said ...
After a bit more research on youtube, I am starting to think I may have renamed something when I really shouldn't have. From what I gather, the texture map you make in blender has to have exactly the same name as the VMT when you save and therefore assign to the model, it cannot be renamed after?
You can change the texture name with notepad++ by opening the smd file.