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:
@@ -28,6 +28,7 @@ CCL_NAMESPACE_BEGIN
|
||||
|
||||
class Device;
|
||||
class DeviceScene;
|
||||
class Scene;
|
||||
|
||||
/* Camera
|
||||
*
|
||||
@@ -37,8 +38,7 @@ class DeviceScene;
|
||||
class Camera {
|
||||
public:
|
||||
/* motion blur */
|
||||
float shutteropen;
|
||||
float shutterclose;
|
||||
float shuttertime;
|
||||
|
||||
/* depth of field */
|
||||
float focaldistance;
|
||||
@@ -61,6 +61,10 @@ public:
|
||||
/* transformation */
|
||||
Transform matrix;
|
||||
|
||||
/* motion */
|
||||
MotionTransform motion;
|
||||
bool use_motion;
|
||||
|
||||
/* computed camera parameters */
|
||||
Transform screentoworld;
|
||||
Transform rastertoworld;
|
||||
@@ -82,7 +86,7 @@ public:
|
||||
|
||||
void update();
|
||||
|
||||
void device_update(Device *device, DeviceScene *dscene);
|
||||
void device_update(Device *device, DeviceScene *dscene, Scene *scene);
|
||||
void device_free(Device *device, DeviceScene *dscene);
|
||||
|
||||
bool modified(const Camera& cam);
|
||||
|
Reference in New Issue
Block a user