Files
OpenSpace/data/assets/examples/renderable/renderablepointcloud/pointcloud_units.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

25 lines
561 B
Lua

-- Units
-- This example creates a point cloud where the positions are interpreted to be in
-- another unit than meters (here kilometers).
local Node = {
Identifier = "RenderablePointCloud_Example_Units",
Renderable = {
Type = "RenderablePointCloud",
File = asset.resource("data/dummydata.csv"),
Unit = "Km"
},
GUI = {
Name = "RenderablePointCloud - Units",
Path = "/Examples"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(Node)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(Node)
end)