RenderableSphericalGrid
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The color of the grid lines. |
|
Value of type ‘Color3’ |
Yes |
|
The labels for the grid. |
|
Yes |
|
|
The width of the grid lines. The larger number, the thicker the lines. |
|
Value of type ‘Double’ |
Yes |
|
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). |
|
Value of type ‘Integer’ |
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
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)