RenderablePlaneImageOnline
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
This value specifies the size of the plane in meters |
|
Value of type ‘Double’, or Value of type ‘Vector2 |
No |
|
Sets the URL of the texture that is displayed on this screen space plane. If this value is changed, the image at the new path will automatically be loaded and displayed |
|
Value of type ‘String’ |
No |
|
This value specifies whether the plane is a billboard, which means that it is always facing the camera. If this is false, it can be oriented using other transformations |
|
Value of type ‘Boolean’ |
Yes |
|
This determines the blending mode that is applied to this plane |
|
In list { Normal, Additive } |
Yes |
|
If this value is set to false, the image plane will not be mirrored when looking from the backside. This is usually desirable when the image shows data at a specific location, but not if it is displaying text for example |
|
Value of type ‘Boolean’ |
Yes |
|
If set, the plane’s texture is multiplied with this color. Useful for applying a color grayscale images |
|
Value of type ‘Color3’ |
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
1local transforms = asset.require("scene/solarsystem/sun/transforms")
2
3
4
5local RenderablePlaneImageOnline = {
6 Identifier = "RenderablePlaneImageOnline",
7 Parent = transforms.SolarSystemBarycenter.Identifier,
8 Renderable = {
9 Type = "RenderablePlaneImageOnline",
10 Size = 3.0E11,
11 Origin = "Center",
12 Billboard = true,
13 URL = "http://data.openspaceproject.com/examples/renderableplaneimageonline.jpg"
14 },
15 GUI = {
16 Description = "A plane that loads a texture from the internet.",
17 Path = "/Examples"
18 }
19}
20
21
22asset.onInitialize(function()
23 openspace.addSceneGraphNode(RenderablePlaneImageOnline)
24end)
25
26asset.onDeinitialize(function()
27 openspace.removeSceneGraphNode(RenderablePlaneImageOnline)
28end)
29
30asset.export(RenderablePlaneImageOnline)
31
32
33asset.meta = {
34 Name = "RenderablePlaneImageOnline Example",
35 Version = "1.0",
36 Description = [[Example of how to create a textured plane in 3D space, where the
37 texture is loaded from a web URL]],
38 Author = "OpenSpace Team",
39 URL = "http://openspaceproject.com",
40 License = "MIT license"
41}