RenderableTimeVaryingVolume
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
|---|---|---|---|---|
|
The number of seconds to show the the last timestep after its actual time. |
|
Value of type ‘Double’ |
No |
|
A directory from where to load the data files for the different time steps. |
|
Value of type ‘Directory’ |
No |
|
The path to the transfer function file. |
|
Value of type ‘File’ |
No |
|
A value that affects the general brightness of the volume rendering. |
|
Value of type ‘Double’ |
Yes |
|
@TODO Missing documentation |
|
Yes |
|
|
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 |
|
The grid type to use for the volume. |
|
In list { Spherical, Cartesian } |
Yes |
|
If true, the volume data will be inverted at its z-axis. |
|
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, Overlay, PostDeferredTransparent, Sticker } |
Yes |
|
The number of seconds to show the first timestep before its actual time. |
|
Value of type ‘Double’ |
Yes |
|
Specifies how often to sample during raycasting. Lower step size leads to higher resolution. |
|
Value of type ‘Double’ |
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 |
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, Overlay, PostDeferredTransparent, Sticker } |
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
1-- Before using this asset, the volume data itself needs to be generated,
2-- using the task 'data/tasks/volume/debristasks/generate_debris_volume.task'
3
4local earthAsset = asset.require("scene/solarsystem/planets/earth/transforms")
5
6
7
8local MaxApogee = 10946320
9
10local DebrisVolumeSpherical = {
11 Identifier = "DebrisVolumeSpherical",
12 Parent = earthAsset.EarthInertial.Identifier,
13 Transform = {
14 Scale = {
15 Type = "StaticScale",
16 Scale = MaxApogee
17 }
18 },
19 Renderable = {
20 Type = "RenderableTimeVaryingVolume",
21 SourceDirectory = asset.resource("generated"),
22 TransferFunction = asset.resource("transferfunction.txt"),
23 StepSize = 0.01,
24 MinValue = 0,
25 MaxValue = 1,
26 GridType = "Spherical",
27 SecondsBefore = 50 * openspace.time.secondsPerYear(),
28 SecondsAfter = 50 * openspace.time.secondsPerYear()
29 },
30 GUI = {
31 Name = "DebrisVolume - Spherical",
32 Path = "/Volumes"
33 }
34}
35
36
37asset.onInitialize(function()
38 openspace.addSceneGraphNode(DebrisVolumeSpherical)
39end)
40
41asset.onDeinitialize(function()
42 openspace.removeSceneGraphNode(DebrisVolumeSpherical)
43end)
44
45asset.export(DebrisVolumeSpherical)
46
47
48
49asset.meta = {
50 Name = "Satellites Debris - Volume Spherical",
51 Description = "Satellites asset for Debris - Volume Spherical. Example asset",
52 Author = "OpenSpace Team",
53 URL = "",
54 License = "MIT"
55}