A system for image-guided surgery may include a visual imaging system, a medical tool comprising a shaft and a tip, wherein the shaft of the tool includes an optically detectable feature that allows a position of the tip to be determined, and a display configured to display a real-time representation of the medical tool including the position of the tip regardless of whether the tip is obstructed or visible.