Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: FizzPow on June 12, 2014, 12:49:13 PM

Title: Atlas save Filter and Format after update?
Post by: FizzPow on June 12, 2014, 12:49:13 PM
Whenever I update my atlas, it changes the filtering to trilinear and format to true color.  I am using point filter and 16 bit color for a very specific use on pixel art.  Any way I can not have to fix this everytime I update the atlas?
Title: Re: Atlas save Filter and Format after update?
Post by: ArenMook on June 13, 2014, 05:51:50 AM
Comment out lines 451 and 485 of NGUIEditorTools.cs:
  1. settings.textureFormat = TextureImporterFormat.ARGB32;
Title: Re: Atlas save Filter and Format after update?
Post by: FizzPow on June 13, 2014, 03:40:51 PM
Thanks! A checkbox option on Atlas Maker or something could be nice in future.  ;)
Title: Re: Atlas save Filter and Format after update?
Post by: ArenMook on June 13, 2014, 10:13:26 PM
You will find it in the next update.
Title: Re: Atlas save Filter and Format after update?
Post by: FizzPow on June 15, 2014, 07:42:10 PM
Awesome!
Title: Re: Atlas save Filter and Format after update?
Post by: FizzPow on June 25, 2014, 01:14:23 PM
Just updated, still forces Trilinear filtering, which is the bigger issue for us, oh well =)

For our use, I just modified NGUIEditorTools: 485

  1.             if (NGUISettings.trueColorAtlas)
  2.             {
  3.                 settings.textureFormat = TextureImporterFormat.ARGB32;
  4.                 settings.filterMode = FilterMode.Trilinear;
  5.             }
Title: Re: Atlas save Filter and Format after update?
Post by: ArenMook on June 26, 2014, 10:17:54 AM
That seems fine to me. I'll do the same on my end.