Reply
Reply
 
Thread Tools Display Modes
NDK's Avatar
Old (#1)
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 would be very happy if someone help!
Offline , null, 5 Posts, Join Date Aug 2012,  
   Reply With Quote

Froyok's Avatar
Old (#2)
The Panner node is what you are looking for. Put it in the UV input of your texture sample node.
Offline , polycounter, 797 Posts, Join Date Jun 2010, Location Namur, Belgium Send a message via MSN to Froyok Send a message via Skype™ to Froyok  
   Reply With Quote

NDK's Avatar
Old (#3)
Thank you! But I don't want to be animated - can I just move it at some direction and be static?
Offline , null, 5 Posts, Join Date Aug 2012,  
   Reply With Quote

JamesWild's Avatar
Old (#4)
Yeah.

TextureSample <- Add <- TextureCoordinate
_____________________<- 2-Constant (hold 2 and click)
Offline , polygon, 661 Posts, Join Date Nov 2011,  
   Reply With Quote

NDK's Avatar
Old (#5)
Quote:
Originally Posted by JamesWild View Post
Yeah.

TextureSample <- Add <- TextureCoordinate
_____________________<- 2-Constant (hold 2 and click)
Sorry, but I don't unerstand..
TextureCoordinate can make the tesxture tiled and this don't help.
About Constand - it changes the color somehow.. I dont understand
Offline , null, 5 Posts, Join Date Aug 2012,  
   Reply With Quote

Santewi's Avatar
Old (#6)
If you add (by using the Add node) to texture coordinates, it pans the texture. Then just plug the add node into the texture's UV input.
Offline , spline, 149 Posts, Join Date Mar 2012,  
   Reply With Quote

NDK's Avatar
Old (#7)
Thank you all for doing this, but again I don't understand what must be made . Like I said I'm a serious noobie and probably I don't know something very essential and there is the problem.
Here is what I made so far trying to do what JamesWild told me: http://i.imgur.com/mPT45.jpg
On TexCoord I can only make the texture tiled and on Constand I'm doing nothing
Offline , null, 5 Posts, Join Date Aug 2012,  
   Reply With Quote

JamesWild's Avatar
Old (#8)
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.
Offline , polygon, 661 Posts, Join Date Nov 2011,  
   Reply With Quote

McGreed's Avatar
Old (#9)
You might want to check out the tutorials on this page:
http://www.hourences.com/tutorials/

Especially the Material Editor – Examples 1 tutorial, which mentions Panner.
Anders K. Nielsen - Environment Artist - LinkedIn
"It is wrong always and everywhere for anyone to believe anything on insufficient evidence."
Offline , polycounter, 999 Posts, Join Date Nov 2008, Location Dublin, Ireland Send a message via MSN to McGreed  
   Reply With Quote

NDK's Avatar
Old (#10)
Ahh finaly I made it!
I don't find yet the logic of this red and green how is changing the position, nor of the A B output, but I guess I need to read more tutorials.
Thank you JamesWild and all again for helping me out!
Offline , null, 5 Posts, Join Date Aug 2012,  
   Reply With Quote

Santewi's Avatar
Old (#11)
Red is X axis and green is Y.

The "A" and "B" in the Add node are just in the inputs it takes and then adds their values together.
Offline , spline, 149 Posts, Join Date Mar 2012,  
   Reply With Quote

JamesWild's Avatar
Old (#12)
The colour shown is just a representation of the two raw values. There's no such thing as a colour in shaders - just a multi-channel value interpreted as one. You can multiply the TextureCoordinate to scale the sample too. Note that (hit space to refresh all shown) the TextureCoordinate block is basically two overlaid gradients.
Offline , polygon, 661 Posts, Join Date Nov 2011,  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch