Announcement

Collapse
No announcement yet.

Material editor questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Material editor questions

    is there a way to rotate a node, without having it keep rotating? and the same question for the Panner.

    I simply want to be able to translate an image in a direction, or rotate it. (I do NOT mean the end result, or the initial texturesample, I mean as part of the material)

    Don't say using the surface properties window or I'll hunt you down.

    #2
    You certainly can, here's a little something I made which should incorporate everything you need to manipulate a static texture's position, rotation and scale :

    [SHOT]http://www.plugh.co.uk/images/stuff/scale-rotate-offset.jpg[/SHOT]

    As you can see the rotator's speed is set to 0.017453, this converts the "Rotation Degrees" node to Radians, which the engine uses. The UV Offset nodes will control the panning in the X and Y directions. The Non-Uniform Scale switch will allow you to scale in both directions simultaneously, or independently when activated.

    Plug the Add on the left into the UV input of your texture, and leave the TexCoord at 1,1.

    Comment


      #3
      Sorry I'm a noob at materials and I'm having a hard time understanding. Could you explain what exactly this does, or maybe a picture of what it does? I would love to see what's happening :]

      Comment


        #4
        Yeah sure,

        Default, with no parameter changes :
        [SHOT]http://www.plugh.co.uk/images/stuff/plugh-default.jpg[/SHOT]

        With the rotation set to 45ยบ :
        [SHOT]http://www.plugh.co.uk/images/stuff/plugh-rotate.jpg[/SHOT]

        With the Y offset set to 0.25 :
        [SHOT]http://www.plugh.co.uk/images/stuff/plugh-offset.jpg[/SHOT]

        With the Non-Uniform Scale turned on, and the Scale (X) set to 2 and the Scale Y set to 0.5 (I also adjusted the UV Offsets to centre it up) :
        [SHOT]http://www.plugh.co.uk/images/stuff/plugh-scale.jpg[/SHOT]

        Hope that helps : )

        Comment


          #5
          Thanks for that setup plugh

          Comment


            #6
            sweet thx

            but i must say thats a bit of stuff just to get it to do that, a simple node be added,
            cause i have run into this problem a couple times b4

            Comment


              #7
              sweet thx

              but i must say thats a bit of stuff just to get it to do that, a simple node be added,
              cause i have run into this problem a couple times b4

              Comment


                #8
                Once you set up the nodes on a single material, you can just copy and paste the setup onto any other materials. This is great because you can change the values through a material instance constant and get so much more use out of your material.

                Comment

                Working...
                X