I have tried your suggestion but got syntax error:
rtrace -h [options] octree | rcalc -e ‘$1=$1;$2=$2;$3=$3’
Here is my syntax without your suggestion:
rtrace -af output\ambientFile [options] output\trial.oct < sensorpoints\subdivided.pts > output\trial.dt
Could you please help me to re-write it?
On the other hand, I have changed the rtrace.c by replacing “%e” with “%d”. However, I couldn’t compile Radiance on Windows OS. I got many errors, solved some of them but still have errors like missing QT5 widgets.
Edit: I have built “headless” with success. New rtrace.exe gives decimal output. But now the values are not matching, they are even completely different. Here are first 3 rows:
3.304742e+002 |
3.304742e+002 |
3.304742e+002 |
|
3.304742e+002 |
3.304742e+002 |
3.304742e+002 |
|
4.487080e+002 |
4.487080e+002 |
4.487080e+002 |
|
1610612736 |
1610612736 |
1610612736 |
|
1610612736 |
1610612736 |
1610612736 |
|
0 |
0 |
0 |
|
Edit2: I have changed the “rtrace.c” by replacing “%e” with “%f” and after CMake, opened the solution in Visual Studio and built only rtrace.exe. Now I am getting float values:
330.474213 |
330.474213 |
330.474213 |
|
330.474213 |
330.474213 |
330.474213 |
|
445.688354 |
445.688354 |
445.688354 |
|
Is there any way to get only integers?
Edit3: replacing “%e” with “%0.0f” solved the issue.