changed 3d display and volumetric raytracer to work with rectangles