|
From: Daniel J S. <dan...@ie...> - 2006-11-20 05:01:13
|
Ethan A Merritt wrote: > We could do better. > > PostScript supports the specification of a general transformation > matrix. Rather than using individual filled_polygons > to draw a rgbimage in 3D, we could simply include a projection of > the 3x3 rotation matrix. This would drastically reduce the > PostScript file size for such plots. And rendering speed. gv is very slow with the filled polygons. (The aliasing effect would probably go away too with the proper translation matrix.) We already calculate this > same matrix in the core code in order to place the polygons; in > the case of PostScript it would be sufficient to provide the matrix > to the driver along with the original 2D array of rgb pixels. > > Anyone want to have a go a coding this? Not too difficult. First step would be to add the necessary translation matrix info to the terminal image routine. > I believe that PDF and SVG also benefit from this approach, but > I have not investigated fully. But does the PDF library support translation matrices? Dan |