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"

What is lerp in general?

So as the titel says, I constantly get to see this lerp thing that gets used heavily within materials. But what exactly is it, what does the term lerp define?

Product Version: Not Selected
Tags:
more ▼

asked Dec 23 '14 at 12:01 AM in Using UE4

avatar image

JorisCeoen
53 5 7 11

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

1 answer: sort voted first

Lerp is slang for Linear Interpolate. Given two different inputs A and B, think of a straight line drawn between them - with the Alpha node saying how far along that line you are.

For example, lets say you have a red color [1,0,0] in A - and a blue color [0,0,1] in B. If you set the Alpha to 0.5 (50%), then the Lerp will output a dark purplish color [0.5,0,0.5] - or halfway between each of the X Y and Z components linearly (and independently btw - hence the loss in brightness in this example).

They're great for mixing two materials together. Also very handy for masking out parts of your mesh. Let's say you feed the Alpha with an actual mask texture - wherever there is white you'll get one input and where there is black you'll get the other. Use greys for blending. But anyways, that's the general idea.

more ▼

answered Dec 23 '14 at 12:19 AM

avatar image

1l2Hawk
690 36 35 74

avatar image JorisCeoen Dec 23 '14 at 03:04 PM

Hey man, thanks a whole lot. This made me understand it and makes me understand most of the structures in the starter's content material creations!

avatar image NLEGITN Jan 28 '15 at 11:31 PM

I thought this was also very informative! Let's say you have a green sewer texture and a lava texture right next to each other. Could you use Lerp and a black and white mask to make the black the sewer texture and the white the lava texture??

avatar image ddsol Dec 17 '15 at 07:58 PM

Your comment and independently btw - hence the loss in brightness in this example is incorrect. The reason it's darker is mostly because of the standard gamma of ~2.2. A value of 50% brightness in the computer translates to about 22% brightness on the monitor, which is much less than 50%. sRGB colors, in particular, are very bad candidates for lerping. Modern graphics hardware can correct for these issues.

avatar image ymars STAFF Apr 30 '16 at 03:00 AM
avatar image DisplaySweet Sep 15 '17 at 02:34 AM

... an example on how to use it in different scenario than materials: https://www.youtube.com/watch?v=Fa8Cg6Q9bLY

avatar image Jakoban Jun 23 '18 at 09:20 AM

Say isn't that what blend does?

(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