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"

Extrapolate clamped texture with fixed color

I want to set a small texture onto a large object, that only consists of one face. So I unwraped this face (in Blender) and scaled it up in the UV editor. The more I scale it up, the smaller the texture is on the object. (I hope it’s understandable: The unwrapped faces goes beyond the normal borders of the uv map.)

The problem is, that the pixels outside the texture are just continued from its border pixels, but I want them to be transparent (or any other color that I set).

Material editor Final result

As you can see, the corners of the stop sign are already transparent, so most of the object is blue as desired, but it also touches the border and – depending on the LOD – either the very thin black or the bigger white border of the sign are extrapolated to the sides beyond the texture.

Please note that I disabled tiling in my texture asset by setting “X/Y-axis tiling method” to Clamp. You can find this option in the section “Texture” under Advanced.

Product Version: UE 4.18
Tags:
more ▼

asked Nov 30 '17 at 05:51 PM in Using UE4

avatar image

phisigma
195 3 9 11

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

1 answer: sort voted first

While you can achieve that by modifying the material, I would consider this:

  • Scale down the stop sign in a texture editing program just a little(while keeping the texture size constant)

  • Draw a narrow blue frame around the texture borders

more ▼

answered May 26 '19 at 07:31 PM

avatar image

EmAr
156 2 5 6

avatar image phisigma May 27 '19 at 12:33 PM

Well, nearly two years too late, but at least someone cares of my problems :-)

My result:

alt text

Looks like a hack, but you can easily define a frame in the material editor. Connecting the "Scale" parameter to the "Texture Scale" input node is not necessary, but let’s you scale the texture additionally.

solution.jpg (73.9 kB)
(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