mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 05:29:41 -06:00
* Update pointcloud examples to conform with new example structure and add some new ones * Update name, GUI path and add title to top comment to match the decided format * Rename base examples to Basic, as agreed * Clarify TODO comment about broken label rotation --------- Co-authored-by: Alexander Bock <alexander.bock@liu.se> Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
27 lines
623 B
Lua
27 lines
623 B
Lua
-- Basic (Fixed Color and Size)
|
|
-- This example creates a point cloud with a fixed color and default size.
|
|
-- All the points will have the same size.
|
|
|
|
local Node = {
|
|
Identifier = "RenderablePointCloud_Example",
|
|
Renderable = {
|
|
Type = "RenderablePointCloud",
|
|
File = asset.resource("data/dummydata.csv"),
|
|
Coloring = {
|
|
FixedColor = { 0.0, 0.5, 0.0 }
|
|
}
|
|
},
|
|
GUI = {
|
|
Name = "Fixed Color and Size",
|
|
Path = "/Examples/RenderablePointCloud"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|