Hello, I exported the StatTrak model from CS:GO earlier today and was trying to apply an animation to it (which also was exported from csgo)
This is the code I used for the VMT (It's 7 frames according to VTFEdit)
[code]
"UnlitGeneric"
{
"$basetexture" "models/weapons/stattrak_error"
"$vertexcolor" 1
"$vertexalpha" 1
"$nolod" 1
"$translucent" 1
"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$basetexture"
"animatedtextureframenumvar" "$frame"
"animatedtextureframerate" "7"
}
}
}
[/code]
When using SetSubMaterial on the model the use the material on just the display of the model, it makes it invisible.
(same for any other model I try to apply the texture to)
Edit: Oddly enough, I can see the animation/material in the setsubmaterial tool I'm using:
[IMG]http://i.gyazo.com/a62d80dba0f696d63236732ba3779040.png[/IMG]
You are trying to use a GUI texture shader on a model.
Use VertexLitGeneric, not UnlitGeneric.
[QUOTE=Robotboy655;47950877]You are trying to use a GUI texture shader on a model.
Use VertexLitGeneric, not UnlitGeneric.[/QUOTE]
haha Thanks, rookie mistake!
Sorry, you need to Log In to post a reply to this thread.