Hello everyone,
I’m using rcontrib to compute reflected light intensity of each sun in the sky. I faced some issues. So I politely ask some help here
- I merged several different suns in different solar positions with surface and material file of 3D models into octree file. As Greg thankfully informed several times in some previous answers, I used mirror and brightfunc to realize the specular surface which follows Fresnel law. However, rcontrib seems to detect the secondary source, the mirror, instead of the each sun with -m option. Is there a way to get it to calculate the contribution of the primary light source, which is each sun in my case? Or is there any other materials which doesn’t act as a secondary source and still can realize a specular reflective surface following fresnel law so that I can still stict to my current approach?
Here is the surface material I used:
void brightfunc glass_angular_effect
2 0.09266+0.9312*exp(-5.3*Rdot) .
0
1 0.08
glass_angular_effect mirror glass_mat
0
0
3 1 1 1
- Also, while using the
-o
option inrcontrib
, I’d like to usercalc
to calculate luminance, but it only provides RGB values without performing the calculation process. Below is the code snippet I’m using:
rcontrib -n 50 -h -V -o ./rcon_lum/%s.txt -m 11 -m 12 -m 13 -m 14 -ds 0.02 -dc 1 -dt 0 -dj 0.5 -st 0 -ss 64 -ab 3 -aa 0.02 -ar 1024 -ad 4096 -as 1024 -lw 1e-4 ./octree/oct_12.oct < ./rays.txt | rcalc -e ‘$1 = 179*(.265*$1+.670*$2 + .065*$3)’
Could you please advise on what modifications should be made in the code?
Many thanks,
Inwoo