» Texture Transformation
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Texture Transformation

Russian

Primitives

Note that all of the primitives like Quad (DX9), Segment (DX9),... have a Texture Transform next to the Transform. If you want to position/scale/rotate the texture on a primitive (instead of the primitive itself) you best connect a Transform (Transform 2d) node to the Texture Transform. Like this you can achieve all desired transformations.

Also note the Sampler State which accepts Filter (EX9.SamplerState) and Address (EX9.SamplerState) the latter of which is also interesting in connection with texture transformations. It allows you to specify how a texture is drawn outside of its own borders, ie. when a texture is scaled smaller. The address mode can be specified for U and V (ie. horizontal and vertical direction) separately and take one of 5 options:

  • Wrap - simple repeat
  • Mirror - repeating with every second version being flipped
  • Clamp - repeating only the last pixel
  • Border - allows to specify a border color via Border Color
  • MirrorOnce - mirrors once, then clamps

Effects

Most effects have a Texture Transform as well but they don't have a Sampler State. If you want to use a special sampler state on an effect you can only do that in its code, which is easy. First rightclick an effect and save a local copy via Ctrl+S. Now locate the sampler state block, which typically looks something like this:

sampler Samp = sampler_state
{
    Texture   = (Tex); 
    MipFilter = LINEAR;
    MinFilter = LINEAR;
    MagFilter = LINEAR;
};

Here you can now add addressmodes and a bordercolor, like

sampler Samp = sampler_state 
{
    Texture   = (Tex);          
    MipFilter = LINEAR;         
    MinFilter = LINEAR;
    MagFilter = LINEAR;
    AddressU = BORDER;
    AddressV = MIRROR;
    BorderColor = float4(1, 0, 0, 1); //red border
};

anonymous user login

Shoutbox

~6d ago

joreg: Workshop on 16 05: Introduction to Shaders. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-introduction-to-shaders-in-vvvv/

~7d ago

bjoern: hello, I am looking for a job / project starting june. get in touch via vvvv specialists available for hire

~13d ago

joreg: Workshop on 09 05: Deepdive into the Stride 3D Engine. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-advanced-3d-rendering-in-vvvv-with-stride/

~13d ago

tekcor: Dear vvvv community, I am leaving my personal fundraiser here because I know many of you personally, sending love https://t.ly/iV9l_

~14d ago

joreg: Rewatch the 24th vvvvorldwide meetup here: https://www.youtube.com/live/gNszIiRAjDo?si=0RXF0pW73EUaRqGk

~14d ago

joreg: LINK - the vvvv summer camp 2024 is announced: https://visualprogramming.net/blog/2024/link-the-vvvv-summer-camp-24/

~17d ago

joreg: Tonight, May 3, vvvv meetup in Berlin or via stream: https://visualprogramming.net/blog/2024/24.-vvvv-worldwide-meetup/

~20d ago

joreg: Workshop on 02 05: Intro to the Stride 3D Engine. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-intro-to-the-stride-3d-engine-in-vvvv/