Hi there,
I am currently in the process of modeling and i cant seem to get the material onto the model. I can spawn the model in game but there is no texture on the prop. I exported the UV map via blender and pulled into photoshop and coloured it and named it the same as the model.
Anyone got any ideas?
If you need to know more about it just ask!
Heres my QC File
[CODE]
$modelname "whip\server.mdl"
$body mybody "server.smd"
$staticprop
$surfaceprop combine_metal
$cdmaterials "whip\"
$sequence idle "server-phys.smd"
$collisionmodel "server-phys.smd" { $concave }[/CODE]
And Here is my .VMT file
[CODE]
"VertexLitGeneric"
{
"$basetexture" "whip/server"
"$surfaceprop" "concrete"
}
[/CODE]
You have to add the material in blender too. Go to the object properties and click the little checkered sphere. In there add a new texture and have it have the EXACT name of your vmt. (Without the .vmt extension)
Do i add the texture? or do i just put in the name?
And do i just put in 'server' or 'whip/server'
[QUOTE=Whip-Tide;52299121]Do i add the texture? or do i just put in the name?
And do i just put in 'server' or 'whip/server'[/QUOTE]
You don't have to add the texture so it's visible in blender.
So just add a blank texture. And in your case it should be called "server"
I've extracted the UV map that has 1 color over the whole thing, then once i get that done i will put a fan material on it and etc but i cant get the fker to work haha, ill try that now!
[editline]1st June 2017[/editline]
[IMG]http://img-u.com/qe[/IMG]
i think its abit small... but material didnt work and i broke it fml
[editline]1st June 2017[/editline]
[IMG]http://img-u.com/qf[/IMG]
Ummmmmm,
The texture added but it kinda didnt work well
The texture name inside your .SMD must match your .VMT filename. VTF naming isn't important, but it must be the same as your VTF file inside your VMT (basetexture line), obviously.
You can check what material your SMD is looking for by simply opening it using text editor (notepad or w/e) and scrolling a bit until you find a line with the word 'triangles', the next should be the material your SMD file is looking for.
weird. you unwrapped it correct. and the texture is working. i can see that. but how'd you mess up the uvs? they look like generated. which blender usually doesn't export. do you have a second or generated uvmap? maybe you gotta select the correct one in blender.
Sorry, you need to Log In to post a reply to this thread.