basetexture transform center

Uriak

L8: Fancy Shmancy Member
Apr 27, 2008
543
70
I'm currently figeting with proxies and something keeps ruining my efforts :

Whenwhever I want to use $basetexturetransform, be it as material property or from proxy scaling or rotating never works the way I expect them to do.

Let's say I wan't to rotate my texture from x°

I write something like this

"$basetexturetransform" "center 0.5 0.5 scale 1 1 rotate x translate 0 0"

But the texture never seems to rotate along its own center, but a virtual center somewhere on the map. If I modify the center values (said to be used between 0 and 1) I modify my result as show in game and in hammer, but still, the texture is rotated but not along it's own center. Same thing with scale by the way.

One could say, then "if you absolutely want it rotated, just adjust the translation in hammer", yes for a static texture, that is. But would it be for the skybox or a rotating texture, I must have control over the damned thing.

Any idea ?
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Is it the centre of the brush/entity its applied to perhaps?

VFIG is your man here, his Earth in his contest entry should provide him with enough info to answer this
 
Dec 25, 2007
566
439
If the texture is on a brush or a brush entity, it will rotate around the map origin as Boojum says. If you specify centre coordinates, they are relative to the map origin.

If the texture is on a prop, it will rotate relative to the prop origin (or the mesh origin, possibly; look at the computerwall prop with the radar for example).

Oddly enough on a brush it sometimes doesn't seem to rotate around the map origin but another point, but I've never been able to pin down why.

The Earth example in my cpoint contest entry was highly specific to the location and size of the brush that the texture was on, not only so the scaling and rotation would be about the right centre, but also so that the perspective would look correct.
 

Uriak

L8: Fancy Shmancy Member
Apr 27, 2008
543
70
So you have to make texture values specific to brush location ? What a shame :(

Ironicaly, I planned to use it on a brush above the origin, maybe I'm not that screwed.