Author Topic: new depth sorting feature  (Read 2741 times)

Gillissie

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 48
    • View Profile
new depth sorting feature
« on: September 16, 2013, 01:08:13 PM »
I tried out the new depth sorting feature to understand how it was different. I was hoping that it would make it so UIPanel would automatically detect when a new draw call was necessary, and make the draw calls as needed, even if it meant drawing from the same atlas multiple times due to a different atlas being used in between the sort order.

Sometimes you need to have text in front of and behind sprites from the same atlas, and the font is on a different atlas. That requires three draw calls total. It appears that I still need to add another UIPanel for the foreground stuff and set the z coord a little closer to be in front of the other stuff.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: new depth sorting feature
« Reply #1 on: September 16, 2013, 02:05:32 PM »
2.7 doesn't detect when new draw calls are needed. 3.0 does. With 3.0 you won't need to create extra panels anymore.