|
-
October 11th, 2008, 08:32 AM
#3
Re: Simple GUI System
 Originally Posted by victor2008
It is a way of communicating with a computer that uses visual feedback to the user as much as possible. Features of a GUI include the use of icons to represent commands and options, pull-down menus that appear when called for and then disappear when no longer needed, and the use of a mouse to move a pointer around the screen. By pointing to the appropriate icons or menu items and clicking a mouse button, various commands can be activated. It is also possible to use the mouse in drawing programs.
You didn't even read the question didn't you?
Hes not asking what is a GUI.
Hey,
Im just thinking about how you logically go about making a simple GUI in a simple 3d based app, such as a simple OpenGL app.
The part im wondering is how do you work out when you have clicked on an element of the GUI? as the mouse click will have an X/Y position from windows or your input system I assume, then from there do you have to convert it into worldspace to work out where in the scene you have clicked, also how do you take from your world to local space? (while we are on the subject)
I made a really simple menu system for an old 2D game a while back, but as it was 2d i didnt need to do any translations or anything on the coord. I think i just made a simple tree hierarchy to specify what menu elements sat where and it just checked down the tree to work out what was clicked...
Im just curious as i may need to write a simple 3d menu system in the future and any info to give me a headstart would be great!
I guess you should ask in "http://www.gamedev.net/community/forums/"since the whole forum is based on 2D and 3D Stuff.
*Edit*
If your question gets answered,please put the link here cuz me and maybe some other people have the same question as you and will find this helpful.
Last edited by AntiBNI; October 11th, 2008 at 11:40 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|