RenderablePlaneProjection
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The SPICE name of the instrument that is used to project the image onto this |
|
Value of type ‘String’ |
No |
|
The SPICE name of the spacecraft from which the projection is performed. |
|
Value of type ‘String’ |
No |
|
The SPICE name of the default target that is imaged by this instrument (used when no target is identified by the |
|
Value of type ‘String’ |
Yes |
|
The image that is used on this plane before any image is loaded from the |
|
Value of type ‘String’ |
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
1local transforms = asset.require("./transforms")
2local kernels = asset.require("./kernels")
3
4
5
6local textures = asset.resource({
7 Name = "Bennu Textures",
8 Type = "HttpSynchronization",
9 Identifier = "bennu_textures",
10 Version = 1
11})
12
13
14local BennuBodyId = "2101955"
15
16local ImagePlane = {
17 Identifier = "ImagePlaneBennu",
18 Parent = transforms.BennuBarycenter.Identifier,
19 Renderable = {
20 Type = "RenderablePlaneProjection",
21 Frame = kernels.Frame.Bennu,
22 DefaultTarget = BennuBodyId,
23 Spacecraft = kernels.ID.OsirisRex,
24 Instrument = kernels.Frame.Polycam,
25 Moving = false,
26 Texture = textures .. "defaultProj.png"
27 },
28 GUI = {
29 Name = "OsirisREx Image Plane",
30 Path = "/Solar System/Missions/OSIRIS REx"
31 }
32}
33
34
35asset.onInitialize(function()
36 openspace.addSceneGraphNode(ImagePlane)
37end)
38
39asset.onDeinitialize(function()
40 openspace.removeSceneGraphNode(ImagePlane)
41end)
42
43asset.export(ImagePlane)