Could it be easy to have a GUI on a 3Dplane or polygon?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Could it be easy to have a GUI on a 3Dplane or polygon?

Post by christianclavet »

I'm just wondering if it could be easy to have the Gui Elements on a polygon instead of directly applied to the screen...

Could be useful to make GUI INSIDE the game.

If you saw PREY or other game of this kind, they even made a 2D game inside the game.

I'm just wondering if it would mean lots of change on the source if we could specify the rendering of the GUI (Screen buffer OR texture buffer)
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

Im pretty sure its easy, you can use render to texture for that and make the mini game in its own loop...to me it sounds esy, but most likely they had a highly cool way :P
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah i think fuzzy is right... RTT would be the best bet here.. If it was in opengl rather than irrlicht i'd have an idea how you could go about it without RTT (though it might just be simpler to use RTT anyway).

There's a tutorial on RTT, try getting a GUI to render on the cube behind the fairy instead a of render of the fairy appearing on that cube.
Image Image Image
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Another hint on this. You'll also need some plane/ray intersection, catch the mouse events in your event reciever (return true) and post new mouse events back into the GUI environment.
So the answer is yes, it should be very easy :)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
SwitchCase
Posts: 170
Joined: Sun Jul 01, 2007 11:41 pm
Location: Manchester, UK

Post by SwitchCase »

Check out the Cube 2 engine. It's menus are on 3d planes/billboards. Is this the kind thing your thinking of?

LINK -> http://www.sauerbraten.org/
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Exactly. That Cube 2 engine gived me the idea. This could also be used for interface for the player INGAME... I see some potential of using this that way. Will surely have to do a proper translation of the mouse position so it "touch" the interface.

Thanks. So it's possible. I'm not thinking of putting this in my current project now... But on other projects...
Post Reply