-
Notifications
You must be signed in to change notification settings - Fork 29
Allow rotating ortho view #8614
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
Merged
Merged
Changes from 105 commits
Commits
Show all changes
147 commits
Select commit
Hold shift + click to select a range
0d4925c
wip: enable rotation for ortho views
MichaelBuessemeyer d53dfdc
fix shader
MichaelBuessemeyer 53fe573
WIP: make planes and cameras rotate accordingly
MichaelBuessemeyer a0effba
fix base rotation of xy viewport
MichaelBuessemeyer 4696242
fix rotation of xz and yz viewports (three js multiplys matrices in p…
MichaelBuessemeyer 1a98739
little cleanup & WIP fixing rendering issues
MichaelBuessemeyer e9a91ca
WIP fixing plane scaling
MichaelBuessemeyer 4d46f9c
try to fix plane scale
MichaelBuessemeyer a645251
remove plane wrapping group again
MichaelBuessemeyer df0fdac
fix shearing & rotation for datasets with anisotropic scale
MichaelBuessemeyer 9109d07
clean up scene graph hierarchy
MichaelBuessemeyer 5eb8f24
small potential speedup avoiding object creation
MichaelBuessemeyer 639e7e6
remove doublesided material setting for plane as not needed
MichaelBuessemeyer 1d5d499
fix move tool in arbitrary orientation
MichaelBuessemeyer d6557d8
fix line measurement tool location & rendering
MichaelBuessemeyer a3ffdba
fix f-ing through dataset
MichaelBuessemeyer 4f5967c
disable unsupported tools when rotated in first version
MichaelBuessemeyer 9870d2e
fix new node rotation value calculation
MichaelBuessemeyer 273a58c
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer dc5d301
fix rendering correct data by passing position offset to shader and c…
MichaelBuessemeyer 813028f
remove unused method
MichaelBuessemeyer c51c6b4
make abstract tree tab a functional component
MichaelBuessemeyer bafa502
suppress rotation of setting active node when in ortho view mode
MichaelBuessemeyer c9a4b27
fix flickering when adjusting clipping distance
MichaelBuessemeyer 07ba557
fix clipping distance offsetting of planes leading to rendering errors
MichaelBuessemeyer 0cd92a3
add missing prop to arbitrary_view to be easily distinguishable to pl…
MichaelBuessemeyer 0cbcb7f
less store.getState calls
MichaelBuessemeyer 4c465ae
fix node positioning in plane while rotation is active
MichaelBuessemeyer 263c06d
WIP fix node creation
MichaelBuessemeyer 1344b28
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 09d10ad
disallow bbox creating from context menu when rotation is active
MichaelBuessemeyer fd17634
fix continuous node creation & some small typescript complaint
MichaelBuessemeyer 76ce52b
disable some context menu actions when rotation is active
MichaelBuessemeyer 11297c8
add rotated bucket prefetching
MichaelBuessemeyer 58aa187
move back to old prefetcher and disable once rotation is active
MichaelBuessemeyer c0edcd1
fix dataset navigation via space
MichaelBuessemeyer a56fd85
delete apparently useless file
MichaelBuessemeyer 9994dd3
fix node moving
MichaelBuessemeyer c12870c
make rotation copy button to rotation reset button
MichaelBuessemeyer 4fab626
store rotation in url even in ortho mode
MichaelBuessemeyer d3ed2e1
add is rotated flycam accessor
MichaelBuessemeyer d451f8f
fix logging warning
MichaelBuessemeyer dca68a0
disable area measurement while rotated
MichaelBuessemeyer 4ad0f8a
do not have duplicate area measurement points
MichaelBuessemeyer bdf526b
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer be60117
precompute inverted voxelSizeFactor to avoid floating point imprecisions
MichaelBuessemeyer e633eb2
fix flickering when changing clipping distance by flooring & remove u…
MichaelBuessemeyer f7b039b
format frontend
MichaelBuessemeyer bf9a1d3
fix ts errors
MichaelBuessemeyer 6d1f468
fix frontend tests
MichaelBuessemeyer 5627656
Merge branch 'master' into ortho-view-rotation-v2
MichaelBuessemeyer 66d8ed6
remove debug logging
MichaelBuessemeyer 3d4b137
Merge branch 'ortho-view-rotation-v2' of github.com:scalableminds/web…
MichaelBuessemeyer 4741cda
fix create node api
MichaelBuessemeyer 848ed1f
fix bucket picking by fixing applying flycam rotation to camera & obj…
MichaelBuessemeyer a8a5f38
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 0127413
clean up
MichaelBuessemeyer dee20f0
add rotation popover
MichaelBuessemeyer 273317d
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 9e84db9
make rotation sliders more consistent
MichaelBuessemeyer 101bbae
derive rotation value from rotation matrix upon keyboard rotation
MichaelBuessemeyer 3b01693
reenable shader optimizations as long as no rotation is active
MichaelBuessemeyer e098961
delete rotation capable prefetcher
MichaelBuessemeyer b1953c9
make rotation button warning orange in case of viewing the dataset ro…
MichaelBuessemeyer 8ca3d59
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 2d747e0
Reduce amount of THREE object created by creating them once and then …
MichaelBuessemeyer 10ba989
sort imports
MichaelBuessemeyer 7b4889e
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 0a8ec72
WIP apply feedback
MichaelBuessemeyer 6162551
use antd internals danger coloring
MichaelBuessemeyer 94f2e17
apply last feedback of review first cycle
MichaelBuessemeyer 33fd149
fix imports
MichaelBuessemeyer a2cb726
undo distance measurement tooltip position refactoring
MichaelBuessemeyer 6bc8092
omit rotation in url hash in case it is default
MichaelBuessemeyer 8381421
improve comment & interface of createnode api function
MichaelBuessemeyer ea6cfce
readd using manual orange warning color for position & rotation view
MichaelBuessemeyer de5b42c
remove useless flooring of already rounded global position
MichaelBuessemeyer a828c70
rename globalposition to PositionWithRounding
MichaelBuessemeyer b94fe9a
mini renaming
MichaelBuessemeyer c6bf024
deduplicate test flycam matrix with default rotation of 180° around z…
MichaelBuessemeyer 1db3461
add option to rotate to active node upon activation
MichaelBuessemeyer 75b0a97
cleanup naming of getRotationOrthoInRadian function. Is now called ge…
MichaelBuessemeyer 5fc859c
clean up getRelativeViewportRotationToXYViewport to move it as a mapp…
MichaelBuessemeyer 901ccb3
make line measurement tool more accurate by using floating point and …
MichaelBuessemeyer d7b3828
little more clean up
MichaelBuessemeyer ccb0556
refactor rotations of planes and extract camera viewing direction cor…
MichaelBuessemeyer 1115285
keep rotation values in popup and url equal to avoid confusion
MichaelBuessemeyer bdd7eef
maintain proper rotation values in store
MichaelBuessemeyer 9188786
fix order in which ortho view depended rotation removed from active n…
MichaelBuessemeyer 8b9fbe3
WIP try monkeypatching flippnig camera on node creation with 90,90,0 …
MichaelBuessemeyer f8a80ee
remove unused conmment
MichaelBuessemeyer fbda63e
WIP: fix 3d camera rotation buttons
MichaelBuessemeyer 8fc80e1
WIP fix pattern rendering during rotation
MichaelBuessemeyer 54817d7
WIP: fix pattern during rotation
MichaelBuessemeyer 37be3e0
frontend import sorting
MichaelBuessemeyer 19813ae
add 90 degree step rotation keyboard shortcut
MichaelBuessemeyer 164623b
add reset all rotation button to rotation popover
MichaelBuessemeyer c0acca5
WIP: add tests to check for rotation prop in created nodes
MichaelBuessemeyer 16c7b16
ensure getFlycamRotationWithAppendedRotation returns angles in range …
MichaelBuessemeyer f335325
fix default flycam rotation according to default flycam matrix
MichaelBuessemeyer 0d815a0
fix url manager specs
MichaelBuessemeyer 589dc32
fix cyclic dependencies in tests
MichaelBuessemeyer 7230cc0
add todo comment & more debugging output
MichaelBuessemeyer 1a4c4f8
fix node creation rotation test
MichaelBuessemeyer 8ed14c4
fix calculation of node rotation by doing same quirky matrix math ope…
MichaelBuessemeyer e66461c
WIP: Fix 3d rotation buttons
MichaelBuessemeyer b02468c
refactor 3d rotation code
MichaelBuessemeyer 37fcce3
WIP fix frontend tests
MichaelBuessemeyer c59b7a9
import sorting
MichaelBuessemeyer 440f5ae
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 75b6146
add missing import
MichaelBuessemeyer 9c44bd6
Merge branch 'master' into ortho-view-rotation-v2
MichaelBuessemeyer a062533
do not loop 90° rotation keyboard shortcuts and fix this rotation
MichaelBuessemeyer 3d11c6d
fix typo
MichaelBuessemeyer 8c6c929
small clean up here and there
MichaelBuessemeyer 6c28cc0
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer b43849e
fix fly mode with rotation 0,0,0
MichaelBuessemeyer aead902
fix rotation applying when activating node
MichaelBuessemeyer feef58e
fix applying node rotation of node created in arbitrary view
MichaelBuessemeyer 86a6788
add changelog entry
MichaelBuessemeyer 87625f8
Merge branch 'master' into ortho-view-rotation-v2
MichaelBuessemeyer ade03c6
sort imports
MichaelBuessemeyer d114670
Merge branch 'ortho-view-rotation-v2' of github.com:scalableminds/web…
MichaelBuessemeyer 9e51b91
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 25361cf
apply feedback
MichaelBuessemeyer 3efebd4
improve and add node creation rotation tests
MichaelBuessemeyer 99322d5
remove outdated todo comments
MichaelBuessemeyer d3aa4ff
fix & unify skeleton node creation tests
MichaelBuessemeyer 5347062
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 5ce70c1
add doc comments
MichaelBuessemeyer c721989
add keyboard shortcuts docs
MichaelBuessemeyer 18a9221
remove unused import
MichaelBuessemeyer ef2b1c0
fix distance measurement tooltip to stay active in an anisotropic sca…
MichaelBuessemeyer 719d35f
move flycam accessors spec
MichaelBuessemeyer 06e6cc6
add tests for calculateMaybeGlobalPos as well as calculating the resu…
MichaelBuessemeyer 3f41568
fix imports
MichaelBuessemeyer e5f0f91
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer a1ea02c
fix proofreading test?
MichaelBuessemeyer c405b65
edit comment explaining why the outer vertices of the vertex moving o…
MichaelBuessemeyer 77c64c2
add assertion to proofreading test that tool wasn't incorrectly switched
MichaelBuessemeyer 4121bc3
add comment explaining default stored rotation of [0,0,180]
MichaelBuessemeyer 01bbc9a
fix zoom to position
MichaelBuessemeyer c0c8966
Merge branch 'master' of github.com:scalableminds/webknossos into ort…
MichaelBuessemeyer 704a111
remove debugging logging
MichaelBuessemeyer 5a7b341
add new flycam action to ignored list
MichaelBuessemeyer 3ecab95
Update frontend/javascripts/viewer/shaders/main_data_shaders.glsl.ts
MichaelBuessemeyer 5682dbb
Merge branch 'master' into ortho-view-rotation-v2
MichaelBuessemeyer 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -387,6 +387,8 @@ const V3 = { | |
prod(a: Vector3) { | ||
return a[0] * a[1] * a[2]; | ||
}, | ||
|
||
multiply: scale3, | ||
}; | ||
|
||
const V4 = { | ||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { M4x4 } from "libs/mjs"; | ||
|
||
// Apply the default 180 z axis rotation to identity matrix as this is always applied on every flycam per default. | ||
// This can be useful in tests to get a calculated rotation of [0, 0, 0]. Otherwise it would be [0, 0, 180]. | ||
export const FlycamMatrixWithDefaultRotation = M4x4.rotate(Math.PI, [0, 0, 1], M4x4.identity(), []); |
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
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.