Author Topic: 2.5D GUI?  (Read 1437 times)

Eyello

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
2.5D GUI?
« on: April 16, 2014, 06:33:23 AM »
Hey Tasharen,
first thank you for all the effort on this forum and creating the tools ;)

Maybe I missed something but I haven't seen such an example anywhere so I am just asking.
How can I achieve a GUI which draws Icons in 3D space but which always have the same scale on screen?
So if I make a 3D GUI then the widgets are static for sure and do not "look at" the camera.

I did this in the past with simple sprites and could use the same methods to orient and scale the widgets according to the camera, but I just ask if there already is a function for that in NGUI.

Like this one:

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2.5D GUI?
« Reply #1 on: April 16, 2014, 11:09:13 AM »
If you want the sprites to be the same size, you either have to make them a part of your 2D UI, or you have to resize them dynamically in 3D (math). The latter is more complicated as if the camera is perspective-based like it is in that screenshot, then you likely won't be able to get it quite right. Sprites will stretch due to the perspective when they are on the edges of the screen.