RenderableSphericalGrid
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
This value determines the color of the grid lines that are rendered |
|
Value of type ‘Color3’ |
Yes |
|
The labels for the grid |
|
Yes |
|
|
This value specifies the line width of the spherical grid |
|
Value of type ‘Double’ |
Yes |
|
This value specifies the number of segments that are used to render the surrounding sphere |
|
Value of type ‘Integer’ |
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
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)