Scrolling UVs ?

Discussion in 'Mod Discussions' started by killerkiwijuice, December 17, 2015.

  1. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I came accross a problem that I probably won't solve by my self (at least not in the amount of time i'd like)

    I'm just wondering if anyone knows how to use the scrolling UVs for textures. For the most part i'm wondering what the json flag does:
    (example)
    Code:
    "scrolling_uv": {
        "scroll_rate": 0.5,
        "uv_split": 0.875
      },
    What is that number doing for UV split? Is it an X coordinate?
  2. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Well, you already have scroll_rate which is obviously speed. The other thing I would assume you would want is direction. Perhaps it is the split between U velocity and V velocity?
  3. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I'm not sure, but there is nothing that tells the game which part of the UV map to use for tank treads. How would it know to use X part of the UV to scroll? That's what I think that number corresponds to, but I don't know exactly what it represents.
  4. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Ok maybe i did figure it out... xd

    So I was correct, the uv_split is like an X coordinate for the UV map. This is the cutoff point for the texture, anything beyond this percentage point will be animated.

    And yes, it represents a percentage. I had to eyeball it in photoshop by using the ruler and dividing the point where i want it to cutoff by the end of the UV map.

    (~1500 pixels divided by 2048 pixels in my example)
  5. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    WOOSH!
    ^ the sound of what you just said going over my head.
    killerkiwijuice likes this.

Share This Page