Scrolling textures?

Discussion in 'Mapping Questions & Discussion' started by Tuaam, Dec 3, 2015.

  1. Tuaam

    Tuaam L6: Sharp Member

    Messages:
    326
    Positive Ratings:
    186
    Alright so I have the file set up for editing but I need to know how to make a texture scroll? How would I edit the text to make this texture scroll (Both alphas). I need this for a map I'm making that takes place on a train.

    Here's the code:
    ====================
    "WorldVertexTransition"
    {
    "$basetexture" "Nature/rockwall001forest"
    "$basetexture2" "Nature/snow_full001"
    "%tooltexture" "Nature/rockwall001forest"
    "$blendmodulatetexture" "Nature/snowwall_blendmask"
    "$bumpmap" "Nature/rockwall001_normal"
    "$bumpmap2" "Nature/rockground002_height-ssbump"
    "%keywords" "tf"
    "$surfaceprop" "dirt"
    TextureScroll
    {
    textureScrollVar $bumpTransform
    textureScrollrate 1.3
    texturescrollangle 270.00
    }

    }
    ====================

    This is the section of code I put in:
    =========================
    TextureScroll
    {
    textureScrollVar $bumpTransform
    textureScrollrate 1.3
    texturescrollangle 270.00
    }
    =========================

    So can somebody post code indicating how to make this scroll?
     
  2. Tuaam

    Tuaam L6: Sharp Member

    Messages:
    326
    Positive Ratings:
    186
    • Moderator Warning: Unnessacary bump
    anybody?
     
  3. ibex

    aa ibex

    Messages:
    253
    Positive Ratings:
    350
    From the little I've learned I think the material has to be an unlitgeneric to allow the texture scroll property. So no blend textures.
     
  4. Invalid nick

    aa Invalid nick

    Messages:
    136
    Positive Ratings:
    498
    LightmappedGeneric works as well,
     
  5. Izotope

    aa Izotope Never releases maps

    Messages:
    605
    Positive Ratings:
    562
    I'm not entirely sure, but I believe you need to specify the basetexture in your textureScrollVar, not the bumpmap.
    Try $basetexture
     
  6. Blade x64

    aa Blade x64 Logical insanity

    Messages:
    200
    Positive Ratings:
    449
    You didn't contain the texture scroll proxy within "proxies". You're also scrolling the bumpmap with bumpmaptransform. Basetexturetransform handles both that and the basetexture.

    Code:
    "Proxies"
    {
      "TextureScroll"
      {
        "textureScrollVar" "$basetexturetransform"
        "textureScrollRate" 0.25
        "textureScrollAngle" 90
      }
    }
    If proxies are supported in world blends, chances are it would use basetexturetransform2 or basetexture2transform for the second texture.

    You can read more on texture manipulation here: http://www.nodraw.net/2010/01/dynamic-materials-with-proxies/.
     
    • Agree Agree x 2
  7. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,216
    Whether this is true or not, from a purely logistical perspective, your blend mask wouldn't scroll along with the individual textures because it's defined by the vertices of the displacement. Open up the texture tool, select the faces you're trying to scroll, and hold down one of the arrow buttons to shift the X or Y offset and watch what happens; that's more or less what you'd get if you were able to scroll the texture.