Skip to content

Server side configurations

Mohammad (Moa) Raji edited this page Oct 17, 2017 · 1 revision

The server-side of a Tapestry program usually includes a directory with your datasets and a directory with some PBNJ configuration files. A PBNJ configuration file is a JSON file with a series of attributes such as the location of the datasets. Here is a sample configuration file:

{
    "imageSize": [512, 512],
    "cameraPosition": [-400, -20, -60],
    "filename": "/data/teapot.raw",
    "dimensions": [256, 256, 178],
    "dataset": "magnetic",
    "opacityAttenuation": 0.6,
    "backgroundColor": [38, 36, 54],
    "colorMap": "magma",
    "samplesPerPixel": 4
}

You can find other examples in the examples directory of Tapestry after running ./tapestry.sh examples.

Clone this wiki locally