Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

What is the "up" direction defined by -u for the sample hemisphere of the rfluxmtx program

asked 2021-06-29 00:29:22 -0500

JChen1234's avatar

updated 2021-06-29 00:34:36 -0500

In the tutorial Daylighting Simulations with Radiance using Matrix-based Methods (pp. 42), the "view-up" vector of the rfluxmtx hemispherical sampling is set to +Y direction, as in the figure below.

To my understanding, the window of the room model is facing the negative Y direction, which is the "south" direction in Radiance. Then, why is the sampling hemisphere taken to the positive Y direction here? In other words, shouldn't the sampling rays be shot into the negative Y directions to get the daylight matrix?

How to understand the definition of the "view-up" vector?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-29 10:56:11 -0500

The "up" direction for the hemisphere orients the coordinate system. In this case, setting "up" to +Y is the same as "north" by gensky conventions. You can of course define it in another way, but other parts of your calculation will then have to change, such as the way you use genskyvec. The number of samples will be distributed the same whatever you choose for "+Y" as their density is radially symmetric (or nearly so) for all hemisphere types.

I hope this helps.

edit flag offensive delete link more


Thank you. Howeve, I am still confused about the -u option.

For example, if I have three buildings, one with the window facing the south (-Y direction), the second with the window facing the east (+X direction), and the third with the window facing upward (+Z direction). When I solve for the daylight matrix from the sky to the three windows, should I use u = Y, u = X and u = Z respectively in the rfluxmtx comments of the skyglow definition or does it matter?

JChen1234's avatar JChen1234  ( 2021-06-29 13:52:05 -0500 )edit

I think you may be confusing the "up" direction with the hemisphere normal, which is determined from the surface normal, not the "up" vector. The arrow in Figure 37 is the surface normal. The up vector determines azimuthal rotation of the hemisphere, not the normal direction. In the case of your 3 windows, the surface normal of the window panes will define the hemisphere orientation, and the up direction can be "+Z" for the south- and east-facing windows, and should probably be set to "+Y" for the skylight. Does this make sense?

GregWard's avatar GregWard  ( 2021-06-29 14:02:53 -0500 )edit

I see. The 'up' direction is the zero-azimuth (which is North) direction of the hemisphere, right? In this case, it makes sense to align the 'up' vector with the Y axis of the model when sampling the sky dome, as the gensky convention puts North in the Y axis.

JChen1234's avatar JChen1234  ( 2021-06-29 14:50:29 -0500 )edit

Yes, that is correct.

GregWard's avatar GregWard  ( 2021-06-29 15:29:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2021-06-29 00:29:22 -0500

Seen: 168 times

Last updated: Jun 29 '21