1. A method for a user interface based on a gesture, the method comprising: recognizing an object in the real world to be tracked using an input device; setting at least one gesture region in the real world comprising at least one basic region in the real world at a first depth and at least one navigation region in the real world at a second depth based on a preset location or a detected location of the object, wherein the first depth is a distance between the basic region and a display or the input device, and the second depth is a distance between the navigation region and the display or the input device; providing feedback of movement of the object to a user in real time using an output device; detecting a gesture of the object using the input device; recognizing, from the detected gesture, either one or both of a select gesture and a confirm gesture; recognizing a command gesture within the at least one gesture region or within a preset command region other than the at least one gesture region; identifying a command mode corresponding to the recognized command gesture; and performing a function corresponding to the command mode; wherein the recognizing of the command gesture comprises recognizing the command gesture based on any one or any combination of any two or more of information associated with a movement of the object within the at least one gesture region, information associated with a moving trace of the object, information associated with a movement speed of the object, and information associated with a shape of the object.