RenderableSphericalGrid

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

Color

The color of the grid lines.

Color3

Value of type ‘Color3’

Yes

Labels

The labels for the grid.

Table

LabelsComponent

Yes

LineWidth

The width of the grid lines. The larger number, the thicker the lines.

Double

Value of type ‘Double’

Yes

Segments

The number of segments the sphere is split into. Determines the resolution of the rendered sphere. Should be an even value (if an odd value is provided, the value will be set to the new value minus one).

Integer

Value of type ‘Integer’

Yes

Inherited members from Renderable

Name

Documentation

Type

Description

Optional

DimInAtmosphere

Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere.

Boolean

Value of type ‘Boolean’

Yes

Enabled

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

A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker 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

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 = "NonUniformStaticScale - Ellipsoid",
19    Path = "/Examples"
20  }
21}
22
23asset.onInitialize(function()
24  openspace.addSceneGraphNode(Node)
25end)
26
27asset.onDeinitialize(function()
28  openspace.removeSceneGraphNode(Node)
29end)