RenderableOrbitalKepler
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 |
|
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, 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. |
|
Value of type ‘Boolean’ |
Yes |
|
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 |
|
Value of type ‘Double’ |
Yes |
|
Number of objects to render sequentially from StartRenderIdx |
|
Value of type ‘Integer’ |
Yes |
|
Index of object in renderable group to start rendering (all prior objects will be ignored) |
|
Value of type ‘Integer’ |
Yes |
|
This value determines how fast the trail fades and is an appearance property. |
|
Value of type ‘Double’ |
Yes |
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Enables/Disables if the object should be dimmed when the camera is in the sunny part of an atmosphere |
|
Value of type ‘Boolean’ |
Yes |
|
This setting 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 |
|
This value specifies if the renderable should be rendered in the Background,Opaque, Pre/PostDeferredTransparency, or Overlay 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 |
|
This tells 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 = 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}