Determination of spine posture is of great interest for the effective prevention, evaluation, treatment and evolution monitoring of spinal disorders. Limitations of traditional imaging systems, including cost, radiation exposure (for X-ray based systems), projection volume issues and subject positioning requirements, etc., make non-invasive motion assessment tools effective alternatives for clinical and non-clinical use. In this work, a procedure was developed to obtain a subject-specific multibody model of the spine using either inertial or optical sensors and, based on this multibody model, to estimate the locations and orientations of the 17 vertebrae constituting the thoracolumbar spine. The number and calibration of the sensors, angular offsets, scaling difficulties and gender differences were addressed to achieve an accurate 3D-representation of the spine. The approach was validated by comparing the estimated positions of the sensors on 14 healthy subjects with those provided by an optical motion capture system. A mean position error of lower than 12 mm was obtained, thus showing that the proposed method can offer an effective non-invasive tool for the assessment of spine posture.