RenderableTrailOrbit
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
|---|---|---|---|---|
|
This value determines the RGB main color for the lines and points of the trail. |
|
Value of type ‘Color3’ |
No |
|
The objects period, i.e. the length of its orbit around the parent object given in (Earth) days. In the case of Earth, this would be a sidereal year (=365.242 days). If this values is specified as multiples of the period, it is possible to show the effects of precession. |
|
Greater than: 0 |
No |
|
The number of samples along the orbit. This determines the resolution of the trail; the tradeoff being that a higher resolution is able to resolve more detail, but will take more resources while rendering, too. The higher, the smoother the trail, but also more memory will be used. |
|
Greater than: 1 |
No |
|
A translation used to compute locations along the path. |
|
No |
|
|
Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines whether this object will be visible or not. |
|
Value of type ‘Boolean’ |
Yes |
|
Toggles whether the trail should fade older points out. If this value is true, the ‘Fade’ parameter determines the speed of fading. If this value is false, the entire trail is rendered at full opacity and color. |
|
Value of type ‘Boolean’ |
Yes |
|
The end time for the range of this orbit. The date must be in ISO 8601. |
|
A valid date in ISO 8601 format |
Yes |
|
Forces the trail to always have a visible length of one orbit. If the time from the start date of the trail and the current time in OpenSpace is less than one period (full rotation), then the trail will extends into the future compared to the current OpenSpace time. If the current time in OpenSpace has passed the end date, the last full period of the trail will be shown. Only works if there exist a Start Time and End Time for the orbit data. |
|
Value of type ‘Boolean’ |
Yes |
|
Only forces full trail orbit trail between start time and one orbital period after the end time. |
|
Value of type ‘Boolean’ |
Yes |
|
The amount of the trail that should be faded. If the value is 0 then the trail will have no fading applied. A value of 0.6 will result in a trail where 60% of the extent of the trail will have fading applied to it. In other words, the 40% closest to the head of the trail will be solid and the rest will fade until completely transparent at the end of the trail. A value of 1 will result in a trail that starts fading immediately, becoming fully transparent by the end of the trail.This setting only applies if the ‘EnableFade’ value is true. If it is false, this setting has no effect. |
|
In range: ( 0, 1) |
Yes |
|
The extent of the rendered trail. A value of 0 will result in no trail and a value of 1 will result in a trail that covers the entire extent. The setting only applies if ‘EnableFade’ is true. If it is false, this setting has no effect. |
|
In range: ( 0, 1) |
Yes |
|
Specifies the line width of the trail lines, if the selected rendering method includes lines. If the rendering mode is Points, this value is ignored. |
|
Greater or equal to: 0 |
Yes |
|
This value determines the opacity of this renderable. A value of 0 means completely transparent. |
|
In range: ( 0, 1) |
Yes |
|
Specifies the base size of the points along the line, if the selected rendering method includes points. If the rendering mode is Lines, this value is ignored. If a subsampling of the values is performed, the subsampled values are half this size. |
|
Greater or equal to: 0 |
Yes |
|
A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step. |
|
In list { Background, Opaque, PreDeferredTransparent, Overlay, PostDeferredTransparent, Sticker } |
Yes |
|
Determines how the trail should be rendered. If ‘Lines’ is selected, only the line part is visible, if ‘Points’ is selected, only the corresponding points (and subpoints) are shown. ‘Lines+Points’ shows both parts. |
|
In list { Lines, Points, Lines+Points, Lines+Points } |
Yes |
|
The start time for the range of this orbit. The date must be in ISO 8601. |
|
A valid date in ISO 8601 format |
Yes |
|
A single tag or a list of tags that this renderable will respond to when setting properties. |
|
Value of type ‘Table’, or Value of type ‘String’ |
Yes |
|
The type of the renderable. |
|
Value of type ‘String’ |
Yes |
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
|---|---|---|---|---|
|
Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines whether this object will be visible or not. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines the opacity of this renderable. A value of 0 means completely transparent. |
|
In range: ( 0, 1) |
Yes |
|
A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step. |
|
In list { Background, Opaque, PreDeferredTransparent, Overlay, PostDeferredTransparent, Sticker } |
Yes |
|
A single tag or a list of tags that this renderable will respond to when setting properties. |
|
Value of type ‘Table’, or Value of type ‘String’ |
Yes |
|
The type of the renderable. |
|
Value of type ‘String’ |
Yes |
Asset Examples
1local sunAsset = asset.require("scene/solarsystem/sun/transforms")
2local transforms = asset.require("./transforms")
3
4
5
6local OrcusTrail = {
7 Identifier = "OrcusTrail",
8 Parent = sunAsset.SunEclipJ2000.Identifier,
9 Renderable = {
10 Type = "RenderableTrailOrbit",
11 Enabled = asset.enabled,
12 Translation = transforms.Translation,
13 Color = { 0.2, 0.8, 0.3 },
14 Period = 89359.12208173508,
15 Resolution = 10000,
16 Fade = 1.24
17 },
18 Tag = { "planetTrail_dwarf" },
19 GUI = {
20 Name = "Orcus Trail",
21 Focusable = false,
22 Path = "/Solar System/Dwarf Planets/Orcus"
23 }
24}
25
26
27asset.onInitialize(function()
28 openspace.addSceneGraphNode(OrcusTrail)
29end)
30
31asset.onDeinitialize(function()
32 openspace.removeSceneGraphNode(OrcusTrail)
33end)
34
35asset.export(OrcusTrail)
36
37
38
39asset.meta = {
40 Name = "Orcus Trail",
41 Description = [[Trail of Orcus]],
42 Author = "OpenSpace Team",
43 URL = "https://www.openspaceproject.com",
44 License = "MIT"
45}