Interactive GUI

Hello all, I’ve been for the past few weeks trying to make an interactive GUI like in Doom 3 or Quake 4 but nothing i do seems to work, does anyone know a good way to start, or if this is even possible?

Thanks in advance.

All GUIs are “interactive” in some sense. Can you explain further how you want your GUI to behave?

Yeah, i probably did not word that right. What im trying to achieve is like a computer panel with a GUI on it and when you look at it the crosshair(or what ever) turns into a cursor and you can interact with the buttons and such.

Does that help a bit?

There are two ways I can think of to handle this. When your player approaches the computer in the game, you could cut to a GUI (created with the GUI class functions). The alternative is to use raycasting to detect which part of the console object is under the cursor when the button is clicked. (See this thread for a description of basic raycasting.) To do this, you will have to define separate objects for the controls on the computer and detect which has been hit, or else define different areas of the object’s texture that correspond to the controls. This could actually be quite complicated, depending on exactly what you want the GUI to do.