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

Is it possible rotate the camera view around the z-axis? #391

Open
maxcrous opened this issue Oct 25, 2021 · 0 comments
Open

Is it possible rotate the camera view around the z-axis? #391

maxcrous opened this issue Oct 25, 2021 · 0 comments

Comments

@maxcrous
Copy link

maxcrous commented Oct 25, 2021

I have a point at the world center with coordinate (0,0,0), with x,y,z world box limits of [-10, 10].
I also have pre-establish initial camera view with azimuth=40, elevation=-150.
Is there a way to rotate the camera view around the z-axis to in order to "pan around" this point?

This question probably relates to this issue #273, although it does not hint at a solution for the current camera rotation model.
I also found the parameter fig.angley in the documentation, which is now obsolete according to this thread.
Perhaps that would have allowed for something like this:

while True:
    fig.anglez += 0.01 * np.pi * 2
    time.sleep(0.1)

Or perhaps there is a clever combination of azimuth and elevation increments I am not seeing?

Also, thank you for library, it has been immense joy using it to visualize a photogrammetry setup. It is a much needed library, as Matplotlib does not fully support z-buffering/occlusion, not to mention responsive interactivity.

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

1 participant