From 99f59930885ed69890967f8864a3aa0626249d86 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 29 Mar 2014 13:03:46 +0100 Subject: Cycles code refactor: improve vertex motion attribute storage and export. This now supports multiple steps and subframe sampling of motion. There is one difference for object and camera transform motion blur. It still only supports two steps there, but the transforms are now sampled at subframe times instead of the previous and next frame and then interpolated/extrapolated. This will give different render results in some cases but it's more accurate. Part of the code is from the summer of code project by Gavin Howard, but it has been significantly rewritten and extended. --- intern/cycles/render/object.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'intern/cycles/render/object.h') diff --git a/intern/cycles/render/object.h b/intern/cycles/render/object.h index 31400f3c7f1..f3a019f4d73 100644 --- a/intern/cycles/render/object.h +++ b/intern/cycles/render/object.h @@ -53,14 +53,16 @@ public: ParticleSystem *particle_system; int particle_index; - + Object(); ~Object(); void tag_update(Scene *scene); - void compute_bounds(bool motion_blur, float shuttertime); + void compute_bounds(bool motion_blur); void apply_transform(); + + vector motion_times(); }; /* Object Manager */ -- cgit v1.2.3