AuxGeom.bv.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. function TakeScreenShotBoxes()
  12. NoClipCameraController_SetFov(DegToRad(70))
  13. NoClipCameraController_SetHeading(DegToRad(-40))
  14. NoClipCameraController_SetPitch(DegToRad(20))
  15. IdleFrames(1)
  16. CaptureScreenshot(g_screenshotOutputFolder .. '/auxgeom_boxes.png')
  17. end
  18. function TakeScreenShotShapes()
  19. NoClipCameraController_SetFov(DegToRad(70))
  20. NoClipCameraController_SetHeading(DegToRad(-130))
  21. NoClipCameraController_SetPitch(DegToRad(30))
  22. IdleFrames(1)
  23. CaptureScreenshot(g_screenshotOutputFolder .. '/auxgeom_shapes.png')
  24. end
  25. g_screenshotOutputFolder = ResolvePath('@user@/Scripts/Screenshots/AuxGeom/')
  26. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder))
  27. OpenSample('RPI/AuxGeom')
  28. ResizeViewport(800, 600)
  29. SelectImageComparisonToleranceLevel("Level B")
  30. TakeScreenShotBoxes()
  31. TakeScreenShotShapes()
  32. OpenSample(nil)