StreamingImageTest.bv.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. g_screenshotOutputFolder = ResolvePath('@user@/Scripts/Screenshots/StreamingImage/')
  12. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder))
  13. OpenSample('RPI/StreamingImage')
  14. ResizeViewport(900, 900)
  15. SelectImageComparisonToleranceLevel("Level H")
  16. -- capture screenshot with all 2d images
  17. CaptureScreenshot(g_screenshotOutputFolder .. 'Streaming2dImages.png')
  18. -- capture screenshot for hot loading
  19. SetImguiValue('Switch texture', true)
  20. IdleFrames(1)
  21. CaptureScreenshot(g_screenshotOutputFolder .. 'HotReloading.png')
  22. -- capture screenshot for 3d images
  23. SetImguiValue('View 3D Images', true)
  24. IdleFrames(1)
  25. CaptureScreenshot(g_screenshotOutputFolder .. 'Streaming3dImage.png')
  26. OpenSample(nil)