Hello Guest

Author Topic: Problem with 4096 textures  (Read 4051 times)

Antifuzz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Problem with 4096 textures
« on: May 30, 2013, 03:17:40 pm »
I've got a large sprite collection which will only fit onto an atlas size of 4096x4096, but when I make a sprite using this collection, the sprite comes out at half the level of pixel detail.
I can open the atlas in Photoshop and see that it has indeed been created at 4096, and that the sprites are the correct resolution, but for some reason they come out at half res when added to a sprite.

I'm also a bit suspicious about the fact that when I select the atlas in the Project library, the preview window claims that it's 2048x2048, even though I know it's not.

If I split it over several 2048 atlases, everything works fine.

Any ideas?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Problem with 4096 textures
« Reply #1 on: May 30, 2013, 03:51:28 pm »
1. Check this: The default in the inspector is the highlighted line.
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,612.0.html

2. Check the maximum size set on the texture itself.

Antifuzz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problem with 4096 textures
« Reply #2 on: May 30, 2013, 04:09:42 pm »
Thanks for getting back so quickly!

I've worked out that it's because my platform is Flash Player. I don't get the half-res if I publish for web player.

I've checked the quality settings for Flash Player though, and it is set to full-res. Is it just a restriction of targeting Flash that you can't use 4096 textures?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Problem with 4096 textures
« Reply #3 on: May 30, 2013, 04:20:46 pm »
Quite possibly.
It could be that the max texture size is 2048 on Flash player. I couldn't really say as I'm not THAT familiar with it... there must be something in the Unity docs somewhere

Antifuzz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problem with 4096 textures
« Reply #4 on: May 30, 2013, 05:23:41 pm »
Yep. Looks like that's the problem. Flash doesn't do anything larger than 2096.