In this paper a new software system for virtual preoperative planning and simulation of hip operations is presented. The system simulates the endoprosthetic reconstruction of the hip joint with hemipelvic replacement for bone tumor patients and supports the individual design of anatomically adaptable, modular prostheses. Three-dimensional models of the patient's hip are generated based on CT data. The surgeon simulates the operation and defines the position and shape of the custom-made endoprosthesis. Stereoscopic visualization and 3D input devices facilitate the navigation and interaction in the virtual environment. Special visualization techniques like texture mapping, color coding of quantitative parameters or transparency support the determination of the correct position and shape of the prosthesis. Furthermore, the system can be used for patient information or educational tasks.