-
Notifications
You must be signed in to change notification settings - Fork 47
WIP: Move polarplot and waterfallplot to use material and shaders #874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
patrickelectric
wants to merge
20
commits into
bluerobotics:master
Choose a base branch
from
patrickelectric:full_opengl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
92b8b37
waterfallplot: Move to an opengl approach
patrickelectric b8b4b37
opengl: Add waterfallplot
patrickelectric 7a329f4
Ping1DVisualizer: Use new WaterfallPlot with opengl
patrickelectric 7d36686
wip
patrickelectric 81674f2
wip
patrickelectric 33294d8
qquickcomponents
patrickelectric 7b525b9
wip
patrickelectric 94bbb30
wip
patrickelectric 0102e07
wip
patrickelectric 2a7846e
wip
patrickelectric 346ed04
wip
patrickelectric b9ae3e3
wip
patrickelectric d698362
wip
patrickelectric 2603bbf
wip
patrickelectric c32e9e9
wip
patrickelectric b1ad64c
qquickcomponents
patrickelectric ee26506
wip
patrickelectric f8c7e23
wip
patrickelectric 7e4f020
wip
patrickelectric 3de432a
wip
patrickelectric File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| uniform highp mat4 qt_Matrix; | ||
| attribute highp vec4 qt_Vertex; | ||
| attribute highp vec2 qt_MultiTexCoord0; | ||
| varying highp vec2 coord; | ||
| attribute vec4 vertices; | ||
| varying vec2 coords; | ||
| void main() { | ||
| coord = qt_MultiTexCoord0; | ||
| gl_Position = qt_Matrix * qt_Vertex; | ||
| gl_Position = vertices; | ||
| coords = vertices.xy; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| varying highp vec2 coord; | ||
| uniform lowp float qt_Opacity; | ||
| void main() { | ||
| float d = distance(coord, vec2(0.5, 0.5)); | ||
| if ( d > 0.5) { | ||
| gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0) * qt_Opacity; | ||
| return; | ||
| } | ||
| gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0) * qt_Opacity; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| uniform highp mat4 qt_Matrix; | ||
|
|
||
| attribute highp vec4 qt_Vertex; | ||
| attribute highp vec2 qt_MultiTexCoord0; | ||
|
|
||
| varying highp vec2 coord; | ||
|
|
||
| void main() { | ||
| gl_Position = qt_Matrix * qt_Vertex; | ||
| coord = qt_MultiTexCoord0;// + vec2(1.0, 1.0)) / 2.0; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| varying vec2 coord; | ||
| uniform float horizontalRatio; | ||
| uniform float verticalRatio; | ||
| uniform sampler2D src; | ||
|
|
||
| void main() { | ||
| // Mod is used to wrap around the 0-1 scaled x axis | ||
| vec2 shiftedCoord = mod(coord + vec2(horizontalRatio, 0), 1.0); | ||
| shiftedCoord.y = shiftedCoord.y * verticalRatio; | ||
| gl_FragColor = texture2D(src, shiftedCoord); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| uniform highp mat4 qt_Matrix; | ||
| attribute highp vec4 qt_Vertex; | ||
| attribute highp vec2 qt_MultiTexCoord0; | ||
| varying highp vec2 coord; | ||
| void main() { | ||
| coord = qt_MultiTexCoord0; | ||
| gl_Position = qt_Matrix * qt_Vertex; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ set(INCLUDE_DIRS | |
| mavlink | ||
| network | ||
| notification | ||
| qquickcomponents | ||
| sensor | ||
| settings | ||
| style | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| add_library( | ||
| qquickcomponents | ||
| STATIC | ||
| qquickopengl.cpp | ||
| ) | ||
|
|
||
| target_link_libraries(qquickcomponents | ||
| PRIVATE | ||
| Qt5::Core | ||
| Qt5::Quick | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| INCLUDEPATH += $$PWD | ||
|
|
||
| HEADERS += \ | ||
| $$PWD/*.h | ||
|
|
||
| SOURCES += \ | ||
| $$PWD/*.cpp |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.