ScreenSpaceInsetBlackout
Inherits ScreenSpaceRenderable
A ScreenSpaceInsetBlackout can be used to render a screen-space shape used to black out part of the rendering. This can be useful in a dome environment where you have a secondary presentation projector that can project on the dome surface. The blackout is used to avoid overlapping rendering between the dome projectors and the presentation projector.
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
No |
Inherited members from ScreenSpaceRenderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The type of the |
|
Must name a valid ScreenSpaceRenderable |
No |
|
A fixed color that is combined with the screen space renderable to create the final color. The actual color of the screen space renderable is alpha-blended with the background color to produce the final result. |
|
Value of type ‘Color4’ |
Yes |
|
The color of the border. |
|
Value of type ‘Color3’ |
Yes |
|
If this value is enabled and a border width is set, the border will be rendered as a feathered border rather than a hard corner. |
|
Value of type ‘Boolean’ |
Yes |
|
The width of the border. |
|
Greater than: 0 |
Yes |
|
Determines the position of this screen space plane in Cartesian three-dimensional coordinates (meters). |
|
Value of type ‘Vector3 |
Yes |
|
Determines whether this sceen space object will be rendered or not. |
|
Value of type ‘Boolean’ |
Yes |
|
If enabled, the object will be rotated to face the camera position. Any local rotation is then applied after this rotation. |
|
Value of type ‘Boolean’ |
Yes |
|
Sets the gamma correction of the texture that is applied in addition to the global gamma value. |
|
Value of type ‘Double’ |
Yes |
|
The unique identifier for this screen space renderable. It has to be unique amongst all existing screen space nodes that have been added to the scene. |
|
An identifier string. May not contain ‘.’, spaces, newlines, or tabs |
Yes |
|
If set, the plane’s texture is multiplied with this color. Useful for applying a color grayscale images. |
|
Value of type ‘Color3’ |
Yes |
|
The name of the |
|
Value of type ‘String’ |
Yes |
|
The opacity of the screen space object. If 1, the object is completely opaque. If 0, the object is completely transparent. |
|
In range: ( 0,1 ) |
Yes |
|
Determines the position of this screen space plane in a coordinate system based on radius (meters), azimuth (radians), and elevation (radians). |
|
Value of type ‘Vector3 |
Yes |
|
If true, this screen space renderable is going to ignore the global blackout factor from the Render Engine and will always render at full opacity. If false, it will adhere to the factor and fade out like the rest of the 3D rendering. |
|
Value of type ‘Boolean’ |
Yes |
|
An Euler rotation (x, y, z) to apply to the screen space object. |
|
Value of type ‘Vector3 |
Yes |
|
A scale factor for the plane that can be used to increase or decrease the visual size. The default size is determined separately for each screen space renderable type and may for example be affected by the size of an image being displayed. |
|
Value of type ‘Double’ |
Yes |
|
Defines either a single or multiple tags that apply to this |
|
Value of type ‘String’, or Value of type ‘Table’ |
Yes |
|
Determines whetether the z/radius values affects the size of the plane or not. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines whether the location of this screen space plane will be specified using radius, azimuth and elevation (if ‘true’) or using Cartesian coordinates. The Cartesian coordinate system is useful if a regular rendering is applied, whereas the radius azimuth elevation are most useful in a planetarium environment. |
|
Value of type ‘Boolean’ |
Yes |
Table parameters for Blackoutshape
Optional: No
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
List of points between the Bottom-Right and Bottom-Left corners that will be used to define bottom spline of the blackout shape. Each point is specified in the range of 0 to 1, where |
|
Yes |
|
|
File path for the texture that should be used when displaying the calibration grid. |
|
Value of type ‘File’ |
Yes |
|
List of corner positions for the blackout shape. The order of corner points are Top-Left, Top-Right, Bottom-Right, Bottom-Left with the range of 0 to 1 for |
|
No |
|
|
List of points between the Bottom-Left and Top-Left corners that will be used to define left spline of the blackout shape. Each point is specified in the range of 0 to 1, where |
|
Yes |
|
|
List of points between the Top-Right and Bottom-Right corners that will be used to define right spline of the blackout shape. Each point is specified in the range of 0 to 1, where |
|
Yes |
|
|
List of points between the Top-Left and Top-Right corners that will be used to define top spline of the blackout shape. Each point is specified in the range of 0 to 1, where |
|
Yes |
Table parameters for Bottom
List of points between the Bottom-Right and Bottom-Left corners that will be used to define bottom spline of the blackout shape. Each point is specified in the range of 0 to 1, where {1,0}
is the Bottom-Right corner and {0,0}
is the Bottom-Left corner.
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘Vector2 |
Yes |
Table parameters for Corners
List of corner positions for the blackout shape. The order of corner points are Top-Left, Top-Right, Bottom-Right, Bottom-Left with the range of 0 to 1 for {X,Y}
, where {0,1}
is the Top-Left corner and {1,0}
is the Bottom-Right corner.
Optional: No
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘Vector2 |
Yes |
Table parameters for Left
List of points between the Bottom-Left and Top-Left corners that will be used to define left spline of the blackout shape. Each point is specified in the range of 0 to 1, where {0,0}
is the Bottom-Left corner and {0,1}
is the Top-Left corner.
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘Vector2 |
Yes |
Table parameters for Right
List of points between the Top-Right and Bottom-Right corners that will be used to define right spline of the blackout shape. Each point is specified in the range of 0 to 1, where {1,1}
is the Top-Right corner and {1,0}
is the Bottom-Right corner.
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘Vector2 |
Yes |
Table parameters for Top
List of points between the Top-Left and Top-Right corners that will be used to define top spline of the blackout shape. Each point is specified in the range of 0 to 1, where {0,1}
is the Top-Left corner and {1,1}
is the Top-Right corner.
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘Vector2 |
Yes |
Asset Examples
Basic
Creates a screenspace image plane with controls to for a blackout shape. Can be used when using a secondary projector to project content on a dome surface.
1local inset = {
2 Identifier = "ScreenSpaceInsetBlackout_Example",
3 Type = "ScreenSpaceInsetBlackout",
4 Name = "ScreenSpaceInsetBlackout Example - Basic",
5 Blackoutshape = {
6 -- Must always contain four corners in the following order:
7 -- top-left, top-right, bottom-right, bottom-left
8 Corners = { {0.0, 1.0}, {1.0, 1.0}, {1.0, 0.0}, {0.0, 0.0} }
9 },
10 Scale = 1.0
11}
12
13asset.onInitialize(function()
14 openspace.addScreenSpaceRenderable(inset)
15end)
16
17asset.onDeinitialize(function()
18 openspace.removeScreenSpaceRenderable(inset)
19end)
Calibration Pattern
Creates a screenspace image plane with controls to for a blackout shape. Can be used when using a secondary projector to project content on a dome surface.
1local texturePath = asset.resource({
2 Type = "HttpSynchronization",
3 Identifier = "calibration_pattern",
4 Name = "ScreenSpaceInsetBlackout Calibration Pattern",
5 Version = 1
6})
7
8local inset = {
9 Identifier = "ScreenSpaceInsetBlackout_Example_Calibration_Pattern",
10 Type = "ScreenSpaceInsetBlackout",
11 Name = "ScreenSpaceInsetBlackout Example - Calibration Pattern",
12 Blackoutshape = {
13 -- Must always contain four corners in the following order:
14 -- top-left, top-right, bottom-right, bottom-left
15 Corners = { {0.0, 1.0}, {1.0, 1.0}, {1.0, 0.0}, {0.0, 0.0} },
16
17 CalibrationTexturePath = texturePath .. "calibration-pattern.png";
18 },
19 Scale = 1.0
20}
21
22asset.onInitialize(function()
23 openspace.addScreenSpaceRenderable(inset)
24end)
25
26asset.onDeinitialize(function()
27 openspace.removeScreenSpaceRenderable(inset)
28end)
Points
Creates a screenspace image plane with controls to for a blackout shape. Can be used when using a secondary projector to project content on a dome surface.
1local inset = {
2 Identifier = "ScreenSpaceInsetBlackout_Example_Points",
3 Type = "ScreenSpaceInsetBlackout",
4 Name = "ScreenSpaceInsetBlackout Example - Points",
5 Blackoutshape = {
6 -- Must always contain four corners in the following order:
7 -- top-left, top-right, bottom-right, bottom-left
8 Corners = { {0.0, 0.9}, {1.0, 0.9}, {0.9, 0.1}, {0.1, 0.1} },
9
10 -- Contains control points for top spline in order left to right
11 Top = { {0.5, 1.0} },
12
13 -- Contains control points for right spline in order top to bottom
14 Right = { },
15
16 -- Contains control points for bottom spline in order right to left
17 Bottom = { {0.7, 0.2}, {0.3, 0.2} },
18
19 -- Contains control points for left spline in order bottom to top
20 Left = { }
21 },
22 Scale = 1.0
23}
24
25asset.onInitialize(function()
26 openspace.addScreenSpaceRenderable(inset)
27end)
28
29asset.onDeinitialize(function()
30 openspace.removeScreenSpaceRenderable(inset)
31end)