Blender Git Commit Log

Git Commits -> Revision 0665f0d

Revision 0665f0d by Ton Roosendaal (master)
January 11, 2006, 22:36 (GMT)
Orange;

Until now, the zbuffer was written straight from the internal zbuffer,
which has values that are inverse-proportional (like 1.0/z) which makes
it very hard to use it for postprocess, like zblur or other composit effects
that require Z.

Based on info from ILM, the values stored for Z in exr files is the
actual distance from a camera. I think that's about time to migrate to that
convention!

By default now, after render, the z values are converted to floats. This
saves in exr files now, but not in the Iris Z files. That latter was a
blender-only anyway, so might be not a real hassle to drop. :)

You can see the difference in the image window, but notice the range now
is linear mapped from camera clipstart to clipend.

Note; I just discover that ortho Z values need a different correction...

Commit Details:

Full Hash: 0665f0d64799e6a38c4ca0930df73271f246e422
SVN Revision: 6406
Parent Commit: b92fa41
Lines Changed: +203, -69

18 Modified Paths:

/source/blender/imbuf/IMB_imbuf.h (+2, -0) (Diff)
/source/blender/imbuf/IMB_imbuf_types.h (+3, -1) (Diff)
/source/blender/imbuf/intern/allocimbuf.c (+41, -2) (Diff)
/source/blender/imbuf/intern/divers.c (+0, -1) (Diff)
/source/blender/imbuf/intern/openexr/openexr_api.cpp (+14, -14) (Diff)
/source/blender/include/BIF_glutil.h (+1, -1) (Diff)
/source/blender/render/extern/include/render_types.h (+2, -1) (Diff)
/source/blender/render/intern/source/initrender.c (+49, -0) (Diff)
/source/blender/render/intern/source/rendercore.c (+1, -1) (Diff)
/source/blender/src/drawimage.c (+40, -9) (Diff)
/source/blender/src/drawseq.c (+1, -1) (Diff)
/source/blender/src/drawview.c (+1, -1) (Diff)
/source/blender/src/editsima.c (+10, -7) (Diff)
/source/blender/src/glutil.c (+19, -11) (Diff)
/source/blender/src/header_image.c (+7, -6) (Diff)
/source/blender/src/previewrender.c (+2, -2) (Diff)
/source/blender/src/renderwin.c (+7, -8) (Diff)
/source/blender/src/toets.c (+3, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021