DCGlare

29 views
Skip to first unread message

Ali Fatoorechi

unread,
Jun 24, 2021, 8:00:45 AM6/24/21
to Accelerad Users
Hi Nathaniel,

I tried your tutorial2 for dcglare program. I shall say the imageless method is great giving that the image method takes hours to finish even for a view direction.

However I am not sure if the program reads the dc1.mtx as DCDirect. 

dcglare -vf uniformgridviews2.ray  -l 0.4 test dc1.mtx dc8.mtx SanFrancisco_1.smx > occupied.ga

On debugging the code "direct_path" is set to dc8.mtx. 
Looks like line 303 ( direct_path = argv[++a]  ) should use a++ rather than ++a ?

Ali Fatoorechi

unread,
Jun 24, 2021, 8:04:06 AM6/24/21
to Accelerad Users
I by mistake had extra parameter "test" on the posted command. Here is the corrected command args which still seems to parse dc8 as direct matrix.

dcglare -vf uniformgridviews2.ray  -l 0.4 dc1.mtx dc8.mtx SanFrancisco_1.smx > occupied.ga

Nathaniel Jones

unread,
Jun 24, 2021, 1:31:55 PM6/24/21
to Accelerad Users
Hi Ali,

Yes, it should be a++. Interestingly, the difference results in a less than 1% change in the average glare autonomy in the tutorial example, which I suppose goes to show how minor the effect of reflection is on glare in typical spaces.

Nathaniel

Ali Fatoorechi

unread,
Jun 25, 2021, 4:26:35 AM6/25/21
to Accelerad Users
Hi Nathaniel,

Sorry I couldn't articulate it properly. 

You said: "  the difference results in a less than 1% change ....which shows how minor the effect of reflection is on glare " .
So my question is which one do you think is more accurate, to use multiple bounces or not ?

Thank you,
Ali

Nathaniel Jones

unread,
Jun 25, 2021, 1:12:09 PM6/25/21
to Accelerad Users
Hi Ali,

The algorithm that dcglare uses is described in this paper. It requires you to calculate both the direct and total daylight coefficients, where the direct is calculated with ab=1 and the total is usually calculated with ab=8. So you have to use both a one-bounce and a multiple bounce calculation. The tutorial describes how to do this.

Nathaniel

Reply all
Reply to author
Forward
0 new messages