mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-27 06:19:51 -05:00
Merge branch 'master' into thesis/2019/camera-paths
# Conflicts: # src/rendering/abufferrenderer.cpp
This commit is contained in:
@@ -474,6 +474,8 @@ void SessionRecording::initializePlayback_time(double now) {
|
||||
_timestampPlaybackStarted_simulation = global::timeManager->time().j2000Seconds();
|
||||
_timestampApplicationStarted_simulation = _timestampPlaybackStarted_simulation - now;
|
||||
_saveRenderingCurrentRecordedTime_interpolation = steady_clock::now();
|
||||
_saveRenderingCurrentApplicationTime_interpolation =
|
||||
global::windowDelegate->applicationTime();
|
||||
_saveRenderingClockInterpolation_countsPerSec =
|
||||
system_clock::duration::period::den / system_clock::duration::period::num;
|
||||
_playbackPauseOffset = 0.0;
|
||||
@@ -1178,11 +1180,14 @@ double SessionRecording::fixedDeltaTimeDuringFrameOutput() const {
|
||||
}
|
||||
|
||||
std::chrono::steady_clock::time_point
|
||||
SessionRecording::currentPlaybackInterpolationTime() const
|
||||
{
|
||||
SessionRecording::currentPlaybackInterpolationTime() const {
|
||||
return _saveRenderingCurrentRecordedTime_interpolation;
|
||||
}
|
||||
|
||||
double SessionRecording::currentApplicationInterpolationTime() const {
|
||||
return _saveRenderingCurrentApplicationTime_interpolation;
|
||||
}
|
||||
|
||||
bool SessionRecording::playbackCamera() {
|
||||
Timestamps times;
|
||||
datamessagestructures::CameraKeyframe kf;
|
||||
@@ -1800,6 +1805,8 @@ void SessionRecording::moveAheadInTime() {
|
||||
_saveRenderingCurrentRecordedTime_interpolation +=
|
||||
_saveRenderingDeltaTime_interpolation_usec;
|
||||
_saveRenderingCurrentRecordedTime += _saveRenderingDeltaTime;
|
||||
_saveRenderingCurrentApplicationTime_interpolation +=
|
||||
_saveRenderingDeltaTime;
|
||||
global::renderEngine->takeScreenshot();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user