Author Topic: Need kind of 2D "overlay / info screen" for objects  (Read 5744 times)

lime-green.at

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 60
    • View Profile
Need kind of 2D "overlay / info screen" for objects
« on: September 26, 2012, 10:06:02 AM »
Hey,

I currently try to implement kind of a overlay / info screen for a lot of objects in my 3D room, but i don't have a clue how to do this properly. But: a picture paints a thousand words, so here's an illustration:



As you can see on that picture, I've got two UIs. One is for the other menu and is orthographic, the other one is perspective (used to run around in 3d space).
What i need is marked in green.

Hope you guys got some suggestions for me how to do that.

Regards

lime-green.at

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: Need kind of 2D "overlay / info screen" for objects
« Reply #1 on: September 26, 2012, 10:23:36 AM »
Uh, just got an idea: I could create another ui, which is orthographic, also with that UIViewport stuff, which i just enable on click on my 3d objects. What you're thinking?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Need kind of 2D "overlay / info screen" for objects
« Reply #2 on: September 26, 2012, 10:25:52 AM »
Yeah you need two UIRoots for this. One 3D, one 2D. 2D is the one that will have your tooltip. Look at the Character Inventory example, it does exactly that -- 3D UI for the inventory, and 2D UI for tooltips.

lime-green.at

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: Need kind of 2D "overlay / info screen" for objects
« Reply #3 on: September 26, 2012, 10:30:52 AM »
I guess ill need 3 of them. In the inventory example there no overlay in the 3d space. If i didnt explain it corrently, just ask.

lime-green.at

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: Need kind of 2D "overlay / info screen" for objects
« Reply #4 on: September 26, 2012, 10:37:52 AM »
That complete middle 3d view area is rendered by my 3d cam. I guess its not that easy.