mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-01 17:20:09 -06:00
* Update name and path format of examples that follow the new structure * Fix a broken (updated) property name in an example * Make other examples' GUI paths more consistent * Put them all in the Examples folder
31 lines
983 B
Lua
31 lines
983 B
Lua
-- Basic
|
|
-- This example creates a point cloud that supports interpolation. The dataset is split
|
|
-- up into 10 objects, so that every tenth row represents a new position for an item at a
|
|
-- step in the interpolation.
|
|
|
|
local Node = {
|
|
Identifier = "RenderableInterpolatedPoints_Example",
|
|
Renderable = {
|
|
Type = "RenderableInterpolatedPoints",
|
|
-- The dataset here is just a linearly expanding dataset, where the points move in
|
|
-- a straight line
|
|
File = asset.resource("data/interpolation_expand.csv"),
|
|
-- Specify how many objects the rows in the dataset represent. Here, the dataset is
|
|
-- consists of 10 objects with positions at 6 different time steps. This information
|
|
-- is required
|
|
NumberOfObjects = 10
|
|
},
|
|
GUI = {
|
|
Name = "RenderableInterpolatedPoints - Basic",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|