Results 1 to 12 of 12
  1. #1
    MSgt. Shooter Person
    Join Date
    Aug 2012
    Posts
    31

    Question how to offset a texture?

    Hello I'm a noobie wandering how can move/offset a texture along the material? I know how to scale a texture, but I need just to move it at some direction. I don't want to be animated - I just want to move it at some direction and to be static. I will be very happy if someone help!

  2. #2
    Boomshot
    Join Date
    May 2011
    Location
    Chicago
    Posts
    2,066

    Default

    Use a texture coordinate node connected to the UV input of your texture and adjust the properties there.

  3. #3
    MSgt. Shooter Person
    Join Date
    Aug 2012
    Posts
    31

    Default

    Thank you JessieG, but it looks like I can only make the texture tiled with TextureCordinate - I cant just move it but only multiply it at some direction.. Am I doing something wrong? I don't see any property that can move the texture

  4. #4
    MSgt. Shooter Person
    Join Date
    Aug 2012
    Posts
    31

    Default

    I've got help from one other forum. Here is where I was:
    TextureSample <- Add <- TextureCoordinate
    ___________________<- 2-Constant (hold 2 and click)
    http://i.imgur.com/mPT45.jpg
    And here is what resolve the problem:
    Put some values to scroll by in that constant. At the moment you are scrolling 0, 0. It's in UV space so 1 = a full scroll around. Try 0.5 or 0.3 or 0.7.

  5. #5
    MSgt. Shooter Person
    Join Date
    Nov 2008
    Location
    San Francisco
    Posts
    280
    Gamer IDs

    Gamertag: YakZSmelk

    Default

    I don't think it's possible to offset with the standard nodes, I know I've tried in the past using a panner with the time set to zero but that doesn't work either. You really should just be unwrapping your assets for engine.
    Current UDK Project: Wild Wild Western
    Personal Website: robhow.com

  6. #6
    MSgt. Shooter Person
    Join Date
    Aug 2012
    Posts
    59

    Default

    NDK was correct, i use that method. It does tile the texture though

  7. #7
    MSgt. Shooter Person
    Join Date
    Jun 2008
    Location
    UK
    Posts
    167

    Default

    I'm sure i read somewhere that you can use a panner and a constant clamp. Not at my PC else i would try it.

  8. #8
    MSgt. Shooter Person
    Join Date
    Jan 2012
    Posts
    100

    Default

    Quote Originally Posted by ShadowWraith View Post
    NDK was correct, i use that method. It does tile the texture though
    You need to have address x and y set to clamp in the texture's properties.

    If you do that and restart the editor, scaling with tex coord and moving with the panner will work. Just plug a constant of 0.1 into the panner's time and then mess with the speed to move it. This is how all my signs are setup in game.
    Alienware M15x
    i7 940XM 80TDP - 6970m 710/900 1.0v
    16GB DDR3 - 256GB 830 SSD - Hitachi 7K1000
    3x 23" Asus PA238Q IPS LCD
    Adobe CS6 - Blender 2.65a - UDK November 2012

  9. #9
    MSgt. Shooter Person
    Join Date
    Aug 2012
    Posts
    31

    Default

    Quote Originally Posted by YakZSmelk View Post
    I don't think it's possible to offset with the standard nodes, I know I've tried in the past using a panner with the time set to zero but that doesn't work either. You really should just be unwrapping your assets for engine.
    Nope, it is possible and is working great for me.
    TextureSample <- Add <- TextureCoordinate
    ___________________<- Constant
    http://i.imgur.com/mPT45.jpg
    To ofset the texture you must put some values in to the constant. Something different than 0 or other full number like 1,2,3,4... You must put something that is not full number = 0.5 or 0.3 or 0.7...
    Last edited by NDK; 08-13-2012 at 11:45 AM.

  10. #10
    MSgt. Shooter Person
    Join Date
    Nov 2008
    Location
    San Francisco
    Posts
    280
    Gamer IDs

    Gamertag: YakZSmelk

    Default

    Quote Originally Posted by NDK View Post
    Nope, it is possible and is working great for me.
    TextureSample <- Add <- TextureCoordinate
    ___________________<- Constant
    http://i.imgur.com/mPT45.jpg
    To ofset the texture you must put some values in to the constant. Something different than 0 or other full number like 1,2,3,4... You must put something that is not full number = 0.5 or 0.3 or 0.7...
    Cool to see this actually work, I had tried this so many times and could never get it working properly, thanks for sharing.

    I do stick with my second half of my post though and that you should be UVing properly so that you don't have to offset the textures in engine.
    Current UDK Project: Wild Wild Western
    Personal Website: robhow.com

  11. #11
    Redeemer
    Join Date
    Sep 2007
    Location
    Finland
    Posts
    1,288

    Default

    Soooo why not just use the texture panner node with constant time?

  12. #12
    MSgt. Shooter Person
    Join Date
    Aug 2012
    Posts
    31

    Default

    Quote Originally Posted by Xendance View Post
    Soooo why not just use the texture panner node with constant time?
    because you told me just now
    Ok so this is another way, thanks!
    EDIT: and also Monkey-666 and JohnnyFlash also..
    Last edited by NDK; 08-16-2012 at 05:29 PM.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.