Files
OpenSpace/data/tasks/volume/generate_cartesian.task
Emil Axelsson 5de728442d Feature/volume tools (#614)
* Create volume generation task

* Change domain bounds into a non-optional parameter

* Work on volume generation and rendering

* Example generation of time varying volume

* Example generation of time varying volume

* Compile fix in RenderableKameleonVolume

* Fix copy and paste error

* Enable spherical raycasting again

* Uniform naming

* Add some documentation and remove dead code
2018-06-08 09:47:24 -04:00

18 lines
595 B
Plaintext

local fn =
"return function (x, y, z) " ..
" if math.sqrt(x^2 + y^2 + z^2) < 0.4 then " ..
" return 0.8 " ..
" end " ..
" return 0.0 " ..
"end"
return {{
Type = "GenerateRawVolumeTask",
Dimensions = {32, 32, 32},
LowerDomainBound = {-0.5, -0.5, -0.5},
UpperDomainBound = {0.5, 0.5, 0.5},
ValueFunction = fn,
Time = "2018-05-04T00:00:00",
RawVolumeOutput = "${DATA}/assets/examples/volume/generated/cartesian/cartesian.rawvolume",
DictionaryOutput = "${DATA}/assets/examples/volume/generated/cartesian/cartesian.dictionary"
}}