Skip to content

Commit

Permalink
Add SPLAT config testing (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal authored Sep 6, 2024
1 parent a8b29de commit ad5d951
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions application/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ f3d_test(NAME TestVTS DATA bluntfin.vts)
f3d_test(NAME TestVTM DATA mb.vtm)
f3d_test(NAME TestVTK DATA cow.vtk)
f3d_test(NAME TestNRRD DATA beach.nrrd ARGS -s)
f3d_test(NAME TestSPLAT DATA small.splat ARGS -osy --up=-Y --point-size=1)
f3d_test(NAME TestGridX DATA suzanne.ply ARGS -g --up=+X)
f3d_test(NAME TestGridY DATA suzanne.ply ARGS -g --up=+Y)
f3d_test(NAME TestGridZ DATA suzanne.ply ARGS -g --up=+Z)
Expand Down Expand Up @@ -287,6 +288,8 @@ endif()
if(VTK_VERSION VERSION_GREATER_EQUAL 9.3.20240203)
if(NOT APPLE) # MacOS does not support compute shaders
f3d_test(NAME Test3DGaussiansSplatting DATA small.splat ARGS -osy --up=-Y --point-size=1 --point-type=gaussian --camera-position=-3.6,0.5,-4.2)
f3d_test(NAME TestDefaultConfigFileSPLAT DATA small.splat CONFIG config_build LONG_TIMEOUT)
f3d_test(NAME TestThumbnailConfigFileSPLAT DATA small.splat CONFIG thumbnail_build LONG_TIMEOUT)
endif()
endif()

Expand Down
3 changes: 2 additions & 1 deletion plugins/native/configs/config.d/10_native.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"point-sprites": true,
"point-size": 1,
"point-type": "gaussian",
"scalars": "color",
"scalar-coloring": true,
"coloring-array": "color",
"comp": "-2",
"bg-color": "0, 0, 0",
"up": "-Y",
Expand Down
3 changes: 2 additions & 1 deletion plugins/native/configs/thumbnail.d/10_native.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"point-sprites": true,
"point-size": 1,
"point-type": "gaussian",
"scalars": "color",
"scalar-coloring": true,
"coloring-array": "color",
"comp": "-2",
"up": "-Y",
"camera-position": "0,1,-5.2",
Expand Down
3 changes: 3 additions & 0 deletions testing/baselines/TestDefaultConfigFileSPLAT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions testing/baselines/TestSPLAT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions testing/baselines/TestThumbnailConfigFileSPLAT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad5d951

Please sign in to comment.