Skip to content
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

OrbitControl behaves strangely after first drag #89

Open
mathieu1 opened this issue Dec 14, 2017 · 4 comments
Open

OrbitControl behaves strangely after first drag #89

mathieu1 opened this issue Dec 14, 2017 · 4 comments

Comments

@mathieu1
Copy link
Contributor

mathieu1 commented Dec 14, 2017

Using fig.camera_control = 'orbit', the Orbital Control works as expected at first glance. However, after dragging the object and "tilting the horizontal plane" to a "non-horizontal position", the orbit controls do not behave as expected anymore, and do not keep the Y axis upwards (contrary to the standard behaviour of threejs' OrbitControl)

Hopefully what I mean is clarified with this:
qie7k-wnuli
(Edited for smaller gif)

@maartenbreddels
Copy link
Collaborator

Thanks, and this is only using that camera control right? Not switching between them?

@mathieu1
Copy link
Contributor Author

Indeed, nothing else happens in that clip besides two consecutive mouse drags. The code has nothing special AFAICT (nevermind the x,y,z rearrangement):

fig = p3.figure()
fig.camera_control = 'orbit' 
p3.plot_trisurf(y, z, x, triangles=faces, color=colors)
p3.show()

@Carreau
Copy link

Carreau commented Oct 11, 2018

Same for me, regardless of whether orbit is set from the python side, or by clicking the "up arrow" button. (BTW, I would suggest changing it for "globe") that would be IMHO more representative.

@mgeier
Copy link
Contributor

mgeier commented Sep 24, 2019

@mathieu1 and @Carreau Does it work better with #273?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants