diff options
author | Callum Prentice <callum@lindenlab.com> | 2021-08-30 19:51:25 -0700 |
---|---|---|
committer | Callum Prentice <callum@lindenlab.com> | 2021-08-30 19:51:25 -0700 |
commit | 3648447235137596b0f1ee48da1af998028d27c5 (patch) | |
tree | 084a7ddb38d8a3ec73e9fb77d028c2113ef4da20 /indra/newview/llfloater360capture.cpp | |
parent | a29b1960c66ce533f4b7277631f6aaf93c8b1b28 (diff) |
SL-15918 Experimental feature to perform multiple render passes and reduce missing content - fixed
Diffstat (limited to 'indra/newview/llfloater360capture.cpp')
-rw-r--r-- | indra/newview/llfloater360capture.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/indra/newview/llfloater360capture.cpp b/indra/newview/llfloater360capture.cpp index 265f6dc866..30acf36be8 100644 --- a/indra/newview/llfloater360capture.cpp +++ b/indra/newview/llfloater360capture.cpp @@ -192,8 +192,8 @@ void LLFloater360Capture::changeInterestListMode(bool send_everything) } if (gAgent.requestPostCapability("InterestList", body, [](const LLSD & response) -{ - LL_INFOS("360Capture") << + { + LL_INFOS("360Capture") << "InterestList capability responded: \n" << ll_pretty_print_sd(response) << LL_ENDL; @@ -563,6 +563,15 @@ void LLFloater360Capture::capture360Images() "negx", "negz", "negy", }; + // number of times to render the scene (display(..) inside + // the simple snapshot function in llViewerWindow. + // Note: rendering even just 1 more time (for a total of 2) + // has a dramatic effect on the scene contents and *much* + // less of it is missing. More investigation required + // but for the moment, this helps with missing content + // because of interest list issues. + int num_render_passes = gSavedSettings.getU32("360CaptureNumRenderPasses"); + // time the encode process for later optimization auto encode_time_total = 0.0; @@ -596,7 +605,8 @@ void LLFloater360Capture::capture360Images() // call the (very) simplified snapshot code that simply deals // with a single image, no sub-images etc. but is very fast - gViewerWindow->simpleSnapshot(mRawImages[i], mSourceImageSize, mSourceImageSize); + gViewerWindow->simpleSnapshot(mRawImages[i], + mSourceImageSize, mSourceImageSize, num_render_passes); // encode each image and write to disk while saving how long it took to do so auto t_start = std::chrono::high_resolution_clock::now(); |