mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-26 05:58:58 -06:00
Added functionality to color specific nodes close to Earth
with different color tables
This commit is contained in:
@@ -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 },
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user