StreamingImageTest.bv.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ----------------------------------------------------------------------------------------------------
  2. --
  3. -- Copyright (c) Contributors to the Open 3D Engine Project.
  4. -- For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. --
  6. -- SPDX-License-Identifier: Apache-2.0 OR MIT
  7. --
  8. --
  9. --
  10. ----------------------------------------------------------------------------------------------------
  11. RunScript("scripts/TestEnvironment.luac")
  12. g_testCaseFolder = 'StreamingImage'
  13. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder .. g_testCaseFolder))
  14. OpenSample('RPI/StreamingImage')
  15. ResizeViewport(900, 900)
  16. SelectImageComparisonToleranceLevel("Level H")
  17. -- capture screenshot with all 2d images
  18. CaptureScreenshot(g_testCaseFolder .. '/Streaming2dImages.png')
  19. -- capture screenshot for hot loading
  20. SetImguiValue('Switch texture', true)
  21. IdleFrames(1)
  22. CaptureScreenshot(g_testCaseFolder .. '/HotReloading.png')
  23. -- capture screenshot for 3d images
  24. SetImguiValue('View 3D Images', true)
  25. IdleFrames(1)
  26. CaptureScreenshot(g_testCaseFolder .. '/Streaming3dImage.png')
  27. OpenSample(nil)