This work presents a detailed surgical planning protocol using 3D technology with free open-source software. This protocol can be used to correctly quantify femoral anteversion and simulate derotational proximal femoral osteotomy for the treatment of anterior knee pain.