Display Builder 
© copyright 2013-2022 Matthew Keane
===================================

'Display Builder' is a utility designed to help with the rapid setup of multiple displays for
video walls and multi-screen projects in media server applications.

Licence
-------

This software is distributed under the terms of the ISC licence: http://opensource.org/licenses/ISC
Please see the licence terms in the separate 'LICENCE.txt' file.

System Requirements
-------------------
Display Builder is a Java application and the application download includes the required 
Java Runtime Environment (JRE).

Minimum display resolution: 1280x720 pixels.
Minimum memory required: 512Mb.

Installation
------------

Simply extract the zip archive to a suitable place on your hard-drive and launch the application.
The application itself is not signed by a developer - on macOS, you will need to authorise the app
in 'System Preferences - Security and Privacy' before launching it the first time.

What's New in version 4
-----------------------

- The app is now built with Processing 4 and uses the OpenJDK Java 11 runtime, which adds
support for macOs 10.14 and higher.

What's New in version 3
-----------------------

- The app now uses Java version 8, which means it can run on Mac OS 10.11.
- Support for hi-dpi displays.

- Added Keyboard shortcuts:
The 'Tab' key selects the next UI tab.
To pan around the screen, hold the 'Spacebar' then click and drag.
Hit (G)rab or (M)ove, (S)cale, (R)otate and then click and drag to transform elements (currently guides only). 
Hitting the 'Spacebar', or selecting a different tool, before releasing the mouse will cancel the transform
in progress.

- Layout Guides: Version 3.2 now includes the ability to add guide lines and images.

- Added the option to share Player outputs between Display Groups. 

- Added an option, under the 'View Options' tab, to show the spacing (pixel and physical) between Display 
centres. This can be useful for organising the physical placement of video projectors. The physical distance 
from the Grid origin is now included on physical grid lineup images.

- Replaced activity 'spinner' with information bar during import/export file activity.

What's New in version 2
-----------------------
- Display Groups: Version 2 of Display Builder introduces 'Display Groups'. Each group can contain multiple 
columns and rows of Displays with the same characteristics. To add Displays with different resolutions, 
physical sizes or orientations, add a new Display Group and configure the Displays as desired.
Groups can be positioned relative to the stage, or to another group. The currently selected 
Display Group is highlighted on screen - click on another group to select it.

- Physical size calculations: Enter the physical dimensions of a Display in order to calculate the area
of the projection surface. After setting the physical scale of the first Display Group, modifying
the size of Displays in subsequent groups will calculate the stage size. This allows the use of Displays 
with the same pixel resolution but different physical dimensions (e.g. 2 HD monitors with different 
screen sizes). Once physical dimensions are entered, a physical reference grid image can be exported.

- Save and load Project files. You can now save Display layouts for reuse. When loading files, you may
overwrite (replace) or import (add to) the current project.
When starting the application, Display Builder opens the 'default_project.xml' file from the 'data' folder.
You can modify or replace this file to change the project defaults.

Instructions
------------
Click on the 'Export files' button to export using the current settings, or click on 'Reset' to
revert to default settings.

The different options are grouped in a series of tabs:

- Display Builder:
Shows the application version number and the text of the software licence.
Follow the link to the matkeane.com website for more detailed information. The URL includes the app
name and version number, but no other personal information is sent.
View a summary of the total number of groups, displays and player machines used in the project.
Reset the project to default values, discarding any modifications.
Name the project - the name is used in the project and export filenames.
Load a saved Display Builder XML project file, overwriting - or optionally merging into - the 
current project.
Save the current project as an XML file.

- Layout Guides:
The 'Add Line' button adds a new guide line. Use the 'X' and 'Y' keys to switch between the X (horizontal) 
and Y (vertical) axes. Use the (G)rab or (M)ove shortcuts to drag guides into place, or enter a value 
in the position fields. The 'Load Image' buttons opens a file dialog to add link to an external image file 
(JPEG or PNG formats). Guide images can be (M)oved, (S)caled and (R)otated as required. Both types 
of guide can be locked (preventing further transformation) and the opacity changed.

- Tiers & Groups:
Add, delete, or rename Stage Tiers. Assign the current Display Group to a Stage Tier using the menu.
Add, delete, duplicate or rename the current Display Group.
Enter names for players and displays, and set ID numbers of I.P. addresses.
For Watchout 5 and later, set the number of outputs per player.
The 'Share/use free outputs' option will allow the next Display Group to use any Player outputs 
not used by the current Display Group. Deselecting this option in the next Display Group will force its 
Displays to start from output 1. Note that, if Display Groups used different resolutions, this option 
will not work for Watchout versions lower than v6.
Set outline colours for displays - by row, column or player - to differentiate them on stage.
The 'Import OBJ' button will attempt to import an 3D object in OBJ format to define the dimensions
of the current Display Group and automatically calculate Display size and positions to fit. Dimensions
are calculated from the X/Y extremities of the object, so complex or rotated objects may be imported
with incorrect dimensions.
The 'Add Preview' button will attempt to create a preview display on a new tier encompassing the
current Display Group. The Display uses the same resolution as the Display Group, but the stage-size 
will be increased to cover as much of the Display Group as possible.

- Display Setup:
Set display rotation.
Choose from standard display resolutions, or enter custom pixel dimensions. Click on the 'Ratio'
checkbox to lock, or unlock, the Display aspect ratio.
Optionally enter physical display size to calculate total projection area and pixel density.
Modify the stage size to use a different pixel size than the display resolution (or calculate it
from the physical size).

- Display Layout:
Choose the position origin, relative to the stage or another Display Group, and the alignment 
of the group and pixel offsets from the origin.
Set the number of displays horizontally and vertically. The 'H/V' order button toggles between
horizontal and vertical numbering for display IDs and multi-outputs.
Set the softedge in pixels, as a percentage, or in physical units. Use a negative value for 
non-overlapping displays.
View or set the total surface area in pixels (or the corresponding physical size).
If the dimensions of the surface area are specified by the user (rather than calculated), 
click 'Fit Displays' to automatically fit displays to the specified area.

- View Options:
The 'Show Guide Images' and 'Show Guide Lines' will show/hide all guides of that type.
View 4:3 aspect ratio guide lines (for non 4:3 aspect ratio Displays).
View crop values for each display to aid the creation of media proxies.
View an overlay with the pixel and physical coordinates of the cursor.
View the spacing (pixel and physical) between Display centres.
Change the scale of the layout on-screen, or auto-zoom to fit the displays to the screen.
Set the pixel grid size and colour.
Set the alignment, offset values and outline colour for the physical grid.
Set the surface area outline colour.

- Export Options:
Generate an alignment image for the projection area, and choose options for the image (for very 
large layouts, the alignment image may be created at a reduced scale due to memory constraints).
Generate greyscale/colour bars line-up images at the current display resolution, or a warping grid
image as a visual reference during geometry correction.
Choose to export display data in CSV format (with additional data such as display crop values), 
or as data for pasting directly into Watchout 4, 5 or 6.
Enter a name and select a destination folder for the exported files.


Version History
---------------

v4.0.6 = 24/02/22
- Fixed PSD script export when DisplayGroup has modified origins and position offsets.
- Added guides to PSD script - centre of DisplayGroup & User-added guides.

v4.0.5 - 23/02/22
- Added creation of Photoshop script to Modulo Kinetic export option. 
- Built with latest beta of Processing 4 and Java OpenJDK 17.

v4.0.4 - Version not found!

v4.0.1 - 12/12/21
- Added export option for Display Groups as Modulo Kinetic RenderSurfaces.

v4.0.0 - 14/09/21
- Initial v4 release using Processing 4 and Java OpenJDK 11.
- macOs 10.14 or higher required (the app can be run under 10.13 by opening the package contents).
- Better hi-dpi support on Windows 10.

v3.3.11 - 20/04/20
- Display Groups: Added OBJ import for basic 2D planes to define projection surface.
- Exports: Added support for OBJ surface & CSV projector list exports for Disguise D3.
- UI: Moved UI pane to top of window.
- UI: Added Display diagonal dimensions when physical size is set.
- UI: Window resizing deactivated on Windows 10 HiDpi monitors to avoid scaling bug.

v3.3.8 - 03/04/20
- Fixed bug with Preview Display positioning when rotated.
- Preview Display output number re-ordered to be first output on player.

v3.3.6 - 27/03/20
- Fixed bug with Preview Displays when using custom resolutions.
- Stage-size is now automatically rounded to even numbers when calculated.

v3.3.5 - 25/03/20
- StageTiers are exported to separate text files.
- Clipboard data only copies the currently selected DisplayGroup.

v3.3.1 - 15/05/19
- Added Stage Tiers menu to renamed 'Tiers & Groups' tab.
- Added button to 'Add Preview' Tier and Display to a Display Group.

v3.3.0 - 15/05/19
- Added MPCDI format to export options (for Watchout version 6.4 or later).

v3.2.5 - 24/04/19 (First 3.2.x release)
- Added Guides (lines & images).
- Added option to share Player outputs between Display Groups.
- Added option to show Display spacing (pixel and physical).
- Replaced activity 'spinner' with information bar during loading/file activity.
- 'matkeane' web site link button now includes app name & version as URL argument.

v3.0.7 - 02/03/18
- Added clipboard export button for display data.

v3.0.6 - 10/02/18
- Fixed calculation of projection surface centre coordinates in export comments.

v3.0.5 - 
- Added UI indicator during file activity.

v3.0.4 - 28/03/17
- Added constraints to Stage Size and Physical dimensions based on display resolution.
- Added SHIFT key modifier to reset Display Group offset when changing parent group.

v3.0.3 - 03/06/16
- New colour picker.
- Various bug fixes.

v3.0.1 - 03/05/16
- Responsive interface controls scale to fit app window on large monitors.

v3.0.0 - 24/04/16
- Beta release of v3 built with Processing 3, which allows:
- Java Run-Time 8 used (supported on OS10.11).
- Support for hi-density displays (e.g. Retina displays).

v2.1.2 - 22/02/16
- Pixel grid exports: Added dashed lines to show centre point of softedges. Extended Display
  centre marks to display edges.

v2.1.1 - 20/01/16
- Added basic support for Watchout v6 Displays.
- Set default locale to U.S. to avoid errors with float separators other than periods.
- Added locale code to project XML files.
- Fixed bug with display (not calculation) of Display crop values.
- Grid settings saved with Project file.

v2.0.7b2 - 26/10/15
- Version 2 Beta 2.

v2.0.5b1 - 01/10/15
- Version 2 Beta 1.

v1.2.6 - 08/02/15
- Added Physical reference grid in UI and image export exports.
- Softedge is entered & displayed as pixels, percentage or physical dimensions.
- Project defaults and Display resolutions loaded from external XML file.
- Added UI option to load external project file.

v1.0.9 - 28/01/14
- Increased memory settings for JRE to allow larger alignment image exports.
- Set default Display resolution to 1920x1080px.

v1.0.8 - 04/01/14
- Rebuilt app with latest version of Processing. App requires JRE 7 which is either embedded, or 
  must be installed for the non-embedded export to function.
- Requires OS 10.7.3 or later to run on the Mac platform.

v1.0.7 - 29/07/13
- Made it possible to resize the application window.

v1.0.6 - 24/07/13
- Made it possible to pan the viewport by clicking and dragging. 
- Double-clicking on the stage centres the projection surface in the viewport.

v1.0.5 - 15/07/13:
- Added licence text to UI and docs.

v1.0.4 - 10/07/13:
- Changed UI text for Display & Computer name options.

v1.0.3 - 09/07/13:
- Added the option to show crop values for Displays.
- Crop values added to CSV export format.

v1.0.2 - 04/07/13
- Fixed bug with Warping grids with non-integer column widths.
- Fixed bug with Display coloring groups for multi-output.

v1.0 - 03/07/13
- Initial Build.

Other Information
-----------------
Built with Processing: http://processing.org/

'Watchout' is a trademark of Dataton AB, Sweden: http://www.dataton.com/
