Source SDK

Source SDK

Rotating textures
Hi everybody. Is it possible to create a rotating texture? I mean something like a scrolling texture, but with its focus at the center. If possible, with which parameters in its .vmt?
Thank you.
Last edited by [B.n.B] AlcyToronto; Sep 21, 2015 @ 1:48am
< >
Showing 1-5 of 5 comments
Rectus Sep 21, 2015 @ 3:32am 
Yes, using the TextureTransform proxy to manipulate the angle. There is an example here: http://www.nodraw.net/2010/01/dynamic-materials-with-proxies/
Thank you very much, Rectus!
[B.n.B] AlcyToronto Sep 21, 2015 @ 12:42pm 
Originally posted by Rectus:
Yes, using the TextureTransform proxy to manipulate the angle. There is an example here: http://www.nodraw.net/2010/01/dynamic-materials-with-proxies/

There's a problem... I copy paste these vmt parameters from the example in your link:

"LightmappedGeneric"
{
"$basetexture" "mytexture"

"$angle" 0.0
"$translate" "[0.0 0.0]"
"$center" "[-0.5 -0.5]"

"Proxies"
{
"LinearRamp"
{
"rate" 45
"initialValue" 0.0
"resultVar" "$angle"
}

"TextureTransform"
{
"translateVar" "$translate"
"rotateVar" "$angle"
"centerVar" "$center"
"resultVar" "$basetexturetransform"
}
}
}

but I cannot center the rotation focus. Even with lock textures enable, moving the brush the rotation goes out of center. Here a screenshot showing what I mean:
https://www.dropbox.com/s/14cqqieh0hwwqyr/2015-09-21_00001.jpg?dl=0

Any idea? Thanks!
Last edited by [B.n.B] AlcyToronto; Sep 21, 2015 @ 12:45pm
Rectus Sep 21, 2015 @ 12:52pm 
I'm not really sure how to fix that, apart from applying the material to a model instead of a brush. Maybe using the centering feature of the texture application tool, or aligning it to the face could work.
Originally posted by Rectus:
I'm not really sure how to fix that, apart from applying the material to a model instead of a brush. Maybe using the centering feature of the texture application tool, or aligning it to the face could work.

I've tried to make it func_detail, prefab, and alignment to center, fit, nothing to do. If I made a big wall with that texture 0.25, all the wall face rotates, not the single "pattern". In this way:

https://www.dropbox.com/s/s5dif572n9ypsbz/screenshots%20%282%29.zip?dl=0
Last edited by [B.n.B] AlcyToronto; Sep 21, 2015 @ 3:06pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Sep 21, 2015 @ 1:47am
Posts: 5