Cycles: support for motion vector and UV passes.
Most of the changes are related to adding support for motion data throughout the code. There's some code for actual camera/object motion blur raytracing but it's unfinished (it badly slows down the raytracing kernel even when the option is turned off), so that code it disabled still. Motion vector export from Blender tries to avoid computing derived meshes when the mesh does not have a deforming modifier, and it also won't store motion vectors for every vertex if only the object or camera is moving.
This commit is contained in:
@@ -284,8 +284,7 @@ static void xml_read_camera(const XMLReadState& state, pugi::xml_node node)
|
||||
xml_read_float(&cam->farclip, node, "farclip");
|
||||
xml_read_float(&cam->aperturesize, node, "aperturesize"); // 0.5*focallength/fstop
|
||||
xml_read_float(&cam->focaldistance, node, "focaldistance");
|
||||
xml_read_float(&cam->shutteropen, node, "shutteropen");
|
||||
xml_read_float(&cam->shutterclose, node, "shutterclose");
|
||||
xml_read_float(&cam->shuttertime, node, "shuttertime");
|
||||
|
||||
if(xml_equal_string(node, "type", "orthographic"))
|
||||
cam->type = CAMERA_ORTHOGRAPHIC;
|
||||
@@ -705,7 +704,7 @@ static void xml_read_mesh(const XMLReadState& state, pugi::xml_node node)
|
||||
}
|
||||
|
||||
/* temporary for test compatibility */
|
||||
mesh->attributes.remove(Attribute::STD_VERTEX_NORMAL);
|
||||
mesh->attributes.remove(ATTR_STD_VERTEX_NORMAL);
|
||||
}
|
||||
|
||||
/* Patch */
|
||||
@@ -766,7 +765,7 @@ static void xml_read_patch(const XMLReadState& state, pugi::xml_node node)
|
||||
delete patch;
|
||||
|
||||
/* temporary for test compatibility */
|
||||
mesh->attributes.remove(Attribute::STD_VERTEX_NORMAL);
|
||||
mesh->attributes.remove(ATTR_STD_VERTEX_NORMAL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user