Added functionality to color specific nodes close to Earth

with different color tables
This commit is contained in:
Emilie
2020-07-01 11:38:43 +02:00
parent 5b25c00b73
commit b4d413338a
5 changed files with 82 additions and 47 deletions

View File

@@ -17,15 +17,14 @@ openspace.setPropertyValueSingle("Modules.Space.ShowExceptions", false)
--openspace.setPropertyValueSingle("Scene.SaturnTrail.Renderable.Enabled", false)
local transferFunctions = asset.localResource("transferfunctions")
-- local masVelocityColorTable = transferFunctions .. "/velocity_fieldlines.txt"
-- local masDensityColorTable = transferFunctions .. "/density_fieldlines.txt"
local streamnodeDensityColorTable = transferFunctions .. "/stream_nodes.txt"
local streamnodeColorTable = transferFunctions .. "/stream_nodes.txt"
local streamnodeColorTableEarth = transferFunctions .. "/stream_nodes10.txt"
local streamnodesDirectory = asset.syncedResource({
Name = "Bastille Day Stream nodes",
Type = "HttpSynchronization",
Identifier = "bastille_day_streamnodes",
Version = 3
Version = 2
})
@@ -46,9 +45,8 @@ local Streamnodes = {
-- AlphaBlendlingEnabled = false,
InputFileType = "json",
ColorTablePaths = {
streamnodeDensityColorTable,
-- masDensityColorTable,
-- masVelocityColorTable,
streamnodeColorTable,
streamnodeColorTableEarth,
},
--ColorTableMinMax = {
-- { 0, 1000000 },

View File

@@ -0,0 +1,12 @@
width 6
lower 0.0
upper 1.0
mappingkey 0.0 45 45 45 255
mappingkey 0.166 64 64 64 255
mappingkey 0.332 96 96 96 255
mappingkey 0.498 128 128 128 255
mappingkey 0.664 160 160 160 255
mappingkey 0.830 192 192 192 255
mappingkey 1.0 224 224 224 255