RenderableOrbitalKepler
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The RGB main color for the trails and points. |
|
Value of type ‘Color3’ |
No |
|
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. |
|
In list { TLE, OMM, SBDB } |
No |
|
The file path to the data file to read. |
|
Value of type ‘File’ |
No |
|
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. |
|
Value of type ‘Integer’ |
No |
|
If enabled, the contiguous set of objects starting from StartRenderIdx of size RenderSize will be rendered. If disabled, the number of objects defined by UpperLimit will rendered from an evenly dispersed sample of the full length of the data file. |
|
Value of type ‘Boolean’ |
Yes |
|
If true, the Max Size property will be used as an upper limit for the size of the point. This reduces the size of the points when approaching them, so that they stick to a maximum visual size depending on the Max Size value. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines if the points should be rendered with an outline or not. |
|
Value of type ‘Boolean’ |
Yes |
|
Controls the maximum allowed size for the points, when the max size control feature is enabled. This limits the visual size of the points based on the distance to the camera. The larger the value, the larger the points are allowed to be. In the background, the computations are made to limit the size of the angle between the CameraToPointMid and CameraToPointEdge vectors. |
|
Value of type ‘Double’ |
Yes |
|
The color of the outline. |
|
Value of type ‘Vector3 |
Yes |
|
Determines the thickness of the outline. A value of 0 will not show any outline, while a value of 1 will cover the whole point. |
|
Value of type ‘Double’ |
Yes |
|
An exponential scale value to set the absolute size of the point. |
|
Value of type ‘Double’ |
Yes |
|
Determines how the trail should be rendered. If ‘Trail’ is selected, only the line part is visible, if ‘Point’ is selected, only the current satellite/debris point is visible. |
|
In list { Trail, Point, PointsTrails } |
Yes |
|
Number of objects to render sequentially from StartRenderIdx. |
|
Value of type ‘Integer’ |
Yes |
|
Index of the first object in the block to render (all prior objects will be ignored). The block of objects to render will be determined by StartRenderIdx and RenderSize. |
|
Value of type ‘Integer’ |
Yes |
|
Determines how fast the trail fades out. A smaller number shows less of the trail and a larger number shows more. |
|
Value of type ‘Double’ |
Yes |
|
The line width used for the trail, if the selected rendering method includes lines. If the rendering mode is set to Points, this value is ignored. |
|
Value of type ‘Double’ |
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, PostDeferredTransparent, Overlay } |
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 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 = openspace.time.secondsPerDay()
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 Description = "Satellites asset for Weather - ARGOS. Data from Celestrak",
51 Author = "OpenSpace Team",
52 URL = "https://celestrak.com/NORAD/elements/",
53 License = "Celestrak"
54}