Sign in to follow this  

How to draw GUI to a real world ?

This topic is 3937 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

This topic is 3937 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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