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

Value of type ‘Integer’

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-- Calibration Pattern
 2-- Creates a screenspace image plane with controls to for a blackout shape. Can be used
 3-- when using a secondary projector to project content on a dome surface.
 4
 5local texturePath = asset.resource({
 6  Type = "HttpSynchronization",
 7  Identifier = "calibration_pattern",
 8  Name = "ScreenSpaceInsetBlackout Calibration Pattern",
 9  Version = 1
10})
11
12local inset = {
13  Identifier = "ScreenSpaceInsetBlackout_Example_Calibration_Pattern",
14  Type = "ScreenSpaceInsetBlackout",
15  Name = "ScreenSpaceInsetBlackout Example - Calibration Pattern",
16  Blackoutshape = {
17    -- Must always contain four corners in the following order:
18    -- top-left, top-right, bottom-right, bottom-left
19    Corners = { { 0.0, 1.0 }, { 1.0, 1.0 }, { 1.0, 0.0 }, { 0.0, 0.0 } },
20    CalibrationTexturePath = texturePath .. "calibration-pattern.png",
21    EnableCalibrationPattern = true
22  },
23  Scale = 1.0
24}
25
26asset.onInitialize(function()
27  openspace.addScreenSpaceRenderable(inset)
28end)
29
30asset.onDeinitialize(function()
31  openspace.removeScreenSpaceRenderable(inset)
32end)