raptornx01 Mar 2 @ 1:07am
Any vmt command that will make a texture repeat?
Say you stretch out a model and instead of the texture stretching with it, it just repeats. like a tiled effect.
Showing 1-5 of 5 comments
< >
I'd like to know this too. I haven't found one.
R234 Mar 2 @ 2:47am 
Hm, well, I know materials already repeat in Source, so the question is more like: is it possible to dynamically alter a model's UV map? There is a VMT parametre, $basetexturetransform, that's supposed to change UV coordinates, but I'm not sure that can be animated (and the Wiki says that most likely doesn't even work with models, only brushes). Logically, if something could control UV coordinates, I'd bet on flexes, but I'm not at all certain they coded them to have that ability. It would actually surprise me if they did...
Master_Zo Mar 2 @ 3:17am 
$basetexturetransform works with model textures that use $basetexture, like the "UnlitGeneric" and "VertexLitGeneric". You can add it as a material override (choose matrix) in SFM.
It then acts as a 2x2 matrix.
So
[1.5, 0 , 0, 0]
[0 , 1.5, 0, 0]
[0 , 0 , 1, 0]
[0 , 0 , 0, 1]
Scales the texture down.
You can perform other functions like rotation as well: http://en.wikipedia.org/wiki/Transformation_matrix#Examples_in_2D_graphics

Whether it can be animated, I haven't figured that part out yet.
Last edited by Master_Zo; Mar 2 @ 3:19am
raptornx01 Mar 2 @ 4:26am 
That link is greek to me. XD

but i'll test it out, see what happens.
6000 ANGRY BEES Mar 2 @ 4:35am 
You can use Proxies to make textures, say, scroll (that's what you mean by animation, right?) but it won't show in HLMV for some reason.

https://developer.valvesoftware.com/wiki/Proxies
Showing 1-5 of 5 comments
< >
Per page: 15 30 50
Date Posted: Mar 2 @ 1:07am
Posts: 5