Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Multi-Layer Reprojection
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Multi-Layer Reprojection
Commits
e2378322
Commit
e2378322
authored
1 year ago
by
Jens Koenen
Browse files
Options
Downloads
Patches
Plain Diff
Dynamic cell subdivision resolution implemented
parent
9252b4f1
Branches
feature/dual-layer-reprojection
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/strategy/dual_layer_reprojection.cpp
+4
-1
4 additions, 1 deletion
src/strategy/dual_layer_reprojection.cpp
src/strategy/dual_layer_reprojection.hpp
+7
-0
7 additions, 0 deletions
src/strategy/dual_layer_reprojection.hpp
with
11 additions
and
1 deletion
src/strategy/dual_layer_reprojection.cpp
+
4
−
1
View file @
e2378322
...
@@ -7,7 +7,6 @@ namespace glsl
...
@@ -7,7 +7,6 @@ namespace glsl
using
namespace
glm
;
using
namespace
glm
;
using
uint
=
glm
::
uint32
;
using
uint
=
glm
::
uint32
;
#include
"res/dpr/strategy/dual_layer_reprojection/dual_layer_reprojection_data.inc"
#include
"res/dpr/strategy/dual_layer_reprojection/dual_layer_reprojection_data.inc"
#include
"res/dpr/strategy/dual_layer_reprojection/dual_layer_reprojection_defines.inc"
}
}
DualLayerReprojection
::
DualLayerReprojection
()
DualLayerReprojection
::
DualLayerReprojection
()
...
@@ -204,7 +203,10 @@ bool DualLayerReprojection::on_interface()
...
@@ -204,7 +203,10 @@ bool DualLayerReprojection::on_interface()
ImGui
::
SliderFloat
(
"Reproject Slope Threshold"
,
&
this
->
reproject_slope_threshold
,
0.0
f
,
1.0
f
);
ImGui
::
SliderFloat
(
"Reproject Slope Threshold"
,
&
this
->
reproject_slope_threshold
,
0.0
f
,
1.0
f
);
ImGui
::
SliderFloat
(
"Subdivision Threshold"
,
&
this
->
subdivision_threshold
,
0.0
,
1.0
f
);
ImGui
::
SliderFloat
(
"Subdivision Threshold"
,
&
this
->
subdivision_threshold
,
0.0
,
1.0
f
);
ImGui
::
SliderInt
(
"Subdivide Cell Border"
,
(
int32_t
*
)
&
this
->
subdivide_cell_border
,
0
,
8
);
ImGui
::
SliderInt
(
"Subdivide Cell Border"
,
(
int32_t
*
)
&
this
->
subdivide_cell_border
,
0
,
8
);
ImGui
::
SliderInt
(
"Subdivide Resolution"
,
(
int32_t
*
)
&
this
->
subdivision_resolution
,
2
,
DUAL_LAYER_REPROJECTION_SUBDIVIDE_GROUP_SIZE
);
ImGui
::
SliderFloat
(
"Debug Value"
,
&
this
->
debug_value
,
0.0
,
1.0
f
);
ImGui
::
SliderFloat
(
"Debug Value"
,
&
this
->
debug_value
,
0.0
,
1.0
f
);
ImGui
::
Checkbox
(
"Wireframe"
,
&
this
->
wireframe
);
ImGui
::
Checkbox
(
"Wireframe"
,
&
this
->
wireframe
);
ImGui
::
Checkbox
(
"Performance View"
,
&
this
->
performance_view
);
ImGui
::
Checkbox
(
"Performance View"
,
&
this
->
performance_view
);
...
@@ -274,6 +276,7 @@ bool DualLayerReprojection::on_render(VkCommandBuffer command_buffer, lava::inde
...
@@ -274,6 +276,7 @@ bool DualLayerReprojection::on_render(VkCommandBuffer command_buffer, lava::inde
metadata
.
debug_value
=
this
->
debug_value
;
metadata
.
debug_value
=
this
->
debug_value
;
metadata
.
wireframe
=
this
->
wireframe
;
metadata
.
wireframe
=
this
->
wireframe
;
metadata
.
performance_view
=
this
->
performance_view
;
metadata
.
performance_view
=
this
->
performance_view
;
metadata
.
subdivision_resolution
=
this
->
subdivision_resolution
;
this
->
get_headset
()
->
submit_metadata
(
std
::
span
<
uint8_t
>
((
uint8_t
*
)
&
metadata
,
sizeof
(
metadata
)));
this
->
get_headset
()
->
submit_metadata
(
std
::
span
<
uint8_t
>
((
uint8_t
*
)
&
metadata
,
sizeof
(
metadata
)));
...
...
This diff is collapsed.
Click to expand it.
src/strategy/dual_layer_reprojection.hpp
+
7
−
0
View file @
e2378322
...
@@ -3,6 +3,11 @@
...
@@ -3,6 +3,11 @@
#include
"stereo_strategy.hpp"
#include
"stereo_strategy.hpp"
namespace
glsl
{
#include
"res/dpr/strategy/dual_layer_reprojection/dual_layer_reprojection_defines.inc"
}
enum
DualLayerReprojectionOverlay
:
uint32_t
enum
DualLayerReprojectionOverlay
:
uint32_t
{
{
DUAL_LAYER_REPROJECTION_OVERLAY_COLOR
,
DUAL_LAYER_REPROJECTION_OVERLAY_COLOR
,
...
@@ -39,6 +44,7 @@ struct DualLayerReprojectionMetadata
...
@@ -39,6 +44,7 @@ struct DualLayerReprojectionMetadata
float
debug_value
;
float
debug_value
;
bool
wireframe
;
bool
wireframe
;
bool
performance_view
;
bool
performance_view
;
uint32_t
subdivision_resolution
;
};
};
class
DualLayerReprojection
:
public
StereoStrategy
class
DualLayerReprojection
:
public
StereoStrategy
...
@@ -91,6 +97,7 @@ private:
...
@@ -91,6 +97,7 @@ private:
float
debug_value
=
0.0
f
;
float
debug_value
=
0.0
f
;
bool
wireframe
=
false
;
bool
wireframe
=
false
;
bool
performance_view
=
false
;
bool
performance_view
=
false
;
uint32_t
subdivision_resolution
=
DUAL_LAYER_REPROJECTION_SUBDIVIDE_GROUP_SIZE
;
glm
::
uvec2
layer_resolution
=
glm
::
uvec2
(
0
);
glm
::
uvec2
layer_resolution
=
glm
::
uvec2
(
0
);
glm
::
mat4
layer_projection_matrix
=
glm
::
mat4
(
1.0
f
);
glm
::
mat4
layer_projection_matrix
=
glm
::
mat4
(
1.0
f
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment