Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/exporter/abc_archive.cc
| Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | |||||
| * | * | ||||
| * These are taken from the interval [shutter open, shutter close), | * These are taken from the interval [shutter open, shutter close), | ||||
| * uniformly sampled with 'nr_of_samples' samples. | * uniformly sampled with 'nr_of_samples' samples. | ||||
| * | * | ||||
| * TODO(Sybren): test that the above interval is indeed half-open. | * TODO(Sybren): test that the above interval is indeed half-open. | ||||
| * | * | ||||
| * If 'time_relative' is true, samples are returned as time (in seconds) from params.frame_start. | * If 'time_relative' is true, samples are returned as time (in seconds) from params.frame_start. | ||||
| * If 'time_relative' is false, samples are returned as fractional frames from 0. | * If 'time_relative' is false, samples are returned as fractional frames from 0. | ||||
| * */ | */ | ||||
| static void get_shutter_samples(double scene_fps, | static void get_shutter_samples(double scene_fps, | ||||
| const AlembicExportParams ¶ms, | const AlembicExportParams ¶ms, | ||||
| int nr_of_samples, | int nr_of_samples, | ||||
| bool time_relative, | bool time_relative, | ||||
| std::vector<double> &r_samples) | std::vector<double> &r_samples) | ||||
| { | { | ||||
| int frame_offset = time_relative ? params.frame_start : 0; | int frame_offset = time_relative ? params.frame_start : 0; | ||||
| double time_factor = time_relative ? scene_fps : 1.0; | double time_factor = time_relative ? scene_fps : 1.0; | ||||
| ▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines | |||||