Current methods of four-dimensional (4D) CT imaging of the thorax synchronise the acquisition with a respiratory signal to restrospectively sort acquired data. The quality of the 4D images relies on an accurate description of the position of the thorax in the respiratory cycle by the respiratory signal. Most of the methods used an external device for acquiring the respiratory signal. We propose to extract it directly from thorax cone-beam (CB) CT projections. This study implied two main steps: the simulation of a set of CBCT projections, and the extraction, selection and integration of motion information from the simulation output to obtain the respiratory signal. A real respiratory signal was used for simulating the CB acquisition of a breathing patient. We extracted from CB images a respiratory signal with 96.4% linear correlation with the reference signal, but we showed that other measures of the quality of the extracted respiratory signal were required.