x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to put the same texture size on objects?

How to put the same texture size on objects? alt text

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

Product Version: UE 4.7
Tags:
oxrocou.jpg (325.1 kB)
more ▼

asked May 20 '15 at 06:48 PM in Using UE4

avatar image

Maciej3210
27 9 10 12

avatar image Maciej3210 May 21 '15 at 07:39 PM

Can anyone help me?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Maciej3210,

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.

alt text

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.

alt text

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!

Matthew Clark

more ▼

answered May 21 '15 at 08:49 PM

avatar image Maciej3210 May 23 '15 at 09:14 AM

It doesn't work for me. I use Unreal Engine 4.7.6.alt text alt text

fglinri.jpg (267.9 kB)
enfvsov.jpg (335.9 kB)
avatar image Matthew J May 26 '15 at 12:58 PM

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.

avatar image Matthew J Jun 02 '15 at 06:27 PM

Hi Maciej3210,

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.

avatar image Saphia Jun 22 '15 at 07:11 PM

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?

avatar image Matthew J Jun 22 '15 at 07:27 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question