• Textures Not Showing Up On Custom Playermodel
    13 replies, posted
I am working on a custom playermodel and I have the texture file but when I go in game there is no texture on it. This is a screenshot of the texture file: [url]https://gyazo.com/c67d7241c8080c7566442abf4c530eaa[/url]
What's the path of the material, how did you create the model QC, what's your vmts, something useful?
[QUOTE=gonzalolog;52480456]What's the path of the material, how did you create the model QC, what's your vmts, something useful?[/QUOTE] QC: $modelname "models\feathers.mdl" $scale 20 $body mybody "feathers-ref.smd" $staticprop $surfaceprop flesh $cdmaterials "materials\models" $sequence idle "feathers-ref.smd" $collisionmodel "feathers_collision.smd" { $concave } vmt: "VertexLitGeneric" { $basetexture models\feathers\featherstexture $surfaceprop flesh "$halflambert" 1
[code]$cdmaterials "materials\models" [/code] You ask the game to look for materials in [b]"materials/materials/models"[/b] [code]$basetexture models\feathers\featherstexture[/code] but you put your materials into [b]"materials/models/feathers/".[/b]
[QUOTE=Robotboy655;52481633][code]$cdmaterials "materials\models" [/code] You ask the game to look for materials in [b]"materials/materials/models"[/b] [code]$basetexture models\feathers\featherstexture[/code] but you put your materials into [b]"materials/models/feathers/".[/b][/QUOTE] so what would the new qc and vmt look like?
Take a wild guess. Read my message thoroughly, try to understand what the problem is exactly (which I already told you), experiment around. I am sure if you got at least some common sense, you will get it in no time. [editline]18th July 2017[/editline] I don't want to give you an straight answer because you will never learn that way.
[QUOTE=Robotboy655;52481877]Take a wild guess. Read my message thoroughly, try to understand what the problem is exactly (which I already told you), experiment around. I am sure if you got at least some common sense, you will get it in no time. [editline]18th July 2017[/editline] I don't want to give you an straight answer because you will never learn that way.[/QUOTE] "VertexLitGeneric" { $basetexture models\feathers $surfaceprop flesh "$halflambert" 1 } $modelname "models\feathers.mdl" $scale 20 $body mybody "feathers-ref.smd" $staticprop $surfaceprop flesh $cdmaterials "models\feathers" $sequence idle "feathers-ref.smd" $collisionmodel "feathers_collision.smd" { $concave } I tried that but it didn't work
Because it will try to find materials/models/feathers/<whatever texture your model uses>.vmt And your material links to materials/models/feathers.vtf texture
[QUOTE=gonzalolog;52482013]Because it will try to find materials/models/feathers/<whatever texture your model uses>.vmt And your material links to materials/models/feathers.vtf texture[/QUOTE] "VertexLitGeneric" { $basetexture models\feathers\featherstexture.vtf $surfaceprop flesh "$halflambert" 1 } $modelname "models\feathers.mdl" $scale 20 $body mybody "feathers-ref.smd" $staticprop $surfaceprop flesh $cdmaterials "models\feathers\featherstexture.vmt" $sequence idle "feathers-ref.smd" $collisionmodel "feathers_collision.smd" { $concave } would this be correct
extensions aren't require, remove featherstexture from cdmaterials and .vtf in vmt
[QUOTE=gonzalolog;52482417]extensions aren't require, remove featherstexture from cdmaterials and .vtf in vmt[/QUOTE] I fixed that, but it still isn't working
then featherstexture is not the material name
[QUOTE=gonzalolog;52482667]then featherstexture is not the material name[/QUOTE] but it is though
have an example. Material location: models/fallout_4/Actors/Deathclaw/deathclaw.vmt [code] "VertexLitGeneric" { "$baseTexture" "models/fallout_4/Actors/Deathclaw/deathclaw_d" "$bumpmap" "models/fallout_4/Actors/Deathclaw/deathclaw_n" "$phong" 1 "$phongboost" 0.4 "$phongexponent" 20 "$phongtint" "[1 1 0.4]" "$phongfresnelranges" "[.2 .2 1]" "$model" 1 "$envmap" "env_cubemap" "$envmaptint" "0.2" } [/code] Here is my CDMaterials [code] $cdmaterials "models\fallout_4\Actors\Deathclaw\" [/code] just think about it, if CDMaterials is set to "models\fallout_4\Actors\Deathclaw\" and my material file is named "deathclaw", which is the same as what surface my model has in 3DS max, how do you think yours should look? If it's not a VMT issue, maybe it's an issue with your model/SMD. Did you make sure too apply the right surface name to your model? if you have, ignore the rest of this, otherwise It's important that in whatever 3D program you used, you name the surface of the model the same as whatever the name of your vmt file. For instance, in 3DS max with my deathclaw, using the material editor I select the Deathclaw model and name it "deathclaw" like so: [vid]https://dl.dropboxusercontent.com/s/247i60badtn824n/2017-07-18_14-35-31.mp4[/vid] If you used blender or something though, I can't really help. There's probably enumerable amount of tutorials for that if you look though.
Sorry, you need to Log In to post a reply to this thread.