RenderableSphereSpout
Inherits Renderable
Members
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 renders a sphere with a texture that is provided by another application
on the same computer using the SPOUT library. Note that this library is only available
on Windows. A SPOUT-enabled application can share a texture using a user-defined
name, which is used as the SpoutName
here to receive that image. This allows the
integration of any generated image.
1local Node = {
2 Identifier = "RenderableSphereSpout_Example",
3 Renderable = {
4 Type = "RenderableSphereSpout",
5 Size = 333,
6 Segments = 32,
7 -- The name under which the other application is sharing an image
8 SpoutName = "WV_SPOUT"
9 },
10 GUI = {
11 Name = "RenderableSphereSpout - Basic",
12 Path = "/Examples"
13 }
14}
15
16asset.onInitialize(function()
17 openspace.addSceneGraphNode(Node)
18end)
19
20
21asset.onDeinitialize(function()
22 openspace.removeSceneGraphNode(Node)
23end)