RenderablePlaneImageOnline
Inherits Renderable
A RenderablePlaneImageOnline creates a textured 3D plane, where the texture image is loaded from the internet though a web URL.
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
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 |
|
Decides whether the plane should automatically adjust in size to match the aspect ratio of the content. Otherwise it will remain in the given size. |
|
Value of type ‘Boolean’ |
Yes |
|
Specifies whether the plane should be a billboard, which means that it is always facing the camera. If it is not, it can be oriented using other transformations. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines the blending mode that is applied to this plane. |
|
In list { Normal, Additive } |
Yes |
|
If false, the image plane will not be mirrored when viewed 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 |
|
An RGB color to multiply with the plane’s texture. Useful for applying a color to grayscale images. |
|
Value of type ‘Color3’ |
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
Basic
This example shows how to create a textured plane in 3D space, where the texture is loaded from the internet though a web URL.
1local Node = {
2 Identifier = "RenderablePlaneImageOnline_Example",
3 Renderable = {
4 Type = "RenderablePlaneImageOnline",
5 Size = 3.0E11,
6 URL = "http://data.openspaceproject.com/examples/renderableplaneimageonline.jpg"
7 },
8 GUI = {
9 Name = "RenderablePlaneImageOnline - Basic",
10 Path = "/Examples"
11 }
12}
13
14asset.onInitialize(function()
15 openspace.addSceneGraphNode(Node)
16end)
17
18asset.onDeinitialize(function()
19 openspace.removeSceneGraphNode(Node)
20end)
Billboarded Image
This example shows how to create a textured plane in 3D space, where the texture is loaded from the internet though a web URL and the plane is billboarded to always face the camera.
1local Node = {
2 Identifier = "RenderablePlaneImageOnline_Example_Billboarded",
3 Renderable = {
4 Type = "RenderablePlaneImageOnline",
5 Size = 3.0E11,
6 URL = "http://data.openspaceproject.com/examples/renderableplaneimageonline.jpg",
7 Billboarded = true
8 },
9 GUI = {
10 Name = "RenderablePlaneImageOnline - Billboarded",
11 Path = "/Examples"
12 }
13}
14
15asset.onInitialize(function()
16 openspace.addSceneGraphNode(Node)
17end)
18
19asset.onDeinitialize(function()
20 openspace.removeSceneGraphNode(Node)
21end)