mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-13 00:38:33 -05:00
bring in support for multiresolution volume rendering
This commit is contained in:
22
data/scene/enlilnh/enlilnh.mod
Normal file
22
data/scene/enlilnh/enlilnh.mod
Normal file
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
-- Volume module
|
||||
{
|
||||
Name = "Enlil New Horizons",
|
||||
Parent = "Root",
|
||||
Ephemeris = {
|
||||
Type = "Static",
|
||||
Position = { 0.0, 0.0, 0.0, 0}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableMultiresVolume",
|
||||
Translation = {0, 0, 0},
|
||||
Rotation = {2.1, 0, 0},
|
||||
Scaling = {1.1, 1.1, 1.1},
|
||||
ScalingExponent = 12,
|
||||
Source = "tsp/enlil_nh_128_128_16.tsp",
|
||||
TransferFunction = "transferfunctions/fire.txt",
|
||||
BrickSelector = "tf",
|
||||
},
|
||||
GuiName = "/Volumes/ENLIL New Horizons"
|
||||
}
|
||||
}
|
||||
10
data/scene/enlilnh/transferfunctions/fire.txt
Normal file
10
data/scene/enlilnh/transferfunctions/fire.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
width 1024
|
||||
lower 0.0
|
||||
upper 1.0
|
||||
|
||||
mappingkey 0.05 254 0 0 0
|
||||
mappingkey 0.10 254 0 0 110
|
||||
mappingkey 0.12 254 220 0 254
|
||||
mappingkey 0.15 254 100 0 254
|
||||
mappingkey 0.20 180 0 0 254
|
||||
mappingkey 0.25 180 0 80 254
|
||||
Reference in New Issue
Block a user