RenderableSphericalGrid

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

Color

This value determines the color of the grid lines that are rendered

Color3

Value of type ‘Color3’

Yes

Labels

The labels for the grid

Table

LabelsComponent

Yes

LineWidth

This value specifies the line width of the spherical grid

Double

Value of type ‘Double’

Yes

Segments

This value specifies the number of segments that are used to render the surrounding sphere

Integer

Value of type ‘Integer’

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

 1-- Ellipsoid
 2-- This asset creates a SceneGraphNode that is rendering a sphere which is adjust to an
 3-- ellipsoidal shape by using a non-uniform scaling. In particular, the second axis is
 4-- half as long as the first, and the third axis is a third as long.
 5
 6local Node = {
 7  Identifier = "NonUniformStaticScale_Example_Ellipsoid",
 8  Transform = {
 9    Scale = {
10      Type = "NonUniformStaticScale",
11      Scale = { 149597870700, 149597870700 / 2, 149597870700 / 3 }
12    }
13  },
14  Renderable = {
15    Type = "RenderableSphericalGrid"
16  },
17  GUI = {
18    Name = "Ellipsoid",
19    Path = "/Examples/NonUniformStaticScale"
20  }
21}
22
23asset.onInitialize(function()
24  openspace.addSceneGraphNode(Node)
25end)
26
27asset.onDeinitialize(function()
28  openspace.removeSceneGraphNode(Node)
29end)