The present invention presents a beam shaper for radiation imaging comprising a hollow beam shaper body filled with radiation attenuating gas. Radiation attenuation can be changed by adding or removing pressure to the gas or the housing containing the gas, making it suitable for use as a dynamic beam shaper in 3D radiation imaging.