Sign in to follow this  
cutenoob

How to draw GUI to a real world ?

Recommended Posts

HOHO...I'm thinking this after played Doom3...It's my first time saw UI in the game world...awesome... if someone known give me some hint plz. :)

Share this post


Link to post
Share on other sites
I think everybody played Doom3,,but why no one wanna talk about this ?

It's fresh for me,I'm ready to code this effect..but have no experience.

Share this post


Link to post
Share on other sites
He wants to know how to implement an environment-based GUI similar to Doom 3 (character control paradigm).

If you don't know what that is, here's an example to avoid any big/confusing terms:
In the old days, you'd simply face your character towards a computer and press the Use key on your keyboard and the desired action was triggered (e.g., open door).

Today, you walk up to the computer and your actual mouse cursor might 'hop' from your screen to the in-game screen of the computer. From there, you actually use the computer as if it were real. If you move your mouse, the character's cursor (on the screen of the in-game computer) moves along with it. If you click your mouse, a button on the in-game computer's screen (under the character's cursor) is pressed and the action is triggered.

To answer the inquiry:

It seems relatively simple. I think you'd just render a separate GUI to an offscreen buffer, and then use that texture on the desired geometry. Treat the 'in-game' GUI the same way you would treat a 'real' GUI.

Share this post


Link to post
Share on other sites
Indeed. There's nothing more complex than a single added layer of interface: Your "mouse cursor" is transformed from your view space into the GUI's space, then it processes like normal, renders to a texture, then into the regular game world.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this