Unreal Engine 4 General Questions

How do I scale a material from the StartContent?

I've created a new project with the Third Person blueprint and Starter Content. I'm trying to apply Concrete Tiles material to the floor but as you can see from the screenshot below it needs to be scaled so that it looks right.

image

Googling for an answer shows I have to fiddle with the Shader's nodes but I'm sure there's got to be a simpler way?

FYI, the floor mesh scale is 100x100

Comments

  • Texture scale is dependent on a mesh's UVs. So either you have to change the scale of how the UVs are read in the shader, or you have to change how the UVs are stored on the mesh itself. If you're using a mesh for your floor, then you scale your UVs in your 3D modelling program. If you're using BSP geometry, there are apparently tools for aligning/scaling texture projections. I haven't even opened the editor in years, but hopefully that gives you direction on where to look.
  • From the screenshot, he's using Static Meshes for the floor. The "correct" way to do it would be to resize your floor static mesh down to a size that fits the characters in your game, and then duplicate it over the entire area you want to cover - ie. in a UT level they would do this.

    If you're just doing something quick you can use BSP brushes to create quick geometry that can have their UV tiling edited right there in the editor, but they are not as robust as static meshes (I've had problems with them not correctly casting dynamic shadows, etc.)
  • Hi Fengol. You should really come join the skype group. Can get answers very quickly.

    Basically you want to open your material. And then add a node Texture coordinates. U then select the coordinates and you can then adjust your tiling value. Just plug the node into the base / normal and whatever else is applicable.
Sign In or Register to comment.