Uh oh!
There was an error while loading. Please reload this page.
Orthographic projection for 3D plots - finalist - #3550
Conversation
adjust ortho camera dist in module and added orthographic mocks adjust camera structure in jasmine test & corrected baselines
| "gl-mesh3d": "^2.0.7", | ||
| "gl-plot2d": "^1.4.2", | ||
| "gl-plot3d": "^1.6.3", | ||
| "gl-plot3d": "git://github.com/gl-vis/gl-plot3d.git#33d5169a62d9b903a8f3a4607f4dae726c4bb57b", |
There was a problem hiding this comment.
There was a problem hiding this comment.
Also regarding gl-axes3d changes... https://github.com/gl-vis/gl-axes3d/compare/ortho-view1
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
etpinard
commented
Feb 18, 2019
@archmoj this is starting to look good! Nice work! About
First you'll need to change the plotly.js/src/plots/gl3d/scene.js Lines 800 to 842 in 25fa0c2 to update the projection? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
etpinard
commented
Feb 20, 2019
Awesome work @archmoj !! Adding this to 💃 💃 💃 |
Supersedes #3331.
Fixes#2611 by adding orthographic views to Plotly graphs.
A new attribute
orthois defined on the camera object (defaulted tofalse) and passed togl-plot3dandgl-axes3dmodules.The scene initialisation now uses the camera initial vectors as well as
orthoattribute.The createCamera function needed in
plot/gl3d/scene.jsandgl-vis/gl-plot3dis centralised in a separate module (i.e. a fork of3d-view-controlswhile applying Plotly.js camera.js latest changes).Interactive demo.
TODO:
relayoutpath to start new scene when switching betweenorthographicandperspectiveprojections.@plotly/plotly_js
@jackparmer