Hello Guest

Author Topic: FloydSteinbergDithering bug  (Read 4558 times)

dilshod

  • Newbie
  • *
  • Posts: 2
    • View Profile
FloydSteinbergDithering bug
« on: February 13, 2017, 07:49:14 am »
Hi,
In the FloydSteinbergDithering script, i found lines:
Code: [Select]
case TextureFormat.RGB565:
quantShiftR = 5;
quantShiftB = 6;
quantShiftG = 5;
quantShiftA = 0;
break;

imho, it should be:
Code: [Select]
case TextureFormat.RGB565:
quantShiftR = 3;
quantShiftB = 3;
quantShiftG = 2;
quantShiftA = 0;
break;

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: FloydSteinbergDithering bug
« Reply #1 on: March 11, 2017, 10:38:57 pm »
Hi,

Yes you're right, that was left behind from when it multiplied up and scaled back down as opposed to what its doing now. I will fix that, thanks for the bug report.

ps. Also the RBG order, ugh. How on earth did you find this?
« Last Edit: March 11, 2017, 10:43:12 pm by unikronsoftware »

dilshod

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: FloydSteinbergDithering bug
« Reply #2 on: March 12, 2017, 03:47:23 am »
I was trying different dithering algorithms. I found Sierra Lite gives better dithering compared to others. And making small manipulations on input and output color gives better result.