How to put the same texture size on objects?

How to put the same texture size on objects?

I want to have the same size of texture on this two rectangulars. How can I do that?

1 Like

Can anyone help me?

Hi ,

There are two ways to do this. The first way is easier, but uses more space and memory as it would involve duplicating the material. I’ll show you the second way as it is better for performance. The first thing you’ll have to do is edit the material itself a little bit. First find the ‘TexCoord’ node. Then you should add a Multiply node and a ScalarParameter. Name the parameter whatever you want, but remember the name (It is case sensitive) and set it’s default value to 1. You’ll need to take the things that are plugged into TexCoord and plug them into the right side of the Multiply node, and then plug the TexCoord and ScalarParameter into the left side.

Apply those changes and then return to the editor. Next up, you’ll need to make any objects using this material into a blueprint if they aren’t already (If anything has been scaled with this texture, it should probably be made into a blueprint at this point.) Inside the blueprint, create a float variable and set it to public (I called mine “Scaling”) and go to the Construction Script. You then need to add 3 nodes: Create Dynamic Material Instance, Set Scalar Parameter Value, and Set Material. Hook them as shown below and be sure to put the texture in for the ‘Parent’ part of the ‘Create Dynamic Material Instance’ node and enter the parameter we made in the texture in the ‘Parameter Name’ field of the ‘Set Scalar Parameter Value’ node.

Once this is done, you can select the instances of the blueprint(s) in the level and set their “Scaling” parameter, or whatever you called it, to change the scale of the texture.

Hope this helps!

It doesn’t work for me. I use Unreal Engine 4.7.6.

The ‘Scaling’ param in the Texture’s properties should be set to 1 as a default value, and the ‘Return Value’ pin of the ‘Create Dynamic Material Instance’ node needs to be plugged into the Collection pin of the ‘Set Scalar Parameter Value’ node.

Hopefully this’ll fix the problem, let me know if you have any more issues.

Hi ,

We haven’t heard from you in a while. Did my solution work to solve your issue? If you require any more assistance, let me know. In the meantime, I’ll be setting this issue to resolved.

Hi Saphia,

If you wish to convert a BSP to a blueprint, this cannot be done directly. You’ll need to convert the BSP into a static mesh and then into a BSP. Unfortunately there is currently a bug in 4.8 where BSPs cannot be converted as the option is grayed out. This is fixed in a future update but I am unsure of when it will be integrated. If you are still working in 4.7.6, this should still be possible.

hey im trying to do a similar thing but i’m adding the material to BSP Brushes, how do i make a blueprint for these?