HttpSynchronization

Inherits ResourceSynchronization

Members

Name

Documentation

Type

Description

Optional

Identifier

The unique identifier for this resource that is used to request a set of files from the synchronization servers.

Identifier

An identifier string. May not contain ‘.’, spaces, newlines, or tabs

No

Version

The version of this resource that should be requested.

Integer

Greater or equal to: 0

No

UnzipFiles

Determines whether .zip files that are downloaded should automatically be unzipped. If this value is not specified, no unzipping is performed.

Boolean

Value of type ‘Boolean’

Yes

UnzipFilesDestination

The destination for the unzipping. If this value is specified, all zip files contained in the synchronization will be unzipped into the same specified folder. If this value is specified, but ‘unzipFiles’ is false, no extaction will be performed.

String

Value of type ‘String’

Yes

Asset Examples

 1-- Basic
 2-- This example creates a basic vector field visualization from a volumetric data file.
 3
 4-- Load the volume data from OpenSpace servers
 5local volume = asset.resource({
 6  Name = "Vector Field - Example",
 7  Type = "HttpSynchronization",
 8  Identifier = "vectorfield_volume",
 9  Version = 1
10})
11
12local Node = {
13  Identifier = "RenderableVectorField_Example",
14  Renderable = {
15    Type = "RenderableVectorField",
16    Mode = "Volume",
17    VectorFieldScale = 8.0,
18    Volume = {
19      VolumeFile = volume .. "vectorfield_16x16x16.bin",
20      MinDomain = { -5000.0, -5000.0, -5000.0 },
21      MaxDomain = { 5000.0, 5000.0, 5000.0 },
22      Dimensions = { 16, 16, 16 }
23    }
24  },
25  GUI = {
26    Name = "RenderableVectorField - Basic",
27    Path = "/Examples"
28  }
29}
30
31
32asset.onInitialize(function()
33  openspace.addSceneGraphNode(Node)
34end)
35
36asset.onDeinitialize(function()
37  openspace.removeSceneGraphNode(Node)
38end)