Author Topic: Atlas scrambles textures  (Read 4406 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Atlas scrambles textures
« on: April 16, 2013, 08:48:01 PM »
I just figured out why some of the games objects look wrong : their png textures were switched to something else.
This started happening after making atlases.
Anyone else having this ?

memetic arts

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: Atlas scrambles textures
« Reply #1 on: May 13, 2013, 05:59:08 PM »
Bumping this, as I am having a similar issue, though the OP was a bit vague.  I've been updating a single Atlas in my project for a while, and starting today began having a "jumbling" issue.  The majority of my textures are PSDs, though there are a few PNGs as well.

I've done the prerequisite research, and the issue is not due to size limitation.  I tried applying some of the recommended tricks for Font scrambling (resetting prefab spacing, etc.), but nothing is working.

An obvious workaround would be to create a new atlas for the images that I'm adding, but it doesn't really solve the problem, and I'd like to know definitively what is causing this to happen.

From what I can tell, every pre-existing image in the atlas has been shifted on both x and y axes by the same number of pixels (haven't determined the exact value yet).

After examining a handful of the textures, some of them appear to have borders or padding values set where they previously had none.  It didn't happen to all of the textures, and I can't identify any predictable pattern.

Any insight would be greatly appreciated.  As with many other users, I'm really blown away by the overall usefulness and convenience of the tool . . . thanks and kudos to ArenMook!

dlewis

  • Guest
Re: Atlas scrambles textures
« Reply #2 on: May 13, 2013, 08:58:40 PM »
When things are added/removed from the atlas it's pretty common for the position of some things to change but the new positions should always be reflected in the prefab (atlas).

1) Are you sure that the texture and atlas are in sync
2) Are you sure that you have been saving the scene after every atlas modification (Required: If you don't save then things WILL go weird)

memetic arts

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: Atlas scrambles textures
« Reply #3 on: May 13, 2013, 10:25:12 PM »
thanks for the reply, dlewis.

I'm positive that I've been saving the scene after each update . . . as I said, I had been successful in making updates until today.

I'm not sure what you mean exactly, though, by keeping the atlas and textures "in sync" . . . if you mean are all of the textures listed in the atlas actually present in my textures folder, and named the same, then yes, that is all in sync.  if you mean something else, could you clarify please?

thanks!!

dlewis

  • Guest
Re: Atlas scrambles textures
« Reply #4 on: May 13, 2013, 10:29:49 PM »
if you mean something else, could you clarify please?

We've had some issues with our source control in the past where an updated texture was submitted but for whatever reason the prefab wasn't/was reverted so the texture was updated but the atlas still had the old values (so pointing to the wrong things).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas scrambles textures
« Reply #5 on: May 14, 2013, 02:22:12 AM »
This kind of stuff has been known to be caused by using the Asset Server.

memetic arts

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: Atlas scrambles textures
« Reply #6 on: May 14, 2013, 06:29:40 AM »
Thanks for the reply, Aren.  However, I'm not using the Asset Server.

@dlewis : thanks for the clarification. I think I may have just overloaded the Atlas, which I hadn't considered because it didn't appear to be near capacity . . . a few more experiments to do, and I'll know for sure.

Thanks again for the input, much appreciated.
« Last Edit: May 14, 2013, 08:52:14 AM by memetic arts »