A picture of the material would help.
Hello,
I’m new to Unreal and tried to follow along the “Intro to Materials: Adding Textures to a Material” video on youtube. I don’t have the slightest clue what I’m getting wrong but I keep getting error! under “Lerp” and I can’t figure out what that’s about. Any help would be very appreciated.
305639-
Take a screenshot of your graph or at the very least tell the error message in the material editor. Without this info no one can help you.
Hey, thanks for the reply. Don’t have a picture unfortunately. I’m about 15 minutes in to doing tutorials so my knowledge about materials and what they are is virtually nil. Pretty sure I haven’t actually completely made one yet.
I’m basically following this dude along and hoping for the best:
I’m stuck roughly at the 9min mark.
Like he said ( below ).
Hi MMMarcis, thanks for checking in. At the risk of sounding like an idiot, I thought the screenshot I posted was the graph… I see that it was in fact the material editor.
The error message I get is: [SM5] (Linear Interpolate) Coercion Failed: Local2. rgba: float4 → float
Hi MMMarcis, thanks for checking in. At the risk of sounding like an idiot, I thought the screenshot I posted was the graph… I see that it was in fact the material editor.
The error message I get is:
[SM5] (Linear Interpolate) Coercion Failed: Local2.rgba: float4 → float
Not sure if that’s what you’re referring to but I’ll attach more screenshots in a sec.
It’s a very old version of the engine. They must have made changes to how lerp works. To get rid of the error you need to plug in RGBA in either A or B of the lerp node. Like a texture or a constant 4 vector.
Great! Thanks for the quick reply and sorting that out for me, I really appreciate it.
No problem. Good luck!