Author Topic: Overlaying panels doing a per-pixel multiplication  (Read 3928 times)

Nacho

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Overlaying panels doing a per-pixel multiplication
« on: October 15, 2012, 11:56:14 AM »
Hi! I'm making a strategy game and the UI artist has envisioned this set of screens where new panels are overlaid on top of existing ones. While preparing the mock screens in Photoshop he multiplied the different panels layers on a per-pixel basis in order to achieve a blending effect. Is there any way to achieve that same effect using NGUI?

Thanks in advance for your help!

--Nacho

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Overlaying panels doing a per-pixel multiplication
« Reply #1 on: October 15, 2012, 12:28:02 PM »
Depends on the effect. Windows Aero style -- no. Not without a sophisticated shader that will have you draw your background using a separate atlas from the rest of your UI, complicating everything. Simple transparent blending? Sure, just make the top panel semi-transparent by setting its widgets alpha to something below 1.

Nacho

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Overlaying panels doing a per-pixel multiplication
« Reply #2 on: October 15, 2012, 04:18:51 PM »
Thank you for your prompt reply Aren! I'll stick to the simple solution for the moment.

Cheers,

--Nacho