Description

Under certain conditions, the material compiler appears to detect errors where there are none. I debugged the particular case of the RGBtoHSV material function with JonathanL, and we believe that this is a bug in the compiler.

In an attempt to track down the issue, I copy/pasted the contents of the RGBtoHSV function directly into the material. This showed that two of the if-nodes supposedly had wrong inputs. Both inputs expect float values, and the inputs are float indeed. However, the material compiler determines that the inputs are not compatible and prints an error. Perhaps the error masks another problem in a different node, and the error message is misleading. I was not able to determine whether this is the case.

Steps to Reproduce

1) Create a new material
2) Wire up the RGBtoHSV material function as shown in materialeditor2.jpg

Result: The RGBtoHSV function is shown to have an error

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.18
Target Fix4.19
Fix Commit3733463
Main Commit3771573
Release Commit3734253
CreatedOct 30, 2017
ResolvedNov 2, 2017
UpdatedJun 23, 2018
Pull Requests
4447 - klorberg