Text archives Help
- From: thiago@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r2014 - trunk/StandAlone
- Date: Mon, 28 Jan 2008 19:29:54 -0700 (MST)
Author: thiago
Date: Mon Jan 28 19:29:54 2008
New Revision: 2014
Modified:
trunk/StandAlone/CMakeLists.txt
Log:
Added some tests for DynBVH, KDTree, and CGT. These assume that
/usr/sci/data/Geometry/Stanford_Sculptures/bun_zipper.ply can be
loaded, otherwise it's not run. This is a start. More tests with other
models, materials, renderers, etc... would be nice.
Modified: trunk/StandAlone/CMakeLists.txt
==============================================================================
--- trunk/StandAlone/CMakeLists.txt (original)
+++ trunk/StandAlone/CMakeLists.txt Mon Jan 28 19:29:54 2008
@@ -6,6 +6,24 @@
ADD_TEST(DefaultSceneNoDisplayBench_NP1 ${CMAKE_BINARY_DIR}/bin/manta -np
1 -nodisplaybench-dart 200 20)
ADD_TEST(DefaultSceneNoDisplayBench_NP2 ${CMAKE_BINARY_DIR}/bin/manta -np
2 -nodisplaybench-dart 400 40)
ADD_TEST(DefaultSceneNoDisplayBench_NP4 ${CMAKE_BINARY_DIR}/bin/manta -np
4 -nodisplaybench-dart 800 80)
+
+ SET (bunny_sci_model
/usr/sci/data/Geometry/Stanford_Sculptures/bun_zipper.ply)
+ IF( EXISTS "${bunny_sci_model}" )
+
+ SET (AccelerationStructure "-DynBVH")
+ SET (Bunny_command "-scene
\"${CMAKE_BINARY_DIR}/lib/libscene_triangleSceneViewer${CMAKE_SHARED_LIBRARY_SUFFIX}\(${AccelerationStructure}
-model ${bunny_sci_model} -triangleType Wald_tri\)\" -imagetraverser \"tiled
\(-square\)\" -camera \"pinhole\( -eye -0.0308032 0.257053 -0.0461074 -lookat
-0.0396542 0.111762 -0.0132095 -up -0.072059 0.224437 0.971821 -hfov 60 -vfov
60 -normalizeRays -createCornerRays \)\"" )
+ ADD_TEST(Bunny_DynBVH_NP2 ${CMAKE_BINARY_DIR}/bin/manta -np 2
${Bunny_command} -nodisplaybench-dart 200 20)
+
+ SET (AccelerationStructure "-KDTree")
+ SET (Bunny_command "-scene
\"${CMAKE_BINARY_DIR}/lib/libscene_triangleSceneViewer${CMAKE_SHARED_LIBRARY_SUFFIX}\(${AccelerationStructure}
-model ${bunny_sci_model} -triangleType Wald_tri\)\" -imagetraverser \"tiled
\(-square\)\" -camera \"pinhole\( -eye -0.0308032 0.257053 -0.0461074 -lookat
-0.0396542 0.111762 -0.0132095 -up -0.072059 0.224437 0.971821 -hfov 60 -vfov
60 -normalizeRays -createCornerRays \)\"" )
+ ADD_TEST(Bunny_KDTree_NP2 ${CMAKE_BINARY_DIR}/bin/manta -np 2
${Bunny_command} -nodisplaybench-dart 200 20)
+
+ SET (AccelerationStructure "-CGT")
+ SET (Bunny_command "-scene
\"${CMAKE_BINARY_DIR}/lib/libscene_triangleSceneViewer${CMAKE_SHARED_LIBRARY_SUFFIX}\(${AccelerationStructure}
-model ${bunny_sci_model} -triangleType Wald_tri\)\" -imagetraverser \"tiled
\(-square\)\" -camera \"pinhole\( -eye -0.0308032 0.257053 -0.0461074 -lookat
-0.0396542 0.111762 -0.0132095 -up -0.072059 0.224437 0.971821 -hfov 60 -vfov
60 -normalizeRays -createCornerRays \)\"" )
+ #CGT can't handle shadows right now, so we must disable it.
+ ADD_TEST(Bunny_CGT_NP2 ${CMAKE_BINARY_DIR}/bin/manta -np 2
${Bunny_command} -shadows noshadows -nodisplaybench-dart 200 20)
+ ENDIF( EXISTS "${bunny_sci_model}" )
+
ENDIF(BUILD_TESTING)
- [Manta] r2014 - trunk/StandAlone, thiago, 01/28/2008
Archive powered by MHonArc 2.6.16.