Files
OpenSpace/data/assets/examples/renderable/renderableinterpolatedpoints/interpolatedpoints.asset
Emma Broman 8a42657deb Feature/examples naming (#3305)
* 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
2024-06-13 10:42:00 +02:00

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)