Author Topic: Atlas save Filter and Format after update?  (Read 6560 times)

FizzPow

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
    • FizzPow Games
Atlas save Filter and Format after update?
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas save Filter and Format after update?
« Reply #1 on: June 13, 2014, 05:51:50 AM »
Comment out lines 451 and 485 of NGUIEditorTools.cs:
  1. settings.textureFormat = TextureImporterFormat.ARGB32;

FizzPow

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
    • FizzPow Games
Re: Atlas save Filter and Format after update?
« Reply #2 on: June 13, 2014, 03:40:51 PM »
Thanks! A checkbox option on Atlas Maker or something could be nice in future.  ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas save Filter and Format after update?
« Reply #3 on: June 13, 2014, 10:13:26 PM »
You will find it in the next update.

FizzPow

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
    • FizzPow Games
Re: Atlas save Filter and Format after update?
« Reply #4 on: June 15, 2014, 07:42:10 PM »
Awesome!

FizzPow

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
    • FizzPow Games
Re: Atlas save Filter and Format after update?
« Reply #5 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.             }

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas save Filter and Format after update?
« Reply #6 on: June 26, 2014, 10:17:54 AM »
That seems fine to me. I'll do the same on my end.