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"

Inaccurate Lerp

Im trying to create mask based on color and use it to lerp different effect into material. My problem is that lerp function is not accurate. If i setup the material as follows : alt text

then the result is alt text

The texture is created in ms-paint(red rectangle[1,0,0] and green[0,1,0] ) and there is no compression, no sRGB, no mipmaps and yet the mask wich should be precise generates pixel wide "border". Maybe i'm missing something, im do not have much experience with materials, but this seems like a bug to me.

Did anyone encounter similar problem? Is there a fix or work around? I really don't want to create separate textures with inflated masks just for this...

Product Version: UE 4.20
more ▼

asked Mar 02 '19 at 09:08 PM in Rendering

avatar image

57 8 10 15

avatar image ClockworkOcean Mar 03 '19 at 10:46 AM

Try this experiment with plain red from the engine and see what happens...

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

1 answer: sort voted first

its not inaccurate, as your texture gets interpolated between pixels when you display it in higher resolution, which is 100% normal GPU does that by default, your rec color slides down at the end in lerps to original image which makes red color leak in to it. I don't know what exactly you want to do you might want to use "If" node instead of Lerp. Or maybe you should use some real case scenerio what ever oyu trying to do

more ▼

answered Mar 03 '19 at 01:54 PM

avatar image

37.1k 935 172 1116

avatar image SerzaNT Mar 03 '19 at 02:20 PM

I'm trying to create interactive map, similar to post here https://bit.ly/2NECKpL. I'm using the region color map to mask the individual zones. I have tried "if" and it does the same thing. Additionally, the mesh is procedurally generated so it matches texture size ratio(there is some multiplicator), so im not sure why there is this interpolation. Is there any way of turning it off??

(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