Endoscopists, especially those investigating the colon, need to know where the tip of the instrument is and whether the tube is kinking. A three-dimensional real-time imaging system consisting of sensors, within or taped to the endoscope, to detect weak electric currents in a wire grid below the mattress yields the information needed and should greatly facilitate performance and teaching of endoscopy.