Menu

Equality module works wrong?

Plugins
2021-12-13
2022-03-04
  • Maksim Khramov

    Maksim Khramov - 2021-12-13

    I experimenting with Equality module and looks like it works bad...
    Once I try to compare 2 equal colors i see always false result
    Once I try to compare 2 equal Numbers connected to 1'st or second pair of scalars it works
    For 3 or 4 pairs of scalars it produces again false result

     
  • Luke S

    Luke S - 2021-12-14

    Scene with an example texture?

     
  • Luke S

    Luke S - 2021-12-14

    Confirmed. Unfortunately, we don't have source for this plugin. It looks like it would be fairly simple, but I'm not sure what is happening here.

     
  • Runic

    Runic - 2021-12-18

    It's definitly broken and probably has been for a very long while.

    Looks like the author changed the IOPorts defined, but failed to finish changing the coding of it's getAverageValue method so that it would still function correctly.

    First It looks for COLORs to compare from
    IOPort 2 (labeled: Color 1) and IOPort 3 (labeled: Scaler 1: 1)
    But users can not attach a color to IOPort 3 as it's defined as a NUMBER not a COLOR
    BUT SHOULD BE using IOPort 7 not 3

    if the above color compare does not return a result, it then goes on to try to compare the scalers at IOPorts:
    2 and 7, 3 and 8, 4 and 9
    returning a result on first pair to fall within tolerance

    BUT SHOULD BE:
    3 and 8, 4 and 9, 5 and 10, 6 and 11

    defined input ports:
    0 False
    1 True
    2 Color 1
    3 Scalar 1:1
    4 Scalar 1:2
    5 Scalar 1:3
    6 Scalar 1:4
    7 Color 2
    8 Scalar 2:1
    9 Scalar 2:2
    10 Scalar 2:3
    11 Scalar 2:4

    note this plugin compares values using a hard coded tolerance of 1.0E-12

     

    Last edit: Runic 2021-12-18

Log in to post a comment.

MongoDB Logo MongoDB