Add documentation and example for RenderableSphereImageOnline (#3185)

* Add a simple online sphere image example

* Add documentation for RenderableSphereImageOnline

* Address pull request comments

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
This commit is contained in:
Malin E
2024-05-13 15:28:27 +02:00
committed by GitHub
parent cd02ff73d1
commit 09da94cf6b
3 changed files with 34 additions and 1 deletions
@@ -0,0 +1,27 @@
-- Basic
-- This example will show a sphere that is covered with an image which is retrieved from
-- an online URL. The image will be stretched over the entire sphere as an equirectangular
-- projection
local Node = {
Identifier = "RenderableSphereImageOnline_Example",
Renderable = {
Type = "RenderableSphereImageOnline",
URL = "http://data.openspaceproject.com/examples/renderableplaneimageonline.jpg",
-- Parameters from the parent class `RenderableSphere`
Segments = 16
},
GUI = {
Name = "Basic",
Path = "/Examples/RenderableSphereImageOnline"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(Node)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(Node)
end)