Author Topic: Windward Minimap  (Read 4534 times)

matix

  • Guest
Windward Minimap
« on: April 19, 2012, 01:36:38 AM »
Hey Aren, how many drawcalls do u need for you Minimap?
Can u make a example or demo with u Minimap?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windward Minimap
« Reply #1 on: April 19, 2012, 01:40:32 AM »
I believe I have 3 in there, but it can be 2. One draw call for the map's texture, since it uses a RenderTexture with a UITexture, and another draw call for the target indicators that go on top. In my case I also have a background for it just to make it look fancier, so I have 3.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windward Minimap
« Reply #2 on: April 19, 2012, 01:42:03 AM »
Oh yeah and I should note that the target indicators can actually be in the same draw call as the rest of the UI, essentially reducing the needed number of extra draw calls to 1.

As for example... not yet. :)

matix

  • Guest
Re: Windward Minimap
« Reply #3 on: May 22, 2012, 10:08:54 AM »
what is the diference between the minimap blips and hpBars like here? http://www.tasharen.com/?topic=creating-a-ui-sprite-on-the-fly
how can all blips take just 1 Drawcall and the HpBars 1 each ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windward Minimap
« Reply #4 on: May 22, 2012, 10:32:50 AM »
It's a matter of where you have your panels. In the hp bars sample you have panels on each hp bar. In the minimap I have only one panel. You can do the same thing by removing the UIPanel from the hp bar, and then there will be only one.