Author Topic: Using two different texture atlases in NGUI: should there be any problem?  (Read 2307 times)

ND

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Good day!

We used NGUI 2.7 before and had problems with two separate texture atlases: some of the images were drawn incorrectly (black squares or just blank spaces). We managed to put all sprites into one atlas and that solved the problem, back then.
Now we're using NGUI 3.5.7 and planning to have 2 texture atlases: one in 16-bit color for most of the sprites and another (32-bit) for the rest (that looks bad in 16-bit).

Should we expect any problems using this approach (like graphical glitches)? Or it'll be ok except for the increased number of draw calls?

Thank you for the answer!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Using two different texture atlases in NGUI: should there be any problem?
« Reply #1 on: September 16, 2014, 06:46:47 PM »
It should be just fine. I mean, the only downside is that if you sandwich widgets from multiple atlases (materials) it will cost extra draw calls. That already happens if you use dynamic fonts, anyway.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Using two different texture atlases in NGUI: should there be any problem?
« Reply #2 on: September 17, 2014, 12:02:21 PM »
There is no reason to use 3.5.7. It's many months out of date. You should use the latest.