Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
OpenSpace
Commits
83a1fcb4
Commit
83a1fcb4
authored
5 years ago
by
Jonathan Fransson
Browse files
Options
Download
Email Patches
Plain Diff
Fixed merged issues
parent
36d09764
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
apps/OpenSpace-MinVR/ext/glfw
+1
-0
apps/OpenSpace-MinVR/ext/glfw
apps/OpenSpace/ext/sgct
+1
-1
apps/OpenSpace/ext/sgct
data/tasks/volume/debristasks/generate_cartesian_volume.task
+3
-3
data/tasks/volume/debristasks/generate_cartesian_volume.task
data/tasks/volume/debristasks/generate_spherical_volume.task
+3
-3
data/tasks/volume/debristasks/generate_spherical_volume.task
ext/ghoul
+1
-1
ext/ghoul
modules/digitaluniverse/rendering/renderablebillboardscloud.cpp
+15
-10
...s/digitaluniverse/rendering/renderablebillboardscloud.cpp
modules/digitaluniverse/rendering/renderabledumeshes.cpp
+14
-9
modules/digitaluniverse/rendering/renderabledumeshes.cpp
modules/digitaluniverse/rendering/renderableplanescloud.cpp
+15
-10
modules/digitaluniverse/rendering/renderableplanescloud.cpp
modules/space/shaders/debrisViz_vs.glsl
+3
-0
modules/space/shaders/debrisViz_vs.glsl
modules/space/tasks/generatedebrisvolumetask.cpp
+2
-1
modules/space/tasks/generatedebrisvolumetask.cpp
openspace.cfg
+2
-2
openspace.cfg
with
60 additions
and
40 deletions
+60
-40
glfw
@
7ef34eb0
Subproject commit 7ef34eb06de54dd9186d3d21a401b2ef819b59e7
This diff is collapsed.
Click to expand it.
sgct
@
25c8d30b
Compare
8d672fd0
...
25c8d30b
Subproject commit
8d672fd0a7c7ef0e6c48e1d43bacbddce1f0a10d
Subproject commit
25c8d30bde216066840d197e4443def196c70e17
This diff is collapsed.
Click to expand it.
data/tasks/volume/debristasks/generate_cartesian_volume.task
+
3
-
3
View file @
83a1fcb4
return {{
Type = "GenerateDebrisVolumeTask",
Dimensions = {
48, 48, 48
},
Dimensions = {
64, 64, 64
},
LowerDomainBound = {-0.5, -0.5, -0.5},
UpperDomainBound = {0.5, 0.5, 0.5},
InputPath = "${SYNC}/url/satellite_tle_data_DebrisAll/files/allDebrisInOneTLE.txt",
StartTime = "2019-07-27T10:00:00",
TimeStep = "
2
",
EndTime = "2019-07-27T1
2
:00:00",
TimeStep = "
10
",
EndTime = "2019-07-27T1
1
:00:00",
GridType = "Cartesian",
RawVolumeOutput = "${DATA}/assets/scene/solarsystem/planets/earth/satellites/debris/volume/generatedCartesian/singleDebris.rawvolume",
DictionaryOutput = "${DATA}/assets/scene/solarsystem/planets/earth/satellites/debris/volume/generatedCartesian/singleDebris.dictionary"
...
...
This diff is collapsed.
Click to expand it.
data/tasks/volume/debristasks/generate_spherical_volume.task
+
3
-
3
View file @
83a1fcb4
return {{
Type = "GenerateDebrisVolumeTask",
Dimensions = {
45
, 3
0
, 4
0
},
Dimensions = {
32
, 3
2
,
6
4},
LowerDomainBound = {0, 0, 0},
UpperDomainBound = {1, math.pi, 2 * math.pi},
InputPath = "${SYNC}/url/satellite_tle_data_DebrisAll/files/allDebrisInOneTLE.txt",
StartTime = "2019-07-27T10:00:00",
TimeStep = "
2
",
EndTime = "2019-07-27T1
2
:00:00",
TimeStep = "
10
",
EndTime = "2019-07-27T1
1
:00:00",
GridType = "Spherical",
RawVolumeOutput = "${DATA}/assets/scene/solarsystem/planets/earth/satellites/debris/volume/generated/singleDebris.rawvolume",
DictionaryOutput = "${DATA}/assets/scene/solarsystem/planets/earth/satellites/debris/volume/generated/singleDebris.dictionary"
...
...
This diff is collapsed.
Click to expand it.
ghoul
@
526b27cb
Compare
9045871f
...
526b27cb
Subproject commit
9045871f1e9a387708e8235c3bb809da7d860e6f
Subproject commit
526b27cb653fe9befc324278debc701297694207
This diff is collapsed.
Click to expand it.
modules/digitaluniverse/rendering/renderablebillboardscloud.cpp
+
15
-
10
View file @
83a1fcb4
...
...
@@ -845,6 +845,19 @@ void RenderableBillboardsCloud::renderLabels(const RenderData& data,
glm
::
vec4
textColor
=
_textColor
;
textColor
.
a
*=
fadeInVariable
;
textColor
.
a
*=
_opacity
;
ghoul
::
fontrendering
::
FontRenderer
::
ProjectedLabelsInformation
labelInfo
;
labelInfo
.
orthoRight
=
orthoRight
;
labelInfo
.
orthoUp
=
orthoUp
;
labelInfo
.
minSize
=
static_cast
<
int
>
(
_textMinSize
);
labelInfo
.
maxSize
=
static_cast
<
int
>
(
_textMaxSize
);
labelInfo
.
cameraPos
=
data
.
camera
.
positionVec3
();
labelInfo
.
cameraLookUp
=
data
.
camera
.
lookUpVectorWorldSpace
();
labelInfo
.
renderType
=
_renderOption
;
labelInfo
.
mvpMatrix
=
modelViewProjectionMatrix
;
labelInfo
.
scale
=
pow
(
10.
f
,
_textSize
);
labelInfo
.
enableDepth
=
true
;
labelInfo
.
enableFalseDepth
=
false
;
for
(
const
std
::
pair
<
glm
::
vec3
,
std
::
string
>&
pair
:
_labelData
)
{
//glm::vec3 scaledPos(_transformationMatrix * glm::dvec4(pair.first, 1.0));
glm
::
vec3
scaledPos
(
pair
.
first
);
...
...
@@ -853,16 +866,8 @@ void RenderableBillboardsCloud::renderLabels(const RenderData& data,
*
_font
,
scaledPos
,
pair
.
second
,
textColor
,
pow
(
10.
f
,
_textSize
.
value
()),
static_cast
<
int
>
(
_textMinSize
),
static_cast
<
int
>
(
_textMaxSize
),
modelViewProjectionMatrix
,
orthoRight
,
orthoUp
,
data
.
camera
.
positionVec3
(),
data
.
camera
.
lookUpVectorWorldSpace
(),
_renderOption
.
value
()
_textColor
,
labelInfo
);
}
}
...
...
This diff is collapsed.
Click to expand it.
modules/digitaluniverse/rendering/renderabledumeshes.cpp
+
14
-
9
View file @
83a1fcb4
...
...
@@ -549,6 +549,19 @@ void RenderableDUMeshes::renderLabels(const RenderData& data,
break
;
}
ghoul
::
fontrendering
::
FontRenderer
::
ProjectedLabelsInformation
labelInfo
;
labelInfo
.
orthoRight
=
orthoRight
;
labelInfo
.
orthoUp
=
orthoUp
;
labelInfo
.
minSize
=
static_cast
<
int
>
(
_textMinSize
);
labelInfo
.
maxSize
=
static_cast
<
int
>
(
_textMaxSize
);
labelInfo
.
cameraPos
=
data
.
camera
.
positionVec3
();
labelInfo
.
cameraLookUp
=
data
.
camera
.
lookUpVectorWorldSpace
();
labelInfo
.
renderType
=
_renderOption
;
labelInfo
.
mvpMatrix
=
modelViewProjectionMatrix
;
labelInfo
.
scale
=
pow
(
10.
f
,
_textSize
);
labelInfo
.
enableDepth
=
true
;
labelInfo
.
enableFalseDepth
=
false
;
for
(
const
std
::
pair
<
glm
::
vec3
,
std
::
string
>&
pair
:
_labelData
)
{
//glm::vec3 scaledPos(_transformationMatrix * glm::dvec4(pair.first, 1.0));
glm
::
vec3
scaledPos
(
pair
.
first
);
...
...
@@ -558,15 +571,7 @@ void RenderableDUMeshes::renderLabels(const RenderData& data,
scaledPos
,
pair
.
second
,
_textColor
,
pow
(
10.
f
,
_textSize
.
value
()),
static_cast
<
int
>
(
_textMinSize
),
static_cast
<
int
>
(
_textMaxSize
),
modelViewProjectionMatrix
,
orthoRight
,
orthoUp
,
data
.
camera
.
positionVec3
(),
data
.
camera
.
lookUpVectorWorldSpace
(),
_renderOption
.
value
()
labelInfo
);
}
}
...
...
This diff is collapsed.
Click to expand it.
modules/digitaluniverse/rendering/renderableplanescloud.cpp
+
15
-
10
View file @
83a1fcb4
...
...
@@ -652,6 +652,19 @@ void RenderablePlanesCloud::renderLabels(const RenderData& data,
glm
::
vec4
textColor
=
_textColor
;
textColor
.
a
*=
fadeInVariable
;
ghoul
::
fontrendering
::
FontRenderer
::
ProjectedLabelsInformation
labelInfo
;
labelInfo
.
orthoRight
=
orthoRight
;
labelInfo
.
orthoUp
=
orthoUp
;
labelInfo
.
minSize
=
static_cast
<
int
>
(
_textMinSize
);
labelInfo
.
maxSize
=
static_cast
<
int
>
(
_textMaxSize
);
labelInfo
.
cameraPos
=
data
.
camera
.
positionVec3
();
labelInfo
.
cameraLookUp
=
data
.
camera
.
lookUpVectorWorldSpace
();
labelInfo
.
renderType
=
_renderOption
;
labelInfo
.
mvpMatrix
=
modelViewProjectionMatrix
;
labelInfo
.
scale
=
pow
(
10.
f
,
_textSize
);
labelInfo
.
enableDepth
=
true
;
labelInfo
.
enableFalseDepth
=
false
;
for
(
const
std
::
pair
<
glm
::
vec3
,
std
::
string
>&
pair
:
_labelData
)
{
//glm::vec3 scaledPos(_transformationMatrix * glm::dvec4(pair.first, 1.0));
glm
::
vec3
scaledPos
(
pair
.
first
);
...
...
@@ -660,16 +673,8 @@ void RenderablePlanesCloud::renderLabels(const RenderData& data,
*
_font
,
scaledPos
,
pair
.
second
,
textColor
,
pow
(
10.
f
,
_textSize
.
value
()),
_textMinSize
,
_textMaxSize
,
modelViewProjectionMatrix
,
orthoRight
,
orthoUp
,
data
.
camera
.
positionVec3
(),
data
.
camera
.
lookUpVectorWorldSpace
(),
_renderOption
.
value
()
_textColor
,
labelInfo
);
}
}
...
...
This diff is collapsed.
Click to expand it.
modules/space/shaders/debrisViz_vs.glsl
+
3
-
0
View file @
83a1fcb4
...
...
@@ -73,6 +73,9 @@ void main() {
int
intfrac
=
int
(
nrOfRevolutions
);
double
doublefrac
=
double
(
intfrac
);
double
periodFraction
=
nrOfRevolutions
-
doublefrac
;
if
(
periodFraction
<
0
.
0
)
{
periodFraction
+=
1
.
0
;
}
periodFraction_f
=
float
(
periodFraction
);
// same procedure for the current vertex
...
...
This diff is collapsed.
Click to expand it.
modules/space/tasks/generatedebrisvolumetask.cpp
+
2
-
1
View file @
83a1fcb4
...
...
@@ -442,11 +442,12 @@ std::vector<glm::dvec3> getPositionBuffer(std::vector<KeplerParameters> tleData,
}
/*
LINFO(fmt::format("max theta: {} ", maxTheta));
LINFO(fmt::format("max phi: {} ", maxPhi));
LINFO(fmt::format("min theta: {} ", minTheta));
LINFO(fmt::format("min phi: {} ", minPhi));
*/
return
positionBuffer
;
}
...
...
This diff is collapsed.
Click to expand it.
openspace.cfg
+
2
-
2
View file @
83a1fcb4
...
...
@@ -6,13 +6,13 @@
-- occurs in a single window, a fisheye projection, or a dome cluster system
-- A regular 1280x720 window
--
SGCTConfig = sgct.config.single{}
SGCTConfig = sgct.config.single{}
-- A regular 1920x1080 window
-- SGCTConfig = sgct.config.single{1920, 1080}
-- A windowed 1920x1080 fullscreen
SGCTConfig = sgct.config.single{1920, 1080, border=false, windowPos={0,0}, shared=true, name="WV_OBS_SPOUT1"}
--
SGCTConfig = sgct.config.single{1920, 1080, border=false, windowPos={0,0}, shared=true, name="WV_OBS_SPOUT1"}
-- A 1k fisheye rendering
-- SGCTConfig = sgct.config.fisheye{1024, 1024}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment