From 035ea9e9c448f8a4d0bfc7601c28d6e11adb1e97 Mon Sep 17 00:00:00 2001 From: Duncan McKay Date: Fri, 27 Sep 2019 11:33:50 -0700 Subject: [PATCH] Improvements for NVSceneCapturer -BugFix: https://github.com/NVIDIA/Dataset_Synthesizer/issues/16 -- Clear the bNeedToExportScene flag after each time we captured and exported the scene to make TimeBetweenSceneCapture work. -Enable feature requested in: https://github.com/NVIDIA/Dataset_Synthesizer/issues/13 -- check for actors in the array IgnoreActors --- .../Source/NVSceneCapturer/Private/NVSceneCapturerActor.cpp | 1 + .../Private/NVSceneFeatureExtractor_ImageExport.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVSceneCapturerActor.cpp b/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVSceneCapturerActor.cpp index 029bee1c6b1..d93bed1d7d6 100644 --- a/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVSceneCapturerActor.cpp +++ b/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVSceneCapturerActor.cpp @@ -369,6 +369,7 @@ void ANVSceneCapturerActor::CaptureSceneToPixelsData() } LastCaptureTimestamp = CurrentTime; + bNeedToExportScene = false; } void ANVSceneCapturerActor::UpdateCapturerSettings() diff --git a/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVSceneFeatureExtractor_ImageExport.cpp b/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVSceneFeatureExtractor_ImageExport.cpp index f794babf771..1e2f72781a6 100644 --- a/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVSceneFeatureExtractor_ImageExport.cpp +++ b/Source/Plugins/NVSceneCapturer/Source/NVSceneCapturer/Private/NVSceneFeatureExtractor_ImageExport.cpp @@ -113,7 +113,7 @@ UNVSceneCaptureComponent2D* UNVSceneFeatureExtractor_PixelData::CreateSceneCaptu // Hide actors in the list of ignored actors for (AActor* CheckActor : IgnoreActors) { - if (!CheckActor) + if (CheckActor) { NewSceneCaptureComp2D->HideActorComponents(CheckActor); }