RenderablePlaneProjection

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

Instrument

The SPICE name of the instrument that is used to project the image onto this RenderablePlaneProjection

String

Value of type ‘String’

No

Spacecraft

The SPICE name of the spacecraft from which the projection is performed

String

Value of type ‘String’

No

DefaultTarget

The SPICE name of the default target that is imaged by this planet

String

Value of type ‘String’

Yes

Texture

The image that is used on this plane before any image is loaded from the ImageSequencerr

String

Value of type ‘String’

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

 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)