Announcement

Collapse
No announcement yet.

Problem whit the material alignment in a Staticmesh

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

    Problem whit the material alignment in a Staticmesh

    Hello all. First sorry if my english is not very good.
    Ok, i have a problem whit the material alignment of a staticmesh.
    I want the alignment of the one staticmesh match whit the alignment of the material of the wall, and i no have idea how to resolve this. The idea is, for example, simulated broken bricks in a wall.
    I try some things, one is change the material, searching one material expression to change the alignment, but i only find the "TextureCoordinate" material expresion, and this only change the scale of the material, not the alignment.
    I hope someone can help me to resolve this problem. Many thanks in advance!

    There is a simple example of the problem:


    #2
    Originally posted by Marti View Post
    I try some things, one is change the material, searching one material expression to change the alignment, but i only find the "TextureCoordinate" material expresion, and this only change the scale of the material, not the alignment.
    I hope someone can help me to resolve this problem. Many thanks in advance!
    This is why I take notes, which I had to look at to find the answer.

    Insert an "Add" node and connect it's output into the UVs input of the Texture Sample. Now take your "TexCoord" (which controls the scaling) and plug it's output into one of the inputs (A or B) of the "Add" node. Add a "Constant2Vector" and plug it's output into the other input of the "Add" node.

    With the Constant2Vector, change the values of "R" and "G" to move it's location. You may also have to mess with the TexCoord values as well.

    It may be a challenge to align them properly, but good luck!

    Comment


      #3
      Hmm never knew this, cheers Odedge

      Comment


        #4
        Thanks a lot Odedge, i test this and really works, now i can scale the material and aligment the UVs. Someway, this method is very tedious, i need try a lot of times before put the correct alignment. If someone know another faster method, i wanna know .
        Tnks again Odedge! Best regards.

        Comment


          #5
          Originally posted by Piranhi View Post
          Hmm never knew this, cheers Odedge
          Originally posted by Marti View Post
          Thanks a lot Odedge, i test this and really works, now i can scale the material and aligment the UVs. Someway, this method is very tedious, i need try a lot of times before put the correct alignment. If someone know another faster method, i wanna know .
          Tnks again Odedge! Best regards.
          No problems. When ever I learn something new, I take notes. More than likely I won't remember each step (unless I use it a lot).

          If you are working with stock meshes and such, I don't think it can be faster. I am starting to learn how to create and UV map my own meshes, and that's a bit confusing as well.

          The Surface Properties window works great for basic materials, but I don't think there is anything like that in Blender.

          Comment

          Working...
          X