A head mounted device for virtual or augmented reality including:a display element configured to display content;at least one infrared camera module configured to operate at a predetermined bandwidth;an illuminator having a wavelength of operation inside the bandwidth of the infrared camera, and having a field of view before the camera module; anda control unit implementing a six degrees of freedom (6DoF) algorithm to determine 6DoF poses from data including image data of the camera module, and implementing a gesture tracking algorithm.展开▼