Add default colortable to data folder

This commit is contained in:
Oskar Carlbaum
2017-10-09 23:58:32 +02:00
parent bb43dace32
commit 1a00d8a34f
2 changed files with 10 additions and 1 deletions
@@ -0,0 +1,9 @@
width 5
lower 0.0
upper 1.0
mappingkey 0.0 0 0 0 255
mappingkey 0.25 255 0 0 255
mappingkey 0.5 255 140 0 255
mappingkey 0.75 255 255 0 255
mappingkey 1.0 255 255 255 255
@@ -214,7 +214,7 @@ void RenderableFieldlinesSequence::initialize() {
}
// Set a default color table, just in case the (optional) user defined paths are corrupt/not provided!
_colorTablePaths.push_back("${OPENSPACE_DATA}/colortables/kroyw.txt");
_colorTablePaths.push_back("${OPENSPACE_DATA}/scene/fieldlinessequence/colortables/kroyw.txt");
_transferFunction = std::make_shared<TransferFunction>(absPath(_colorTablePaths[0]));
// EXTRACT OPTIONAL INFORMATION FROM DICTIONARY