Analyze
zAnalyzeShadow
Shadow coverage, frames, animated GIF and report
zAnalyzeShadow uses the real latitude, longitude and sun position to study how much shade falls on a roof, a courtyard or any area you pick. It colors each cell of the area by its hours of shadow, reads the value of any cell, and exports annotated hour-by-hour frames, an animated GIF and a report.
Good for:
- Judging how much an area is shaded over a day, on the solstices and equinoxes, or at one hour across the year (a solar panel position, a courtyard, a roof garden).
- Producing shadow study images, shadow animations and a short analysis report.
Quick start
- Run
zAnalyzeShadow. The window opens with the objects you used last time in this file (the list is remembered in the Rhino file). Click + Pick Object in the OBJECTS table to pick one or more analysis areas, then press Enter. An object can be a closed planar curve, a solid, a surface or an extrusion (the outline of its top face is used, and the solid itself keeps casting shadows), or a mesh or a pitched surface (the grid is laid over the surface itself). - Set the latitude and longitude, the date and the hours in the SUN tab.
- In the OBJECTS table, set the Cell size of each object and press Compute.
- Look at the colored cells in the viewport and the number in the result card at the top. Use Inspect Cell to read one cell, and drag the Preview Hour strip at the bottom of the viewport to preview the live shadow at any hour.
- Output at the bottom left has Report… and Export Frames…. Bake at the bottom puts the colored result in the model as meshes.
- Close the tool with the X.
The window
There are no Setup and Result modes: everything is in one narrow column. From top to bottom:
- The status line: the number of objects (“Pick an object, then click Compute” while the list is empty). Warnings (for example that the sun is below the horizon at the current time) appear on a warning card attached to the window.
- The result card: the share of the selected object’s area that gets at least Sun Hours of sun, in large type, with the average hours of shadow under it; the gradient bar with its numbers (0 h to the object’s largest shadow hours); the five icon switches; Inspect Cell.
- OBJECTS: the table of objects.
- Tabs: SUN and DISPLAY.
- The bottom bar: Output at the left, Compute and Bake at the right.
There is no Reset button and no Close button. Right-click the result card and choose Reset to defaults to restore every setting. The info panel at the top right of the viewport shows the date, time, hours and the shaded share of the selected object.
OBJECTS
One row per object. The first row under the column titles is the global row, which acts on all objects.
- Object: the name. Click to select the row; the result card and the colors in the viewport follow the selected row. Double-click to rename. Shift+click selects a range and Ctrl+click adds or removes one. The Delete key removes the selected objects. Click the Object column title to sort by name.
- Right-click menu on a name:
- Rename: renames the object.
- Delete: removes it from the list (the object in the model is not deleted).
- Bake: puts that object’s colored result in the model (shown once it has a result).
- Select: selects the matching object in Rhino.
- Zoom to Objects: selects and zooms to the matching object.
- Select All: selects every object in the list.
- Invert Selection: inverts the selection.
- Clear All: empties the list.
- + Pick Object: in the Object column of the global row. Click it to pick more objects: closed planar curves, or solids, surfaces and extrusions (the outline of the highest horizontal planar face is used). Curves that are not closed or not planar are skipped, and the command line says so. Picking more than 20 at once asks for confirmation. If you delete a curve that was picked as an object in the model, its part of the preview goes with it.
- Selected rows have a thin dark outline; rows selected next to each other share one outline.
- Cell: the side of one square cell, in feet. A smaller side gives a finer grid and a more precise result, but a slower calculation. It is set for each object; the Cell on the global row changes all objects at once. Changing it clears that object’s result, so compute again.
- Plane: the plane the grid lies on. One button:
- Click: pick one of this object’s own edges; it becomes the X direction of the grid. Click again to pick another. Pressing Esc goes back to World.
- Right-click: back to the World plane.
- The Plane button on the global row: pick one edge and all objects use the same plane; right-click sends all objects back to World.
- Compute: the play icon of a row computes the accumulated hours of shadow of that object over the current hours. While it runs, it becomes a progress ring and a stop button. The Compute icon on the global row computes all objects, and while they run it becomes a stop-all button.
SUN tab
The tab has three parts: LOCATION, TIME and PASS LINE.
LOCATION
- Latitude: -90 to 90 degrees. Read from the document’s Earth Anchor Point when the tool opens, and you can type your own. Whichever you changed last wins.
- Longitude: -180 to 180 degrees. Same rule as Latitude.
- Paste: reads a “latitude, longitude” text copied from a map and fills both fields at once. If the text is not in that form, nothing changes and the command line says so.
The time zone is not a setting. It is worked out from the longitude (one hour per 15 degrees) and does not know about daylight saving time.
TIME
- Period: which dates to analyze.
- Single Day: one day you choose; the Date field shows.
- Key Dates: the spring equinox (3/20), summer solstice (6/21), autumn equinox (9/23) and winter solstice (12/21) of the current year.
- Yearly: the same hour on every day of the year; the Hour field shows.
- Date: the calendar date. Shown only in Single Day.
- Range: the hours to analyze, a two-handle slider from 0 to 24 in half-hour steps. Hidden in Yearly.
- Time Step: the sampling step inside the Range, which is also the step between exported frames. Hidden in Yearly.
- Every 15 min
- Every 30 min
- Every hour
- Every 2 hours
- Hour: the fixed hour sampled on each day in Yearly mode. Default 9:00.
PASS LINE
- Sun Hours: a cell “meets” the target when its hours of sun inside the Range reach this value. Default 3.0. It is used for the share in the status column and for the Headline of the report, and it does not change the computed hours of shadow. Shown in every Period.
DISPLAY tab
How the shadow is drawn in the viewport.
- Sharpness: the precision of the shadow map (the video memory it uses), matching the shadow settings of a Rhino display mode. Changing it rebuilds the shadow map and refreshes the preview. High by default.
- Low: softer edges, the lightest on resources.
- Medium: a balance between precision and cost.
- High: the sharpest edges, using the most video memory.
- Intensity: how dark the shadow is, 0 to 100.
- Color: the shadow color. Double-click the swatch to change it.
The Preview Hour strip
A thin time strip at the bottom center of the active viewport sets the hour the viewport shows the shadow at.
- Drag the handle, or click the track, to move the sun. It moves in quarters of an hour and only inside the Range.
- After a few seconds without use it folds to a small sun with the hour. Move the pointer over it, or drag, and it opens again.
- It is not drawn in Yearly, where there is one fixed hour, and it never appears in the Report or in exported frames.
The result card
- Gradient bar: the colors of the shadow hours map. Double-click to add or remove a stop, right-click a stop to change its color, and right-click the bar for the presets and Flip Gradient.
- Five icon switches under the bar, in this order. Hover one to see its name:
- Map Result: shows the colored shadow hours map. It follows the selected row.
- Gradient: shows the color legend in the viewport.
- Blur Gradient: on, the colors blend smoothly between cells; off, each cell is one flat color.
- Grid Divisions: draws the cell lines over the colors. They switch off by themselves after a Compute.
- North Arrow: shows a north arrow in a corner of the viewport.
- Inspect Cell: click it, then click a colored square in the viewport to read its hours of shadow. Esc ends the picking and keeps the reading, Enter clears it.
Output and the bottom bar
- Output opens a menu:
- Report…: opens the Shadow Report window (see below). At least one object must have a result.
- Export Frames…: opens the Shadow Frames window to export hour-by-hour frames and a GIF (see below).
- Compute: computes every object in the list.
- Bake: puts the colored result of every computed object in the model as meshes, on the zAnalyzeShadow layer. Objects whose result is out of date are skipped, and the warning card says why. With nothing computed, the warning card shows a red “Nothing to bake” line. To bake one object only, right-click it in the table and choose Bake.
Shadow Frames
The left side of the Shadow Frames window is a preview of one frame, and the settings are on the right. The frames are captured from a dedicated floating Rhino view, so set up the camera and display mode in that view first. Scroll the mouse wheel over the preview to zoom that view, and drag on an empty area to pan it.
FRAME
- Aspect ratio: the proportion of the frame. The list has both landscape and portrait ratios.
- Width in pixels: the width of the frame, 1920, 2560 or 3840. The height follows the aspect ratio. The choice is remembered (2560 the first time).
OBJECTS
- Object list: tick the objects to annotate on the frames (outline, name and shaded share).
MODULES
The annotations on the frame. Tick to switch them on or off, and drag a module directly in the preview to place it; while dragging it snaps to the picture margins, the center lines and the edges of other modules.
- Date and Time: the date and time.
- Coverage: the shaded share of each object.
- Objects: the outlines and names of the objects.
- North Arrow: a north arrow.
OUTPUT
- Frames (PNG): saves one PNG for each date and time, named by date and time.
- Animated GIF: makes one animated GIF for each date (one for the whole year in Yearly).
- GIF Delay (ms): how long each frame stays in the GIF, in milliseconds.
Buttons
- Export: after you choose a folder, exports frame by frame following the dates and the step set in TIME. You are asked to confirm when there are more than 50 images. During the export the button becomes Cancel, so you can stop at any time. Times when the sun is below the horizon are skipped. Nothing can be exported when neither Frames (PNG) nor Animated GIF is ticked.
- Close: closes the window.
Shadow Report
The left side of the Shadow Report window is a live 16:9 preview of the page. Above it are the page tabs, one per page; each tab shows the page number and the page type (Plan, Compare or Summary).
Page tabs
- Page tab: click to switch pages. Each page remembers its own content, ticked objects and modules. Drag a tab left or right to change the page order. Right-click a tab for Remove Page (the last page cannot be removed).
- +: adds a page after the current one, as a copy of it.
PAGE
- Plan | Summary: the type of the page.
- Plan: the shadow hours plan with the modules beside it. With one object ticked it is a single-object page; with two or more it becomes a comparison page (Compare) automatically, with the plans side by side at the same scale (up to four shown).
- Summary: the plans of all ticked objects side by side (up to four), followed by a short written reading and a data table, in a fixed layout.
- Width in pixels (16:9): the width of the exported image, 1920, 2560 or 3840. The height follows 16:9. The choice is remembered (2560 the first time).
- Map Result: where the plan on the page comes from.
- Floating View: opens a dedicated floating Rhino view for the ticked objects. Set its camera, display mode and layers, and the report carries what you see in that view. The proportion of the view is locked, but you can move it.
- Mesh Only: draws only the colored result mesh, without the model.
OBJECTS
- Object list: tick the objects to put on this page (only objects with results are listed). Double-click a name or right-click, Rename to rename it; the name also updates in the list of the analysis window.
MODULES
The modules shown on the right of the page (below the plans on a comparison page). Tick to switch them on or off and drag the handle at the start of a row to change their order. The Summary page has a fixed layout and no modules.
- Headline: the share of the area that meets Sun Hours in large type, with the length of the hours, the average hours of shadow and the number of points. Single-object pages only.
- Coverage: a line chart of the shaded share over time (Shadow Coverage), one line per object, broken where the sun is down. There is no such curve in Yearly mode.
- Shadow Hours: the hours of shadow of all sample points sorted from most to least as a curve over the share of area, with a dashed line marking where Sun Hours is still met.
- By Object: one bar per object showing the share of the area that meets Sun Hours. It is drawn only when at least two objects have results.
- Numbers: a table of object, share meeting the target, average shadow, minimum, maximum and number of points.
Buttons
- Refresh: reads the latest results and names from the analysis window again.
- Export PNG: exports all pages. With one page you choose a file name; with several pages you choose a folder and each page is named automatically.
- Copy: copies the current page to the clipboard at the chosen width.
- Close: closes the report window.
How the settings work together
- Period decides which TIME fields show. Key Dates and Yearly do not read the Date. Yearly also hides Range, Time Step and the Preview Hour strip, and keeps one Hour.
- The Preview Hour strip always stays inside the Range. When you narrow the Range, a preview hour outside it is pulled back in.
- Changing Cell or Plane makes that object’s result out of date. Compute again.
- Changing Sharpness rebuilds the shadow map, and the preview refreshes.
- Sun Hours only changes the share that meets the target and the report Headline, not the computed hours of shadow.
- The TIME part of the SUN tab also drives the exported frames. Shadow Frames makes one frame for each step given by Period, Range and Time Step.
- Object names are shared between the analysis window and the report window. Renaming in either one updates the other.
Good to know
- After computing, a ring of empty cells runs along the edge, or the whole area has no color. Only cells whose four corners all lie inside the object are kept; cells that cross the object are removed. When the Cell is large compared with the area, the edge stays empty, and a small area may get no cell at all. Use a smaller Cell.
- A solid picked as an object. The outline of its highest horizontal face is used as the object, and the solid itself still casts shadows, which suits roof studies.
- Plane cannot pick the edge you want. Plane can only pick edges of that object itself.
- The warning card says the sun is below the horizon. At the current preview hour the sun has not risen yet or has already set, so there is no shadow to show. Drag the Preview Hour strip into the daytime.
- Export says “To Hour must be greater than From Hour”. The start and end of the Range are the same or reversed. Adjust the Range.
- The exported frames do not show the view you expected. The frames come from the dedicated floating view opened by Shadow Frames, not from the current viewport. Set up the camera and display mode in that view, then export.
- The exported GIF is too fast or too slow. Change GIF Delay (ms); a larger value keeps each frame on screen longer.
- The viewport looks different while the tool is open. While the tool is open, the viewport uses the shadow display mode
z Shadow, the same one as in thezAssetLibraryDisplay tab. When you close the tool, the display mode and sun settings from before are restored.