Dear list, I appreciate the irony: with the 'no light sources' warning removed from rpict, I would like to request a new warning, this time for rpiece.
vwrays and rpict calculate the overall image dimensions from the -v* parameters and the -x and -y image dimensions. When rpict is run through rpiece, the image is split up into tiles, each of which is rendered in a separate thread. The tiles are then pcomposed into the final image. The width of the final image is xdim = tilex * xdiv, where tilex is computed by rpiece. Since tilex needs to be an int, it is actually calculated as floor(xdim / xdiv). If the requested xdim is not divisible by xdiv, xdim of an image generated by rpiece will be smaller than xdim of an image with exactly the same -v*, -x and -y generated by rpict. Same goes for the height of of the image... I have stumbled across this a few times now. Admittedly, I tend to use rpictmt from http://www.bakharev.org/index.php?option=com_content&task=view&id=23&Itemid=38, which is a convenient wrapper around rpiece, although it makes no difference to the problem at hand. So my feature request is actually a warning request: Could rpiece output a warning like: "warning: requested image size of xdim x ydim reduced to xdim1 x ydim1" to stderr. It would be even cooler if the last tile within a row had its tilex adjusted so that the final image comes out exacly like an rpict one (ditto for tiley for all tiles within the last row), but this is probably more difficult to implement, otherwise I guess you would have done it already. Many thanks Axel _______________________________________________ Radiance-dev mailing list [email protected] http://www.radiance-online.org/mailman/listinfo/radiance-dev
