3D model color blending bugs out when skincolor repeats colors

Turret 49

Member
It's a bit hard to explain because I'm not entirely sure what's happening, but when a skincolor repeats a color multiple times in a row, the blending system will ignore the repeats and just act strangely, causing inaccuracies to occur. This effect is most easily seen with SKINCOLOR_ICY, where the skincolor is made darker than it's supposed to be, but I have also made some custom skincolors to show how extreme this bug can be.
Attached is a .lua with 4 skincolors, "test1", "test2", "test3", and "test4". Note how 1, 2 and 3 are blended almost the same, despite being very different. I have no idea what's going on with test4.

Credit to @fznmeatpopsicle for the guide and test model used, which is also attached. Edit the pink line in color.png to whatever skincolor palette you want to compare for blending.
 

Attachments

  • howtouse.png
    howtouse.png
    343.7 KB · Views: 144
  • icy.png
    icy.png
    278 KB · Views: 143
  • test1.png
    test1.png
    277.8 KB · Views: 143
  • test2.png
    test2.png
    277.8 KB · Views: 119
  • test3.png
    test3.png
    277.5 KB · Views: 113
  • test4.png
    test4.png
    277.8 KB · Views: 147
  • skincolortest.lua
    975 bytes · Views: 83
  • colortest.zip
    1,010 bytes · Views: 109

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top