[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/imbuf IMB_imbuf.h blender/source/blender/include BIF_writeimage.h blender/source/blender/src header_info.c toets.c writeimage.c

Nathan Letwory jesterking at letwory.net
Sat Feb 11 11:48:33 CET 2006

The buffer into which the zbuf is converted is a char buffer. There is
also a float buffer, but I don't know if that is saved out already for
those formats that understand it.

I updated the patch to take the minf-maxf range that in zbuf is. And I
also remembered to use the -u switch when creating the updated patch this
time :)

The max set to 255 whenever it was 0.0 was just lazyness from me. I've
given it now more an epsilon like value in case of 0.0.



On La 11.2.2006 4:53, GSR kirjoitti:
> Hi,
> jesterking at letwory.net (2006-02-11 at 0308.25 +0200):
>> The patch searches first for second highest float (= geom pixel farthest
>> away). Then uses that to convert other float values of zbuf to nice
>> 0-255
>> range. Changes only writeimage.c
> Why only max to 255 and not also min to 0, or is that given by how
> zbuf works now? I guess that in any case the idea is for single stills
> only, not anims.
> BTW, patch format you provided is not the nice one. :[

More information about the Bf-committers mailing list