Summary
The DC Field 3D Shading algorithm is a legacy (version 11 and below) pixel-counting approach that calculates shading within individual DC fields. The algorithm constructs 3D shadow volumes from each occluding object, then renders the DC field from the sun’s perspective and counts which pixels are shadowed versus illuminated to determine the shaded fraction. This rendering-based technique can handle complex geometries including external objects. The algorithm is limited to single DC field geometries and is deprecated in favor of the newer site-level shade engine but remains available for legacy predictions. This is a discrete-space approach with an inherent trade-off between computational speed and precision; the rendering resolution is set automatically by the software.Inputs
| Name | Symbol | Units | Description |
|---|---|---|---|
| DC Field Geometry | — | various | Module positions (m), dimensions (m), tilt angles (degrees), row spacing (m), bay layout |
| External Objects | — | m | Dimensions and positions of external objects (optional) |
| Tracker Angles | degrees | Rotation angle for each timestep (tracker systems only) | |
| Solar Zenith Angle | degrees | Angle between sun and vertical | |
| Solar Azimuth Angle | degrees | sun azimuth, measured clockwise from North |
Outputs
| Name | Symbol | Units | Description |
|---|---|---|---|
| Beam Shading Factor | — | Fraction of beam irradiance reaching bays (0-1) |
Detailed Description
The algorithm uses a pixel-counting approach implemented through the Depth Pass Stencil Buffer Shadow Volume (DPSBSV) rendering technique. The key concept is to view the DC field from the sun’s perspective and count which pixels are shadowed versus illuminated.Algorithm Overview
The algorithm operates in 3 main steps:- Construct shadow volumes - Project 3D shadows from each bay and external object
- Render scene and mark shadows - Draw bays from sun’s viewpoint, overlay shadow volumes, and mark shadowed pixels
- Count pixels and calculate shading factor - Count shaded vs. unshaded bay pixels and compute the ratio
Step 1: Shadow Volume Construction
For each occluder (bay or external object), the algorithm creates a 3D shadow volume by projecting the occluder’s vertices away from the sun to form an elongated 3D shape. This volume represents the region of space where sunlight is blocked by the occluder. The projections extend far enough to encompass all potential receiver bays in the DC field.Step 2: Render Scene and Mark Shadows
The algorithm sets up a virtual view from the sun’s location looking toward the DC field, then renders the 3D scene:- Draw bays: Render all receiver bays to identify which pixels represent bay surfaces
- Draw shadow volumes: Overlay the 3D shadow projections onto the scene
- Mark each pixel: Tag each bay pixel as either “shadowed” (inside any shadow volume) or “illuminated” (direct view to sun)