RenderableOrbitalKepler

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

Color

This value determines the RGB main color for the lines and points of the trail

Color3

Value of type ‘Color3’

No

Format

A NORAD-style Two-Line element Orbit Mean-Elements Message in the KVN notation JPL’s Small Bodies Database The file format that is contained in the file

String

In list { TLE, OMM, SBDB }

No

Path

The file path to the data file to read

File

Value of type ‘File’

No

SegmentQuality

A segment quality value for the orbital trail. A value from 1 (lowest) to 10 (highest) that controls the number of line segments in the rendering of the orbital trail. This does not control the direct number of segments because these automatically increase according to the eccentricity of the orbit

Integer

Value of type ‘Integer’

No

ContiguousMode

If enabled, then the contiguous set of objects starting from StartRenderIdx of size RenderSize will be rendered. If disabled, then the number of objects defined by UpperLimit will rendered from an evenly dispersed sample of the full length of the data file.

Boolean

Value of type ‘Boolean’

Yes

LineWidth

This value specifies the line width of the trail if the selected rendering method includes lines. If the rendering mode is set to Points, this value is ignored

Double

Value of type ‘Double’

Yes

RenderSize

Number of objects to render sequentially from StartRenderIdx

Integer

Value of type ‘Integer’

Yes

StartRenderIdx

Index of object in renderable group to start rendering (all prior objects will be ignored)

Integer

Value of type ‘Integer’

Yes

TrailFade

This value determines how fast the trail fades and is an appearance property.

Double

Value of type ‘Double’

Yes

Inherited members from Renderable

Name

Documentation

Type

Description

Optional

DimInAtmosphere

Enables/Disables if the object should be dimmed when the camera is in the sunny part of an atmosphere

Boolean

Value of type ‘Boolean’

Yes

Enabled

This setting determines whether this object will be visible or not

Boolean

Value of type ‘Boolean’

Yes

Opacity

This value determines the opacity of this renderable. A value of 0 means completely transparent

Double

In range: ( 0,1 )

Yes

RenderBinMode

This value specifies if the renderable should be rendered in the Background,Opaque, Pre/PostDeferredTransparency, or Overlay rendering step

String

In list { Background, Opaque, PreDeferredTransparent, PostDeferredTransparent, Overlay }

Yes

Tag

A single tag or a list of tags that this renderable will respond to when setting properties

Table, or String

Value of type ‘Table’, or Value of type ‘String’

Yes

Type

This tells the type of the renderable

String

Value of type ‘String’

Yes

Asset Examples

 1local transforms = asset.require("scene/solarsystem/planets/earth/transforms")
 2
 3
 4
 5local omm = asset.resource({
 6  Name = "Satellite OMM Data (ARGOS)",
 7  Type = "UrlSynchronization",
 8  Identifier = "satellite_omm_data_argos",
 9  Url = "https://www.celestrak.com/NORAD/elements/gp.php?GROUP=argos&FORMAT=kvn",
10  Filename = "argos.txt",
11  SecondsUntilResync = 24 * 60 * 60
12})
13
14
15local Argos = {
16  Identifier = "Argos",
17  Parent = transforms.EarthInertial.Identifier,
18  Renderable = {
19    Type = "RenderableOrbitalKepler",
20    Path = omm .. "argos.txt",
21    Format = "OMM",
22    SegmentQuality = 3,
23    Color = { 0.75, 0.75, 0.35 },
24    TrailFade = 17,
25    PointSizeExponent = 5.0,
26    RenderBinMode = "PostDeferredTransparent"
27  },
28  Tag = { "earth_satellites" },
29  GUI = {
30    Name = "ARGOS",
31    Path = "/Solar System/Planets/Earth/Satellites"
32  }
33}
34
35
36asset.onInitialize(function()
37  openspace.addSceneGraphNode(Argos)
38end)
39
40asset.onDeinitialize(function()
41  openspace.removeSceneGraphNode(Argos)
42end)
43
44asset.export(Argos)
45
46
47
48asset.meta = {
49  Name = "Satellites Weather - ARGOS",
50  Version = "1.0",
51  Description = "Satellites asset for Weather - ARGOS. Data from Celestrak",
52  Author = "OpenSpace Team",
53  URL = "https://celestrak.com/NORAD/elements/",
54  License = "Celestrak"
55}