mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
-
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require("scene/solarsystem/planets/earth/transforms")
|
||||
|
||||
local earthRadius = 6371000
|
||||
local earthRadius = 2*10946320
|
||||
|
||||
local volume = {
|
||||
Identifier = "DebrisVolume",
|
||||
|
||||
@@ -1 +1 @@
|
||||
return {Dimensions={3.200000E1,3.200000E1,3.200000E1},GridType="Cartesian",LowerDomainBound={-0.500000E0,-0.500000E0,-0.500000E0},MaxValue=3.000000E0,MinValue=0,Time="2018-05-04T00:00:00.000",UpperDomainBound={0.500000E0,0.500000E0,0.500000E0}}
|
||||
return {Dimensions={6.400000E1,6.400000E1,6.400000E1},GridType="Cartesian",LowerDomainBound={-0.500000E0,-0.500000E0,-0.500000E0},MaxValue=2.000000E0,MinValue=0,Time="2018-05-04T00:00:00.000",UpperDomainBound={0.500000E0,0.500000E0,0.500000E0}}
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
width 1024
|
||||
lower 0.0
|
||||
upper 1.0
|
||||
mappingkey 0.0 250 250 250 0
|
||||
mappingkey 0.0 250 120 250 0
|
||||
mappingkey 1.0 200 200 200 255
|
||||
@@ -1,6 +1,6 @@
|
||||
return {{
|
||||
Type = "GenerateDebrisVolumeTask",
|
||||
Dimensions = {32, 32, 32},
|
||||
Dimensions = {64, 64, 64},
|
||||
LowerDomainBound = {-0.5, -0.5, -0.5},
|
||||
UpperDomainBound = {0.5, 0.5, 0.5},
|
||||
InputPath = "D:/Openspace/sync/url/satellite_tle_data_IndianASATtestDebris(10018654073589624780)/files/2019-006.txt",
|
||||
|
||||
@@ -422,7 +422,7 @@ float getMaxApogee(std::vector<KeplerParameters> inData){
|
||||
maxApogee = ah;
|
||||
}
|
||||
|
||||
return static_cast<float>(maxApogee*1000);
|
||||
return static_cast<float>(maxApogee*1000); // * 1000 for meters
|
||||
}
|
||||
|
||||
int getIndexFromPosition(glm::dvec3 position, glm::uvec3 dim, float maxApogee){
|
||||
@@ -499,6 +499,8 @@ void GenerateDebrisVolumeTask::perform(const Task::ProgressCallback& progressCal
|
||||
const int size = _dimensions.x *_dimensions.y *_dimensions.z;
|
||||
int *densityArrayp = new int[size]();
|
||||
float maxApogee = getMaxApogee(_TLEDataVector);
|
||||
LINFO(fmt::format("Max Apogee: {} ", maxApogee));
|
||||
|
||||
//densityArrayp = mapDensityToVoxels(densityArrayp, generatedPositions, _dimensions, maxApogee);
|
||||
densityArrayp = mapDensityToVoxels(densityArrayp, startPositionBuffer, _dimensions, maxApogee);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user