How to draw GUI to a real world ?
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. :)
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.
It's fresh for me,I'm ready to code this effect..but have no experience.
I'm not sure anyone knows what your question is. Are you wanting to make a UI like Doom3?
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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement