From 459deaf11f3f451b2f30b97b1e23e72343398445 Mon Sep 17 00:00:00 2001 From: Alfredo de Greef Date: Mon, 8 Nov 2004 03:55:44 +0000 Subject: Fixed: Texture matrix bug in plugin code reported by Mel_Q. Vertex colors, this was basically the same as the previous uv coord splitting bug, for xml export, uv coord splitting was actually not quite complete either (reported by richie). Added: Camera Ipo curves for DoF aperture and focal distance. Aspect ratio set with AspX & AspY are now taken into account as well. (needs yafray from cvs) Bokeh parameters for DoF (also needs yafray from cvs). 'Bokeh' controls the shape of out of focus points when rendering with depth of field enabled. This is mostly visible on very out of focus highlights in the image. There are currently seven types to choose from.: 'Disk1' is the default, the same as was used before. 'Disk2' is similar, but allows you to modify the shape further with the 'bias' parameter, see below. Triangle/Square/Pentagon/Hexagon, in addition to the bias control, you can offset the rotation with the 'Rotation' parameter (in degrees). 'Ring', a weird ring shaped lens, no additional controls. The 'bias' menu controls accentuation of the shape. Three types available, uniform, center or edge, with uniform the default. Although based on an actual phenomenon of real camera's, the current code is bit of a hack and not physically based, and doesn't work all that well yet (in yafray anyway). Since this is also mostly visible in the very out of focus parts of the image, it usually also means that you need lots of samples to get a reasonably smooth result. --- source/blender/makesdna/DNA_ipo_types.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/blender/makesdna/DNA_ipo_types.h') diff --git a/source/blender/makesdna/DNA_ipo_types.h b/source/blender/makesdna/DNA_ipo_types.h index a81c21ad19f..8363fa0481a 100644 --- a/source/blender/makesdna/DNA_ipo_types.h +++ b/source/blender/makesdna/DNA_ipo_types.h @@ -268,13 +268,16 @@ typedef short IPO_Channel; /* ******************** */ -#define CAM_TOTIPO 3 -#define CAM_TOTNAM 3 +/* yafray: totipo & totnam +2 because of added curves */ +#define CAM_TOTIPO 5 +#define CAM_TOTNAM 5 #define CAM_LENS 1 #define CAM_STA 2 #define CAM_END 3 - +/* yafray aperture & focal distance curves */ +#define CAM_YF_APERT 4 +#define CAM_YF_FDIST 5 /* ******************** */ -- cgit v1.2.3