3 |
|
file(MAKE_DIRECTORY "${test_output_dir}/dc") |
4 |
|
|
5 |
|
set(view_def -x 50 -y 50 -vf model.vp) |
6 |
– |
message(STATUS "view_def=${view_def}") |
6 |
|
|
7 |
< |
file(WRITE ${office_dir}/test/raytest_dc.sky |
8 |
< |
"void glow skyglow\n0\n0\n4\n1 1 1 0\n\nskyglow source sky\n0\n0\n4\n0 0 1 360 |
7 |
> |
file(WRITE "${office_dir}/test/raytest_dc.sky" |
8 |
> |
"void glow skyglow\n0\n0\n4\n1 1 1 0\n\nskyglow source sky\n0\n0\n4\n0 0 1 360 |
9 |
|
") |
10 |
|
|
11 |
|
message("Run: oconv${CMAKE_EXECUTABLE_SUFFIX} -f -i test/raytest_model.oct test/raytest_dc.sky") |
28 |
|
message("Run: vwrays${CMAKE_EXECUTABLE_SUFFIX} -ff ${view_def} | rtcontrib${CMAKE_EXECUTABLE_SUFFIX} -ab 1 ${rtcontrib_threads}-V+ -fo -ffc $\(vwrays -d ${view_def}\) -f tregenza.cal -bn 146 -b tbin -o ${test_output_dir}/dc/treg%03d.hdr -m skyglow test/raytest_model_dc.oct") |
29 |
|
execute_process( |
30 |
|
WORKING_DIRECTORY ${office_dir} |
31 |
< |
COMMAND vwrays${CMAKE_EXECUTABLE_SUFFIX} -ff ${view_def} |
31 |
> |
COMMAND vwrays${CMAKE_EXECUTABLE_SUFFIX} -ff ${view_def} |
32 |
|
COMMAND rtcontrib${CMAKE_EXECUTABLE_SUFFIX} -ab 1 ${rtcontrib_threads}-V+ -fo -ffc ${vwrays_out} -f tregenza.cal -bn 146 -b tbin -o ${test_output_dir}/dc/treg%03d.hdr -m skyglow test/raytest_model_dc.oct |
33 |
|
RESULT_VARIABLE res |
34 |
|
) |
35 |
|
if(NOT ${res} EQUAL 0) |
36 |
|
message(FATAL_ERROR "Bad return value from vwrays, res = ${res}") |
37 |
< |
endif() |
37 |
> |
endif() |
38 |
|
|
39 |
< |
execute_process( |
39 |
> |
execute_process( |
40 |
|
WORKING_DIRECTORY ${office_dir} |
41 |
|
COMMAND gensky${CMAKE_EXECUTABLE_SUFFIX} 03 21 12 -a 40 -o 105 -m 105 +s |
42 |
|
COMMAND ${perl} ${util_dir}/genskyvec.pl -m 1 |