A method for visualization includes registering, within a common frame of reference, a position sensing system and a three-dimensional (3D) computerized tomography (CT) image of at least a part of a body of a patient. A location and orientation of at least one virtual camera are specified within the common frame of reference. Coordinates of a medical tool moving within a passage in the body are tracked using the position sensing system. A virtual endoscopic image, based on the 3D CT image, of the passage in the body is rendered and displayed from the specified location and orientation, including an animated representation of the medical tool positioned in the virtual endoscopic image in accordance with the tracked coordinates.