Hello Guest

Author Topic: Sprite Colors Importing Differently  (Read 4705 times)

sd11089

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Sprite Colors Importing Differently
« on: May 22, 2013, 07:52:02 am »
I've got a set of sprites used for terrain that use the same colors, but for some reason two sets of them are coming in darker.  They are all on the same sprite atlas so the import settings should be identical, I triple check that the colors are identicle in photoshop, I even deleted and recreated all of them, but still the colors are not matching.  You can see the sloped and corner tiles look darker in the attached image.  Any ideas?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite Colors Importing Differently
« Reply #1 on: May 22, 2013, 12:42:52 pm »
Click on the source textures - do the two source textures look different in the preview in Unity?

sd11089

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Sprite Colors Importing Differently
« Reply #2 on: May 22, 2013, 04:39:10 pm »
They do, but only in Unity - not when opened in preview or photoshop.  Every setting is identical in the inspector.

sd11089

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Sprite Colors Importing Differently
« Reply #3 on: May 22, 2013, 05:32:22 pm »
I ended up just changing the colors.  I know this turned out to not be a tk2d problem, but if you do figure it out it would be nice to know, if not thanks for the quick response anyways.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite Colors Importing Differently
« Reply #4 on: May 22, 2013, 05:43:04 pm »
Are you using PNGs? If so, its likely to be the gamma setting in photoshop.

sd11089

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Sprite Colors Importing Differently
« Reply #5 on: May 23, 2013, 01:29:48 am »
Nope, .psd files.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite Colors Importing Differently
« Reply #6 on: May 23, 2013, 10:15:35 am »
Could be the same thing with PSDs - check that you haven't set the file to CMYK, gamma, etc. 2D Toolkit uses whatever data Unity imports - so if it looks wrong in the inspector inspecting the source file, its going to be wrong in the sprite collection. Its probably worth working out the difference, just so it doesn't happen again.