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?
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?
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!
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?