Back at it again trying to resolve another issue, this time some questions about the sky matrix using gendaymtx.
My original issue seemed to have come from an incorrect creation of the 5185 sun. While looking through various threads I had seen a comment by Greg that the first sun (no rotations) should be in the +Y direction. Somehow mine had a vector of 0,0,0.0184789 which was throwing off all the matrix calculations. Not sure how this happened (or how I figured it out).
My question came up retracing the steps from Sarith’s tutorial and reviewing the man page for gendaymtx…
Section 9.1.3 shows (p81) the sky matrix command as - gendaymtx -m 6 -5 0.533 -of assets/NYC.wea > skyVectors/NYCd6.smx (created without -of for readability)
Appendix E | Scripts shows (p131) sky matrix command as - gendaymtx -5 0.533 -d -m 6 assets/NYC.wea > skyVectors/NYCsun.smx
Which of the above is correct ? The outputs are wildly different. The first (without -d) has values for most (if not all) of the components in the matrix file. The second (with -d) shows mostly zeroes throughout the file. I assume this is the expected result for no sky contribution. Since there is no documentation with the “-5” for 5-phase method I don’t know if it is assumed as direct output or not, though assuming it is not by default.
- Now that my sun file aligns, looks like vetting the test images we do want the “-d” to have only direct components. Without, there is light coming in through the west facing window - which I assume is the sky distribution applied to the 5185 “suns” in the overall sky distribution?
Seems like I answered my own question, the issue of the sun not aligning as expected really threw me off guard. Lucky to have found that post by Greg (though now can’t find again). Confirmation of the inclusion of “-d” would be good, though feel confident it is right.
Best, and thanks in advance (again).