Created
May 29, 2018 12:37
-
-
Save sariths/981ad4aff33aee28322b35fb8ad773e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Create sun primitive definition for solar calculations. | |
echo "void light solar 0 0 3 1e6 1e6 1e6" > skies/suns.rad | |
##Create solar discs and corresponding modifiers for 5185 suns corresponding to a Reinhart MF:6 subdivision. | |
##Windows users, who are unlikely to be able to run a MF:6 simulation, should set "cnt 5185" to "cnt 145" and "MF:6" to "MF:1". | |
cnt 145 | rcalc -e MF:1 -f reinsrc.cal -e Rbin=recno -o 'solar source sun 0 0 4 ${Dx} ${Dy} ${Dz} 0.533' >> skies/suns.rad | |
##Create an octree black octree, shading device with proxy BSDFs and solar discs. | |
oconv -f materials.rad room.rad skies/suns.rad > octrees/sunCoefficientsN.oct | |
##Calculate illuminance sun coefficients for images for the view file south.vf. | |
vwrays -vf views/south.vf -x 400 -y 400 -pj 0.7 -ff | rcontrib -w- -ab 1 -ad 256 -lw 1.0e-3 -dc 1 -dt 0 -dj 0 -ffc -n 12 `vwrays -vf views/south.vf -x 400 -y 400 -d` -o matrices/cds/hdr/southM1%03d.hdr -e MF:1 -f reinhart.cal -b rbin -bn Nrbins -m solar octrees/sunCoefficientsN.oct | |
##Generate a sun-matrix for the sun coefficients calculation. | |
gendaymtx -5 0.533 -d -m 1 assets/NYC.wea > skyVectors/NYCsun.smx | |
###Images | |
dctimestep -o results/5ph/cds/hdr/south%04d.hdr matrices/cds/hdr/southM1%03d.hdr skyVectors/NYCsun.smx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment