Template:VMT UVtransform: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (Typo fix)
 
(27 intermediate revisions by 11 users not shown)
Line 1: Line 1:
* The default position is: <code>"center .5 .5 scale 1 1 rotate 0 translate 0 0"</code>.
{{DISPLAYTITLE:Template: VMT UV Transform}}
* "center" values are UV 0.1 coordinates.
<onlyinclude><includeonly>{{#switch:{{{suf|}}}
* "scale" values are UV factors.
|#default=:The default position is {{Code|style=1|center .5 .5 scale 1 1 rotate 0 translate 0 0}}.
* "translate" values are UV 0.1 coordinates.
:# {{Code|style=1|select=1|center}} defines the point of rotation. Only useful if {{Code|style=1|select=1|rotate}} is being used.
* "rotate" values are 0-360 degree UV angles.
:# {{Code|style=1|select=1|scale}} fits the texture into the material the given number of times. {{Code|style=1|select=1|2 1}} is a 50% scale in the horizontal X axis while the vertical Y axis is still at original scale.
:# {{Code|style=1|select=1|rotate}} rotates the texture ''counter''-clockwise in degrees. Accepts any number, including negatives.
:# {{Code|style=1|select=1|translate}} shifts the texture by the given numbers. {{Code|style=1|select=1|.5}} will shift it half-way. 1 will shift it once completely over, which is the same as not moving it at all.
:: {{Note|''All values'' must be included!}}
:: {{Bug|Scaling the texture may cause odd issues where the Texture Lock tool in Hammer will not actually lock the texture in place.}}
:: {{Bug|Rotating textures applied on brushes will rotate around the map origin (confirm: Orangebox engine only?). A fix for this is to change the center position in the VMT to the brush's origin.}}<!--
 
-->
|:ru=:Позиция по умолчанию: {{Code|style=1|center .5 .5 scale 1 1 rotate 0 translate 0 0}}.
:# {{Code|style=1|select=1|center}} определяет ценр вращения. Необходим только при использовании {{Code|style=1|select=1|rotate}}.
:# {{Code|style=1|select=1|scale}} вставляет текстуру в материал заданное количество раз. {{Code|style=1|select=1|2 1}} — это 50%-ый масштаб по оси X.
:# {{Code|style=1|select=1|rotate}} вращает текстуру "против часовой стрелки/по часовой стрелке" в градусах. Принимает любое число, включая негативы.
:# {{Code|style=1|select=1|translate}} сдвигает текстуру до заданных значений. Значение {{Code|style=1|select=1|.5}} сдвинет текстуру на 50%.
::{{Note|''Все значения'' должны быть добавлены!}}
::{{Bug|Масштабирование текстуры может вызвать странные проблемы, когда инструмент «Texture Lock» в Hammer фактически не фиксирует текстуру на месте.}}
::{{Bug|Вращающиеся текстуры, примененные к брашам, будут вращаться вокруг начала координат карты. Чтобы исправить это, нужно изменить центральное положение в VMT на начало координат браша.}}<!--
 
-->
|:fr=:La position par défaut est {{Code|style=1|center .5 .5 scale 1 1 rotate 0 translate 0 0}}.
:# {{Code|style=1|select=1|center}} définit le point de rotation. Utilise seulement si <code>rotate</code> est utilisé.
:# {{Code|style=1|select=1|scale}} mets la texture dans le matériaux le nombre de fois spécifié. {{Code|style=1|select=1|2 1}} est un scale à 50% dans l'axe X.
:# {{Code|style=1|select=1|rotate}} tourne la texture en sens ''anti-''horaire. Accepte n'importe quel nombre, mêmes négatifs.
:# {{Code|style=1|select=1|translate}} modifie le placement de la texture par le nombre donné d'hauteur et de largeur. {{Code|style=1|select=1|.5}} la bougera de moitié.
:: {{Note|''Toutes les valeurs'' doit être inclues!}}
:: {{Bug|Utiliser ''scale'' peut causer des bugs assez bizarres ou l'outil Texture Lock dans Hammer ne va pas bloquer la texture ou elle est.}}
:: {{Bug|Rotating textures applied on brushes will rotate around the map origin (confirm: Orangebox engine only?). A fix for this is to change the center position in the VMT to the brush's origin.}}<!--
 
-->
|:es=:La posición predeterminada es {{Code|style=1|center .5 .5 scale 1 1 rotate 0 translate 0 0}}.
:# {{Code|style=1|select=1|center}} define el punto de rotación. Solo es útil si se está usando {{Code|style=1|select=1|rotate}}.
:# {{Code|style=1|select=1|scale}} ajusta la textura en el material el número de veces dado. {{Code|style=1|select=1|2 1}} es un escalado del 50% en el eje horizontal X mientras que el eje vertical Y aún está en la escala original.
:# {{Code|style=1|select=1|rotate}} rota la textura en sentido antihorario en grados. Acepta cualquier número, incluidos los negativos.
:# {{Code|style=1|select=1|translate}} desplaza la textura por los números dados. {{Code|style=1|select=1|.5}} la desplazará a la mitad. 1 la desplazará completamente una vez, lo cual es lo mismo que no moverla en absoluto.
:: {{Note|''¡Todos los valores'' deben ser incluidos!}}
:: {{Bug|El escalado de la textura puede causar problemas extraños donde la herramienta de Bloqueo de Texturas en Hammer no bloqueará realmente la textura en su lugar.}}
:: {{Bug|Rotar texturas aplicadas en pinceles rotará alrededor del origen del mapa (confirmar: ¿solo en el motor Orangebox?). Una solución para esto es cambiar la posición central en el VMT al origen del pincel.}}
}}</includeonly></onlyinclude>{{doc}}<!--

Latest revision as of 13:22, 27 June 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Template with text.

Parameters

{{{suf}}} - Optional. This is a suffix that will be added to all elements of the template to display the content in the desired language (if it is translated into it).

Note.pngNote:There should be a colon before the language code, for example ":es".

Examples

{{VMT UVtransform}}

The default position is center .5 .5 scale 1 1 rotate 0 translate 0 0.
  1. center defines the point of rotation. Only useful if rotate is being used.
  2. scale fits the texture into the material the given number of times. 2 1 is a 50% scale in the horizontal X axis while the vertical Y axis is still at original scale.
  3. rotate rotates the texture counter-clockwise in degrees. Accepts any number, including negatives.
  4. translate shifts the texture by the given numbers. .5 will shift it half-way. 1 will shift it once completely over, which is the same as not moving it at all.
Note.pngNote:All values must be included!
Icon-Bug.pngBug:Scaling the texture may cause odd issues where the Texture Lock tool in Hammer will not actually lock the texture in place.  [todo tested in ?]
Icon-Bug.pngBug:Rotating textures applied on brushes will rotate around the map origin (confirm: Orangebox engine only?). A fix for this is to change the center position in the VMT to the brush's origin.  [todo tested in ?]


{{VMT UVtransform|suf=:fr}}

La position par défaut est center .5 .5 scale 1 1 rotate 0 translate 0 0.
  1. center définit le point de rotation. Utilise seulement si rotate est utilisé.
  2. scale mets la texture dans le matériaux le nombre de fois spécifié. 2 1 est un scale à 50% dans l'axe X.
  3. rotate tourne la texture en sens anti-horaire. Accepte n'importe quel nombre, mêmes négatifs.
  4. translate modifie le placement de la texture par le nombre donné d'hauteur et de largeur. .5 la bougera de moitié.
Note.pngNote:Toutes les valeurs doit être inclues!
Icon-Bug.pngBug:Utiliser scale peut causer des bugs assez bizarres ou l'outil Texture Lock dans Hammer ne va pas bloquer la texture ou elle est.  [todo tested in ?]
Icon-Bug.pngBug:Rotating textures applied on brushes will rotate around the map origin (confirm: Orangebox engine only?). A fix for this is to change the center position in the VMT to the brush's origin.  [todo tested in ?]


{{VMT UVtransform|suf=:ru}}

Позиция по умолчанию: center .5 .5 scale 1 1 rotate 0 translate 0 0.
  1. center определяет ценр вращения. Необходим только при использовании rotate.
  2. scale вставляет текстуру в материал заданное количество раз. 2 1 — это 50%-ый масштаб по оси X.
  3. rotate вращает текстуру "против часовой стрелки/по часовой стрелке" в градусах. Принимает любое число, включая негативы.
  4. translate сдвигает текстуру до заданных значений. Значение .5 сдвинет текстуру на 50%.
Note.pngNote:Все значения должны быть добавлены!
Icon-Bug.pngBug:Масштабирование текстуры может вызвать странные проблемы, когда инструмент «Texture Lock» в Hammer фактически не фиксирует текстуру на месте.  [todo tested in ?]
Icon-Bug.pngBug:Вращающиеся текстуры, примененные к брашам, будут вращаться вокруг начала координат карты. Чтобы исправить это, нужно изменить центральное положение в VMT на начало координат браша.  [todo tested in ?]