In a radiation therapy machine it is desirable to produce irregular radiation field shapes in order to shield critical organs not invaded by the tumor. A system is provided using a multileaf collimator formed of a multiplicity of heavy metal bar leaves driven relative to a pair of frames which are driven relative to jaws of a rectangular field collimator. A multiplicity of compensators, one attached to each leaf on one of the pair of frames is used to adjust the local intensity of the radiation within the field. The x-ray beam is limited to a fan with the jaws, the ends and selected parts of the fan are blocked by the multileaf collimator, and the intensity within various portions of the remaining beam is adjusted with compensators. The field of the fan beam is dynamically controlled by these means while the patient table is moved perpendicular to the plane of the fan beam.