We present a methodology for motion tracking and visualization of the hip joint by combining MR images and optical motion capture systems. MRI is typically used to capture the subject's anatomy while optical systems are used to capture and analyse the relative movement between adjacent bones of the joint. Reflective markers are attached to the subject's skin and their trajectories are tracked and processed. However, the skin surface deforms while in motion due to muscle contraction leading to significant errors in the estimation of trajectories. In order to reduce these errors, we use MR images to capture both the anatomy and the trajectories of the bone. Prior to the scanning, we attach skin markers to the subject in order to analyse the markers displacements relative to the bone. We reconstruct the anatomical models of the subject and we compute the markers trajectories from the images. Using these calculated trajectories, we select the best markers configuration based on the criteria of markers displacements. The optimized configuration is used for recording external movements with the optical motion capture system. The resulting animation is mapped onto the virtual body of the subject including internal bones and the joint motion is visualized.