Faster Sunlight Analysis in Houdini
A large-masterplan sunlight workflow in Houdini: using VEX for quicker geometric analysis, exposing reusable controls, and testing low-poly tree shading strategies.
A large masterplan changes what it means for an environmental analysis tool to be useful. The question is not only whether it can calculate a result. It is whether it lets me make a change, run the analysis again, and keep designing. When the model outgrew the workflow In this project, the size and geometric complexity of the masterplan made my Grasshopper workflow increasingly difficult to iterate. The Grasshopper and Ladybug-based approach I was using struggled with the amount of geometry and the repeated calculations. Recomputing the analysis became a bottleneck in the design process. Moving the calculation into Houdini, with the repeated geometric work handled in VEX, made this particular workflow significantly faster. That is an observation from this project, rather than a controlled benchmark of Houdini against every Grasshopper daylight plug-in. Geometry preparation, sampling density, ray settings and the analysis being calculated all affect the comparison. Put the repeated work where it runs efficiently The core idea is straightforward: distribute analysis points over a receiving mesh, generate sun or sky samples, and test whether each sample is visible from each analysis point. Obstructed samples do not contribute. Visible samples contribute according to the selected analysis mode and their weight. VEX is well suited to this repeated, attribute-based geometric work. SideFX describes it as a high-performance expression language with evaluation typically close to compiled C/C++ performance. In this setup, the expensive work is repeated intersection testing over a large mesh, rather than drawing the colour gradient at the end. Efficient per-point evaluation and a procedural geometry pipeline made the difference to how readily I could explore alternatives. The development conversation also explored replacing a Python sun/sky generator with VEX. That is a separate decision from accelerating the per-point accumulation: changing the generator alone is not proof that the entire analysis has become faster or more accurate. The reusable asset packages the workflow behind a compact interface. Read the time weights, not just the attribute name An early question in the development was whether the calculation represented a month or a year. The accumulator itself does not decide that. Its source samples, their represented dates and their time weights establish the period. For sunlight hours, a visible sample adds its represented duration. Summing those durations produces total sunlight hours over the selected period. Dividing by the number of represented days produces average daily sunlight hours. An annual total and a daily average can describe the same run while looking very different numerically. The screenshot shows both total_sun_hours and avg_daily_sun_hours. These should be read together with the period setting. A colour map without its metric, units, period and legend is not enough to compare two design options reliably. The receiving mesh displays sunlight exposure around the building massing; the asset controls are visible on the right. The control panel: what each parameter changes The selected asset in the screenshots exposes the following controls. The values shown are an example configuration, not universal defaults or recommended settings. Latitude and Longitude locate the study geographically and determine the sun-position calculation. Set these for the actual study location; the article deliberately omits the original site identity. Timezone sets the UTC offset used in the time interpretation. The screenshot uses UTC+4. Keep civil-time settings and sun-position inputs consistent. Spectrum selects the analysis period: the interface describes yearly, summer or winter studies, with Full Year selected in the images. Here, spectrum means a time scope, not a wavelength simulation. Seasonal definitions should be checked in the generator before comparing sites or hemispheres. Mode selects the calculation. Sunlight Hours is selected in both images. The interface also advertises radiation, lux and daylight analysis; these are different quantities and should not be treated as interchangeable results. Sky Rez controls the sky-dome sampling resolution used for daylight-factor analysis. The screenshot shows 1000 samples. More samples increase the computational workload; this is a sampling control, not a quality guarantee. Dome Radius sets the source dome's geometric extent. The screenshot shows 5000 scene units. The dome must be appropriate for the scene scale and encompass the study geometry; changing the radius does not change the real sun's distance. Toggle Sun Path enables the diagnostic sun-path geometry. It is off in the masterplan image and on in the second image, letting me inspect the generated directions separately from the receiving mesh. Sun Path Color controls the path's diagnostic colouring. Day Visualization is selected; the interface describes colouring by day ID or hour ID. This is a display setting, separate from the analysis result colours. The asset's help text identifies Input 1 as the analysis mesh and Input 2 as collision geometry. That is the external asset interface. Individual internal wrangles in the development chat use additional inputs for generated sun/sky samples, so their input numbers should not be copied directly to the asset's external sockets. The panel also explicitly notes that daylight-factor analysis ignores Spectrum. Sun-path visualization enabled, with the same analysis controls visible for inspection. Speed made mitigation part of the study The practical benefit was that I could add complexity where it mattered. With the quicker VEX-based calculation, I could introduce low-poly trees as obstruction geometry and test shading mitigation within the masterplan, rather than removing those elements simply to keep the analysis manageable. That made it possible to compare canopy placement, shade continuity and exposed routes alongside the buildings. Low-poly trees are useful geometric approximations for early design comparisons. An opaque canopy proxy does not model leaf transmission, seasonal foliage, species variation or thermal comfort by itself. The value was the ability to iterate those scenarios quickly and consistently. Fast feedback still needs a clear analysis definition Direct sunlight visibility is not the same as a full daylight simulation. Radiation needs an energy model and correct time weighting. Illuminance requires an appropriate sky and photometric interpretation; integrating lux over time gives lux-hours, not instantaneous lux. Daylight factor uses a defined sky and an outdoor reference, rather than simply counting direct-sun samples. The historical discussion contains prototype equations and debugging steps, including parameter references, normal direction, ray bias and intersection distance. These remain important checks. The screenshots and the asset name do not establish validation against a reference solver. For performance or accuracy comparisons, I would hold geometry, sample locations, time span and analysis assumptions constant, then record timings and compare numerical outputs. A reusable Houdini tool I have packaged the setup as RA Accurate Solar Analysis, a Houdini digital asset supplied in .hdalc format. Connect the analysis mesh and obstruction geometry, set the location and period, select the metric, and inspect the sun path before interpreting the coloured output. The biggest improvement was not a claim that one application wins every simulation. It was recovering the ability to ask the next design question: what happens if we change the canopy, move the shade, or test another part of the masterplan? References SideFX VEX documentation: https://www.sidefx.com/docs/houdini/vex/index.html SideFX compiled blocks: https://www.sidefx.com/docs/houdini/model/compile.html SideFX Houdini Indie: https://www.sidefx.com/products/houdini-indie/ Tool used in this post RA Accurate Solar Analysis — Houdini HDA

