macwoni Posted February 28, 2009 Posted February 28, 2009 So I was curious how a computer knows when you click on save in a window in one spot on the screen that it is the same function when the window is on a different spot on the screen.It knows it is in two completely different places but how does it know this? does anybody have any good material they could reference me too?
YT2095 Posted February 28, 2009 Posted February 28, 2009 it doesn`t know, what your seeing is a visual representation made After of what it Does "know". as for Refs I have no idea, but a search for "GUI" or "WIMP" and "Collision detection" may prove helpful.
Klaynos Posted February 28, 2009 Posted February 28, 2009 Simply put... The screen is split into pixels, the computer knows in what pixel the mouse is is, and what else is in the pixel, so when you click it puts the two bits of information together and knows what you want to do.
Xittenn Posted March 1, 2009 Posted March 1, 2009 (edited) I programmed a ray trace for a 3D world. Taking the camera position, the field of view and the position on the flat plane where the mouse was clicked a ray could be traced and a target could be acquired in a 3D game world. It was kind of fun. You can find a bunch of info on both of these concepts(2D & 3D) in the Source(Valve gaming engine) forum. Merged post follows: Consecutive posts mergedMathematics for 3D Game Programming & Computer Graphics by Eric Lengyel Good read for 3D.................... Edited March 1, 2009 by buttacup Consecutive posts merged.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now